aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-19 17:00:39 -0700
committerSelene ToyKeeper2018-11-19 17:00:39 -0700
commit4f909ae95e4374edf30eebbe49a3d2597b645333 (patch)
treea175bc5e5d9ed6b14dd1f804426263db5c524425 /spaghetti-monster
parentadded a fancier blinking mode for button/aux LEDs, enabled on D4S / Q8 / SP36 (diff)
downloadanduril-4f909ae95e4374edf30eebbe49a3d2597b645333.tar.gz
anduril-4f909ae95e4374edf30eebbe49a3d2597b645333.tar.bz2
anduril-4f909ae95e4374edf30eebbe49a3d2597b645333.zip
Added FF PL47-219 build target, with the FET ramp multiplied by 0.6666.
I guess it doesn't react well to high-amp cells, so this helps avoid issues.
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/anduril.c3
-rwxr-xr-xspaghetti-monster/anduril/build-all.sh1
-rw-r--r--spaghetti-monster/anduril/cfg-ff-pl47-219.h8
3 files changed, 12 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index d1d2a1a..6d9d78e 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -106,6 +106,9 @@
#elif defined(FSM_FF_PL47_DRIVER)
#include "cfg-ff-pl47.h"
+#elif defined(FSM_FF_PL47_219_DRIVER)
+#include "cfg-ff-pl47-219.h"
+
#elif defined(FSM_FF_ROT66_DRIVER)
#include "cfg-ff-rot66.h"
diff --git a/spaghetti-monster/anduril/build-all.sh b/spaghetti-monster/anduril/build-all.sh
index 754835f..2f94c00 100755
--- a/spaghetti-monster/anduril/build-all.sh
+++ b/spaghetti-monster/anduril/build-all.sh
@@ -13,6 +13,7 @@ for TARGET in \
EMISAR_D4S \
EMISAR_D4S_219C \
FF_PL47 \
+ FF_PL47_219 \
FF_ROT66 \
FF_ROT66_219 \
FW3A \
diff --git a/spaghetti-monster/anduril/cfg-ff-pl47-219.h b/spaghetti-monster/anduril/cfg-ff-pl47-219.h
new file mode 100644
index 0000000..ea701bd
--- /dev/null
+++ b/spaghetti-monster/anduril/cfg-ff-pl47-219.h
@@ -0,0 +1,8 @@
+// Fireflies PL47-219B config options for Anduril
+// same as PL47 but with FET modes limited to 67% power
+// to avoid destroying the LEDs
+#define FSM_FF_PL47_DRIVER
+#include "cfg-ff-pl47.h"
+
+#undef PWM2_LEVELS
+#define PWM2_LEVELS 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,15,16,17,19,20,22,23,25,27,28,30,31,33,35,37,39,41,43,45,47,50,52,55,57,60,63,65,68,71,74,77,80,83,87,90,93,97,101,105,108,112,116,121,125,129,134,139,143,148,153,159,164,169