aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-09-29 17:37:16 -0600
committerSelene ToyKeeper2017-09-29 17:37:16 -0600
commit6affa025b829b2d7b212fdf42f6d85aac7a00367 (patch)
treee88630fe6d4119012312d15e2b72de7493549398
parentAdded option to start at memorized level, for momentary use on dual-switch li... (diff)
downloadanduril-6affa025b829b2d7b212fdf42f6d85aac7a00367.tar.gz
anduril-6affa025b829b2d7b212fdf42f6d85aac7a00367.tar.bz2
anduril-6affa025b829b2d7b212fdf42f6d85aac7a00367.zip
Made dual-switch startup optionally go to moon if e-switch is held.
-rw-r--r--spaghetti-monster/anduril/anduril.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index 84cc27c..1fdf457 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -1043,7 +1043,12 @@ void setup() {
// dual switch: e-switch + power clicky
// power clicky acts as a momentary mode
load_config();
- push_state(steady_state, memorized_level);
+ if (button_is_pressed())
+ // hold button to go to moon
+ push_state(steady_state, 1);
+ else
+ // otherwise use memory
+ push_state(steady_state, memorized_level);
#else
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.