aboutsummaryrefslogtreecommitdiff
path: root/hwdef-FF_PL47.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-10-07 18:52:00 -0600
committerSelene ToyKeeper2018-10-07 18:52:00 -0600
commit25e8da3db9acee2c809176fa1f9169a65844f582 (patch)
treed3a88cd063725185244b9527b75f3da69988de5e /hwdef-FF_PL47.h
parentmerged FF ROT66 updates (supports both 7x7135 and 14x7135 now) (diff)
downloadanduril-25e8da3db9acee2c809176fa1f9169a65844f582.tar.gz
anduril-25e8da3db9acee2c809176fa1f9169a65844f582.tar.bz2
anduril-25e8da3db9acee2c809176fa1f9169a65844f582.zip
First working PL47 build. Does aux LEDs on pin 7 but not pin 3.
Diffstat (limited to 'hwdef-FF_PL47.h')
-rw-r--r--hwdef-FF_PL47.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/hwdef-FF_PL47.h b/hwdef-FF_PL47.h
new file mode 100644
index 0000000..4189220
--- /dev/null
+++ b/hwdef-FF_PL47.h
@@ -0,0 +1,24 @@
+/* Fireflies PL47 driver layout
+ */
+// same as a D4S, basically
+#include "hwdef-Emisar_D4S.h"
+#undef FSM_EMISAR_D4S_DRIVER
+#undef FSM_EMISAR_D4_DRIVER
+
+// ... except the PL47 has aux LEDs on pin 7
+#ifdef AUXLED_PIN
+#undef AUXLED_PIN
+#endif
+#define AUXLED_PIN PB2 // pin 7
+
+// ... and switch LEDs on pin 3
+#ifdef AUXLED2_PIN
+#undef AUXLED2_PIN
+#endif
+#define AUXLED2_PIN PB4 // pin 3
+
+// average drop across diode on this hardware
+#ifdef VOLTAGE_FUDGE_FACTOR
+#undef VOLTAGE_FUDGE_FACTOR
+#endif
+#define VOLTAGE_FUDGE_FACTOR 7 // add 0.35V