aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactored driver/hardware definition code to be one file per driver type.Selene ToyKeeper2018-06-244-9/+6
|
* Moved driver-specific details to separate header files.Selene ToyKeeper2018-06-245-37/+88
| | | | | | | 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.
* Added script to build all supported Anduril targets.Selene ToyKeeper2018-06-242-5/+17
|
* Moved pseudo_rand() into its own header, and made it gather entropy from ADC ↵Selene ToyKeeper2018-06-236-27/+81
| | | | | | | | 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)
* Don't auto-shutoff indicator LED when entering standby mode.Selene ToyKeeper2018-06-231-0/+1
|
* Made thermal response faster at high levels. Not yet tested.Selene ToyKeeper2018-06-171-2/+17
|
* Started adding support for aux LEDs which go out the front instead of ↵Selene ToyKeeper2018-06-172-1/+8
| | | | | | | lighting up the button. (so they should only be on when the main LEDs are off)
* Changed halfsleep mode to TICK_DURING_STANDBY. Added blinking indicator LED ↵Selene ToyKeeper2018-06-178-45/+113
| | | | support to Anduril.
* Implemented halfsleep mode.Selene ToyKeeper2018-06-175-9/+63
| | | | | | Will probably change it quite a bit though, so I'm checking in changes first. Needs to be "tick during standby" instead of "half sleep".
* Added dual-switch support (tail clicky + e-switch) to muggle mode.Selene ToyKeeper2018-06-161-8/+29
|
* Documented how to configure indicator LED level while off.Selene ToyKeeper2018-05-091-1/+27
|
* Added "votive candle mode", a.k.a. candle mode timer.Selene ToyKeeper2018-05-064-56/+275
| | | | | | Off by default, but click three times to add 30m to the timer. Maximum timer length about 4.5 hours.
* Added BLF GT support to Anduril.Selene ToyKeeper2018-05-011-10/+42
|
* Made voltage ADC readings work on pin7 if USE_VOLTAGE_DIVIDER is defined.Selene ToyKeeper2018-05-011-9/+39
|
* Added BLF GT 150-level ramp. Is a bit of a mess though.Selene ToyKeeper2018-05-011-11/+26
|
* Use separate voltage adjustment value for pin7 readings.Selene ToyKeeper2018-05-011-0/+4
|
* Added missing ifdef for muggle mode behavior at boot.Selene ToyKeeper2018-05-011-0/+2
|
* updated Anduril diagram based on recent UI changesSelene ToyKeeper2018-05-012-65/+223
|
* Second pass at making config modes smaller. Seems much better now.Selene ToyKeeper2018-04-242-92/+69
|
* First pass at refactoring config modes to save space. Also, moved all ↵Selene ToyKeeper2018-04-242-87/+95
| | | | config menus to 4 clicks.
* Converted muggle mode to a smooth ramp style. Made it remember this in ↵Selene ToyKeeper2018-04-231-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.
* Added more stuff to do.Selene ToyKeeper2018-04-231-3/+9
|
* Experiment: make ramp blinks configurable by blinking at every fixed-ramp ↵Selene ToyKeeper2018-04-231-2/+35
| | | | | | step during the smooth ramp. (spoiler: it's annoying)
* Updated Anduril UI text/diagram to match current code.Selene ToyKeeper2018-01-253-439/+835
|
* Minor candle mode tweaks for a better appearance.Selene ToyKeeper2018-01-241-3/+3
|
* Made candle mode more candle-like and more complex.Selene ToyKeeper2018-01-241-7/+22
|
* Anduril: Re-ordered strobe modes. Reduced compiled size a bit by caching ↵Selene ToyKeeper2018-01-241-35/+49
| | | | volatile vars.
* Anduril: Added room-temperature calibration function. Slowed down thermal ↵Selene ToyKeeper2018-01-241-43/+44
| | | | regulation speed for small adjustments.
* FSM: added ability to adjust temperature calibration in UI (lower-case ↵Selene ToyKeeper2018-01-242-4/+5
| | | | therm_cal_offset var).
* Thermal regulation adjustments...Selene ToyKeeper2018-01-241-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)
* Save a few bytes by changing how PCINT is defined.Selene ToyKeeper2018-01-242-2/+3
| | | | | Minor comment cleaning.
* Work around issues related to ADC interrupt auto-triggering itself.Selene ToyKeeper2018-01-243-10/+20
| | | | | | (was firing off 1000 times faster than desired, causing several issues) (now only executes when explicitly requested by the WDT)
* Made thermal adjustment speed change depending on how far it needs to go.Selene ToyKeeper2018-01-041-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.
* Debouncing finally works (at least, it does on my two test hosts).Selene ToyKeeper2017-12-124-56/+25
|
* Greatly improved button debouncing. Helps a lot on FW3A and my light saber.Selene ToyKeeper2017-12-114-7/+57
| | | | | Debouncing isn't 100% yet though.
* Working toward a FW3A release now. Made strobes use Nx7135 (when available) ↵Selene ToyKeeper2017-12-112-20/+38
| | | | | | | instead of FET. Added some ideas. Simplified some syntax.
* Made it possible to override address of eeprom array in RAM.Selene ToyKeeper2017-12-032-0/+8
| | | | | (useful when trying to use a single large data structure without wasting twice its size in RAM)
* Added a candle flicker mode to Anduril. Easy to enable/disable at compile time.Selene ToyKeeper2017-11-081-8/+85
|
* Added an incredibly simple muggle mode... 1-mode, on/off only, disconnect ↵Selene ToyKeeper2017-11-061-0/+59
| | | | power to exit.
* Made FSM eeprom more atomic by writing marker byte last.Selene ToyKeeper2017-11-061-1/+4
|
* Moved indicator_led() from Anduril into FSM. Made it auto-set indicator ↵Selene ToyKeeper2017-10-214-75/+79
| | | | | | | | | 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.
* Delay un-setting go_to_standby until the last moment, in case set_level() ↵Selene ToyKeeper2017-10-211-1/+1
| | | | wants to use it.
* Made indicator LED turn on/off in lightning mode along with main LED.Selene ToyKeeper2017-10-201-0/+15
|
* Er, don't save_config() every frame... wait until the user lets go of the ↵Selene ToyKeeper2017-10-202-4/+7
| | | | button.
* Added Q8 indicator LED support to Anduril.Selene ToyKeeper2017-10-201-0/+77
| | | | | Includes options for off/low/high during regular operation and during lockout mode (two different settings).
* Updated more temperature bits to be 14.1 instead of 13.2.Selene ToyKeeper2017-10-061-3/+3
|
* Made HOLD_TIMEOUT and RELEASE_TIMEOUT define-able in the UI code.Selene ToyKeeper2017-10-061-0/+4
|
* Temperature is 14.1 now, now 13.2. Divide by 2 instead of 4 before display.Selene ToyKeeper2017-10-061-1/+1
|
* Use either full or quarter speed in nice delays, based on output level.Selene ToyKeeper2017-10-011-1/+19
| | | | | | This fixes issues with some blinky modes being audible (particularly biking and lightning modes), without sacrificing the power savings for other blinkies (like beacon and battcheck).
* Made dual-switch startup optionally go to moon if e-switch is held.Selene ToyKeeper2017-09-291-1/+6
|