aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fireflies-ui/fireflies-ui.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-22Reduced ROM size back to pre-branch levelsSelene ToyKeeper1-225/+158
(aside from 6 extra bytes to fix interaction between aux LEDs and lockout moon). Fixed typos: lightening, tactial. Replaced new switch/case clauses with if/else clauses, to reduce ROM size. Added -fshort-enums to gcc options to reduce ROM size.
2018-08-22should stop coding for today, undo custom changes not to be commitedThomas Arthofer1-3/+3
2018-08-22New IDE, replace tabs with spaces to match existing codeThomas Arthofer1-236/+236
2018-08-22Also remove FIXME hint for aux-led pattern changeThomas Arthofer1-2/+0
2018-08-22Fix Change-Aux-LED Pattern, Fix Strobe ModesThomas Arthofer1-142/+250
2018-08-06Added more driver types to Anduril.Selene ToyKeeper1-0/+10
2018-07-01Made it easier to define thermal parameters per driver type.Selene ToyKeeper1-16/+24
Renamed THERM_DOUBLE_SPEED_LEVEL to THERM_FASTER_LEVEL, since it's not really 2X speed, it's 4X or more. This parameter defines approximately how bright the light can be without being considered risky or "turbo". Or the threshold between optimizing for rapid response vs optimizing for no oscillations.
2018-06-30Fixed bug: moon mode flickered a bit in momentary modeSelene ToyKeeper1-10/+8
due to constant MCU clock speed adjustments. (also, reduced code size and made it harder for similar bugs to appear in the future)
2018-06-30Fixed thermal regulation bug, where it used the wrong target to determine ↵Selene ToyKeeper1-3/+24
adjustment speed. Added a THERM_HARD_TURBO_DROP option, but after fixing the previous bug I'm not sure it's really needed. Decreased default temperature ceiling to 45 C (was 50).
2018-06-30Just in case, overheating in muggle mode triggers an immediate drop to the ↵Selene ToyKeeper1-0/+12
floor. Because WTF. This basically can't happen unless someone is doing something very stupid.
2018-06-29Oops, not sure how it even compiled with this typo.Selene ToyKeeper1-1/+1
2018-06-27Made high levels regulate down even faster. Added missing save_config() at ↵Selene ToyKeeper1-5/+6
the end of, um, config modes. Fixed ramp table indentation.
2018-06-27Move driver-specific ramp tables into the driver's config file.Selene ToyKeeper1-17/+18
Added a method to allow driver configs to override default ramp tables.
2018-06-24re-applied D4S-specific config, got lost in the mergeSelene ToyKeeper1-3/+6
2018-06-24Moved driver-specific details to separate header files.Selene ToyKeeper1-37/+50
General code cleanup and notes. Fixed build when thermal regulation is turned off. May have fixed (or at least improved) issue with main LED interfering with aux LEDs during aux LED config.
2018-06-24Initial D4S support for Anduril. (but only the parts which can't be public yet)Selene ToyKeeper1-2/+17
2018-06-24Added script to build all supported Anduril targets.Selene ToyKeeper1-5/+5
2018-06-23Moved pseudo_rand() into its own header, and made it gather entropy from ADC ↵Selene ToyKeeper1-26/+10
readings to improve randomness. Adjusted candle mode to use lower bits instead of upper bits, because the lower bits are more random. (also, the lower-bit method is slightly smaller in ROM)
2018-06-17Made thermal response faster at high levels. Not yet tested.Selene ToyKeeper1-2/+17
2018-06-17Started adding support for aux LEDs which go out the front instead of ↵Selene ToyKeeper1-1/+4
lighting up the button. (so they should only be on when the main LEDs are off)
2018-06-17Changed halfsleep mode to TICK_DURING_STANDBY. Added blinking indicator LED ↵Selene ToyKeeper1-0/+50
support to Anduril.
2018-06-16Added dual-switch support (tail clicky + e-switch) to muggle mode.Selene ToyKeeper1-8/+29
2018-05-06Added "votive candle mode", a.k.a. candle mode timer.Selene ToyKeeper1-1/+47
Off by default, but click three times to add 30m to the timer. Maximum timer length about 4.5 hours.
2018-05-01Added BLF GT support to Anduril.Selene ToyKeeper1-10/+42
2018-05-01Added missing ifdef for muggle mode behavior at boot.Selene ToyKeeper1-0/+2
2018-04-24Second pass at making config modes smaller. Seems much better now.Selene ToyKeeper1-91/+68
2018-04-24First pass at refactoring config modes to save space. Also, moved all ↵Selene ToyKeeper1-85/+92
config menus to 4 clicks.
2018-04-23Converted muggle mode to a smooth ramp style. Made it remember this in ↵Selene ToyKeeper1-32/+126
eeprom to persist across battery changes. This uses quite a bit of extra space, so I may need to refactor something else to make more room. Also fixed a bug where ramp style could get stuck at "discrete/stepped ramp" if eeprom got corrupted.
2018-04-23Experiment: make ramp blinks configurable by blinking at every fixed-ramp ↵Selene ToyKeeper1-2/+35
step during the smooth ramp. (spoiler: it's annoying)
2018-01-24Minor candle mode tweaks for a better appearance.Selene ToyKeeper1-3/+3
2018-01-24Made candle mode more candle-like and more complex.Selene ToyKeeper1-7/+22
2018-01-24Anduril: Re-ordered strobe modes. Reduced compiled size a bit by caching ↵Selene ToyKeeper1-35/+49
volatile vars.
2018-01-24Anduril: Added room-temperature calibration function. Slowed down thermal ↵Selene ToyKeeper1-43/+44
regulation speed for small adjustments.
2018-01-24Thermal regulation adjustments...Selene ToyKeeper1-11/+29
- Don't step down lower than 1x7135 level. - Change speed of gradual adjustments based on how far it needs to go, but in all cases slower than before. (may need further adjusting) (is currently a mess, but I wanted to check it in before I tweak it further)
2018-01-04Made thermal adjustment speed change depending on how far it needs to go.Selene ToyKeeper1-5/+35
(faster for large changes, much slower for smaller changes) (actual thermal behavior not tested yet) Made lockout mode moon match the current ramp instead of using the lowest of both. Made ramp-type toggle stop doing gradual adjustments back to the previous ramp's level (I hope). Added LVP to muggle mode.
2017-12-11Working toward a FW3A release now. Made strobes use Nx7135 (when available) ↵Selene ToyKeeper1-19/+33
instead of FET. Added some ideas. Simplified some syntax.
2017-11-08Added a candle flicker mode to Anduril. Easy to enable/disable at compile time.Selene ToyKeeper1-8/+85
2017-11-06Added an incredibly simple muggle mode... 1-mode, on/off only, disconnect ↵Selene ToyKeeper1-0/+59
power to exit.
2017-10-21Moved indicator_led() from Anduril into FSM. Made it auto-set indicator ↵Selene ToyKeeper1-75/+39
level based on ramp level. Made Anduril configure voltage fudge and indicator LED functions based on driver type. Removed "ticks_spent_awake" thing since it's redundant. EV_tick arg does the same thing in fewer bytes. Rearranged some clauses in off_state to put events in a more coherent order.
2017-10-20Made indicator LED turn on/off in lightning mode along with main LED.Selene ToyKeeper1-0/+15
2017-10-20Er, don't save_config() every frame... wait until the user lets go of the ↵Selene ToyKeeper1-1/+6
button.
2017-10-20Added Q8 indicator LED support to Anduril.Selene ToyKeeper1-0/+77
Includes options for off/low/high during regular operation and during lockout mode (two different settings).
2017-10-06Temperature is 14.1 now, now 13.2. Divide by 2 instead of 4 before display.Selene ToyKeeper1-1/+1
2017-09-29Made dual-switch startup optionally go to moon if e-switch is held.Selene ToyKeeper1-1/+6
2017-09-29Added option to start at memorized level, for momentary use on dual-switch ↵Selene ToyKeeper1-1/+45
lights. Renamed WL versions of eeprom functions, for naming consistency.
2017-09-28Make sure hold-from-off ramps up, not down.Selene ToyKeeper1-0/+3
2017-09-28Added reversing to Anduril. Made EV_tick always send 0 while in "hold" state.Selene ToyKeeper1-2/+32
Reversing is a build-time option.
2017-09-28Rearranged some build options and made sure the build still works if some ↵Selene ToyKeeper1-11/+30
are turned off.
2017-09-28Fixed issue where double-click-from-off followed by ↵Selene ToyKeeper1-1/+0
double-click-to-true-turbo would overwrite memory with the ceiling level.
2017-09-28Fleshed out options to blink at floor, ceiling, and channel boundaries.Selene ToyKeeper1-18/+32