aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-03-28 13:26:25 -0600
committerSelene ToyKeeper2023-03-28 13:26:25 -0600
commit04bfe1ec88ee4d5470e6d9c8c260cdebc326a9c9 (patch)
treebe12980964d351cd771cedfc3430fa503ae89735
parentjust whitespace / comments (diff)
downloadanduril-04bfe1ec88ee4d5470e6d9c8c260cdebc326a9c9.tar.gz
anduril-04bfe1ec88ee4d5470e6d9c8c260cdebc326a9c9.tar.bz2
anduril-04bfe1ec88ee4d5470e6d9c8c260cdebc326a9c9.zip
strobe modes: added 4C to cycle backward through strobes
-rw-r--r--spaghetti-monster/anduril/strobe-modes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/strobe-modes.c b/spaghetti-monster/anduril/strobe-modes.c
index e8d1dbb..78fe240 100644
--- a/spaghetti-monster/anduril/strobe-modes.c
+++ b/spaghetti-monster/anduril/strobe-modes.c
@@ -58,6 +58,12 @@ uint8_t strobe_state(Event event, uint16_t arg) {
save_config();
return MISCHIEF_MANAGED;
}
+ // 4 clicks: rotate backward through strobe/flasher modes
+ else if (event == EV_4clicks) {
+ strobe_type = (st - 1 + NUM_STROBES) % NUM_STROBES;
+ save_config();
+ return MISCHIEF_MANAGED;
+ }
// hold: change speed (go faster)
// or change brightness (brighter)
else if (event == EV_click1_hold) {
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.