aboutsummaryrefslogtreecommitdiff
path: root/hwdef-BLF_Q8.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-06-24 20:10:33 -0600
committerSelene ToyKeeper2018-06-24 20:10:33 -0600
commit2e76fafd027c027b23964e6f4c2e27f26732db64 (patch)
tree66d68a9afbb0341de5614bc78f6f64137b130e3a /hwdef-BLF_Q8.h
parentAdded D4S to the build-all script. (diff)
parentRefactored driver/hardware definition code to be one file per driver type. (diff)
downloadanduril-2e76fafd027c027b23964e6f4c2e27f26732db64.tar.gz
anduril-2e76fafd027c027b23964e6f4c2e27f26732db64.tar.bz2
anduril-2e76fafd027c027b23964e6f4c2e27f26732db64.zip
merged updates from FSM branch
Diffstat (limited to 'hwdef-BLF_Q8.h')
-rw-r--r--hwdef-BLF_Q8.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/hwdef-BLF_Q8.h b/hwdef-BLF_Q8.h
new file mode 100644
index 0000000..f00c392
--- /dev/null
+++ b/hwdef-BLF_Q8.h
@@ -0,0 +1,16 @@
+/* BLF Q8 driver layout
+ */
+// Q8 driver is the same as a D4, basically
+#include "hwdef-Emisar_D4.h"
+
+// ... except the Q8 has a lighted button
+#ifndef AUXLED_PIN
+#define AUXLED_PIN PB4 // pin 3
+#endif
+
+// average drop across diode on this hardware
+#ifdef VOLTAGE_FUDGE_FACTOR
+#undef VOLTAGE_FUDGE_FACTOR
+#endif
+#define VOLTAGE_FUDGE_FACTOR 7 // add 0.35V
+