aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spaghetti-monster/anduril/off-mode.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/off-mode.c b/spaghetti-monster/anduril/off-mode.c
index ae54f60..b1faf47 100644
--- a/spaghetti-monster/anduril/off-mode.c
+++ b/spaghetti-monster/anduril/off-mode.c
@@ -96,6 +96,12 @@ uint8_t off_state(Event event, uint16_t arg) {
#if (B_TIMING_ON == B_PRESS_T)
// hold (initially): go to lowest level (floor), but allow abort for regular click
else if (event == EV_click1_press) {
+ #ifdef JUMP_START_MOON
+ if (!arg) {
+ set_level(JUMP_START_MOON);
+ delay_4ms(3);
+ }
+ #endif
set_level(nearest_level(1));
return MISCHIEF_MANAGED;
}
@@ -110,6 +116,13 @@ uint8_t off_state(Event event, uint16_t arg) {
} else
#endif
#else // B_RELEASE_T or B_TIMEOUT_T
+ #ifdef JUMP_START_MOON
+ // pulse the output for a moment to wake up the power regulator
+ if (!arg) {
+ set_level(JUMP_START_MOON);
+ delay_4ms(3);
+ }
+ #endif
set_level(nearest_level(1));
#endif
// don't start ramping immediately;
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.