diff options
| author | Selene ToyKeeper | 2023-08-26 19:40:48 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-08-26 19:40:48 -0600 |
| commit | 6cd2bb9953e2dcfd025b24a7f555996b04717cb0 (patch) | |
| tree | 3357f6f3a76efb1bc564419a136315ede69b56a7 | |
| parent | updated wurkkos-ts25 to use set_level_zero() (diff) | |
| download | anduril-6cd2bb9953e2dcfd025b24a7f555996b04717cb0.tar.gz anduril-6cd2bb9953e2dcfd025b24a7f555996b04717cb0.tar.bz2 anduril-6cd2bb9953e2dcfd025b24a7f555996b04717cb0.zip | |
made bike strobe ontime configurable per build,
and made it longer on emisar-d4k-3ch
because some channels don't flash fast enough
| -rw-r--r-- | spaghetti-monster/anduril/cfg-emisar-d4k-3ch.h | 2 | ||||
| -rw-r--r-- | spaghetti-monster/anduril/strobe-modes.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/cfg-emisar-d4k-3ch.h b/spaghetti-monster/anduril/cfg-emisar-d4k-3ch.h index c015295..1943838 100644 --- a/spaghetti-monster/anduril/cfg-emisar-d4k-3ch.h +++ b/spaghetti-monster/anduril/cfg-emisar-d4k-3ch.h @@ -85,6 +85,8 @@ #define STROBE_BRIGHTNESS MAX_LEVEL // slow down party strobe; this driver can't pulse for 1ms or less #define PARTY_STROBE_ONTIME 2 +// bike strobe needs a longer pulse too +#define BIKE_STROBE_ONTIME 8 // the default of 26 looks a bit flat, so increase it #define CANDLE_AMPLITUDE 33 diff --git a/spaghetti-monster/anduril/strobe-modes.c b/spaghetti-monster/anduril/strobe-modes.c index 1e6f98c..31d2aad 100644 --- a/spaghetti-monster/anduril/strobe-modes.c +++ b/spaghetti-monster/anduril/strobe-modes.c @@ -303,13 +303,16 @@ inline void lightning_storm_iter() { #endif #ifdef USE_BIKE_FLASHER_MODE +#ifndef BIKE_STROBE_ONTIME +#define BIKE_STROBE_ONTIME 0 +#endif inline void bike_flasher_iter() { // one iteration of main loop() uint8_t burst = cfg.bike_flasher_brightness << 1; if (burst > MAX_LEVEL) burst = MAX_LEVEL; for(uint8_t i=0; i<4; i++) { set_level(burst); - nice_delay_ms(5); + nice_delay_ms(5 + BIKE_STROBE_ONTIME); set_level(cfg.bike_flasher_brightness); nice_delay_ms(65); } |
