~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/fsm-standby.c

  • Committer: Selene Scriven
  • Date: 2019-08-11 21:16:23 UTC
  • mfrom: (188.1.250 fsm)
  • Revision ID: bzr@toykeeper.net-20190811211623-i2i2rcud9kbx3hdw
merged fsm to trunk...  lots of updates:
+ attiny1634 support
+ Emisar D4v2 support
+ Mateminco MF01S / MT18 support
+ Fireflies E01 and E07v2 support
+ RGB aux LED support
+ added factory reset function
+ added manual / automatic memory toggle
+ added 2-level brightness during lockout
+ added Fireflies UI
+ made momentary mode also support strobe-group modes
* thermal regulation rewritten, behaves mostly better now
* strobe modes auto-reverse their ramp now
* muggle mode fixes
* UI diagram and manual updated
* button timing adjusted, and compile-time options added for it
* general refactoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        set_sleep_mode(SLEEP_MODE_PWR_DOWN);
57
57
 
58
58
        sleep_enable();
 
59
        #ifdef BODCR  // only do this on MCUs which support it
59
60
        sleep_bod_disable();
 
61
        #endif
60
62
        sleep_cpu();  // wait here
61
63
 
62
64
        // something happened; wake up