~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/fsm-misc.h

  • 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:
43
43
*/
44
44
 
45
45
#ifdef USE_INDICATOR_LED
 
46
// lvl: 0=off, 1=low, 2=high
46
47
void indicator_led(uint8_t lvl);
47
48
#endif
48
49
 
 
50
#ifdef USE_AUX_RGB_LEDS
 
51
// value: 0b00BBGGRR
 
52
// each pair of bits: 0=off, 1=low, 2=high
 
53
void rgb_led_set(uint8_t value);
 
54
#endif
 
55
 
49
56
#ifdef USE_TRIANGLE_WAVE
50
57
uint8_t triangle_wave(uint8_t phase);
51
58
#endif
52
59
 
 
60
#ifdef USE_REBOOT
 
61
void reboot();
 
62
#endif
 
63
 
53
64
#endif