aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-misc.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-09-06 04:38:00 -0600
committerSelene ToyKeeper2019-09-06 04:38:00 -0600
commit7851656847738192e0e12cfe77861ba58d98cf6f (patch)
treeabe34d61f48402f93fd954fb4759a6d9cd231a01 /spaghetti-monster/fsm-misc.h
parentfixed attiny13 builds (diff)
downloadanduril-7851656847738192e0e12cfe77861ba58d98cf6f.tar.gz
anduril-7851656847738192e0e12cfe77861ba58d98cf6f.tar.bz2
anduril-7851656847738192e0e12cfe77861ba58d98cf6f.zip
added button LED support to D4v2
(in a way which doesn't break backward compatibility... ... but it really needs some refactoring to reduce code duplication)
Diffstat (limited to 'spaghetti-monster/fsm-misc.h')
-rw-r--r--spaghetti-monster/fsm-misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-misc.h b/spaghetti-monster/fsm-misc.h
index a39d31a..66d31ba 100644
--- a/spaghetti-monster/fsm-misc.h
+++ b/spaghetti-monster/fsm-misc.h
@@ -43,10 +43,16 @@ uint8_t blink(uint8_t num, uint8_t speed);
*/
#ifdef USE_INDICATOR_LED
+// FIXME: Remove this, replace with button_led()
// lvl: 0=off, 1=low, 2=high
void indicator_led(uint8_t lvl);
#endif
+#ifdef USE_BUTTON_LED
+// lvl: 0=off, 1=low, 2=high
+void button_led_set(uint8_t lvl);
+#endif
+
#ifdef USE_AUX_RGB_LEDS
// value: 0b00BBGGRR
// each pair of bits: 0=off, 1=low, 2=high