~toykeeper/flashlight-firmware/fsm

  • Committer: Selene Scriven
  • Date: 2020-09-27 09:26:01 UTC
  • mto: (483.4.1 tiny1)
  • Revision ID: bzr@toykeeper.net-20200927092601-e4wokla3f9lfel65
reworked nice_delay interrupt system and fixed some old issues:

- added set_state_deferred(), to avoid timing issues when changing state in loop()
  (fixes bug where first button press after version check was sometimes ignored,
   and similar issue after battcheck in simple UI)

- reduced chance of eating first button press after simple UI's battcheck,
  because it spent an extra second waiting after finishing the readout,
  and it wasn't intuitive for a single click to go from "post-battcheck darkness"
  to "off" during that period

- made interrupt_nice_delays() happen every time the state changes, instead of
  having nice_delay() explicitly check for state changes while it waits...
  (because the explicit check was buggy and used more ROM)

- made nice_delay_ms() abort immediately when interrupt is set, instead of waiting
  1ms before it even checks for the interrupt condition...  this makes aborted
  animations end a lot faster, with less visible flickering

- made blink_num() smaller and simpler, because changes listed above make it possible

- slightly changed order of events in main(), to accommodate for changes above

- fixed issue where battcheck would keep trying to blink out numbers while the user
  was holding 10H for voltage config mode

- ... and reduced ROM size by about 38 bytes
Filename Latest Rev Last Changed Committer Comment Size
..
_the_ 123.1.1 10 years ago Selene Scriven Added TheStar firmwares from _the_ Diff
alexvh 95 10 years ago Selene Scriven Added alexvh's no-OTC off-time memory firmware for Diff
bin 16 10 years ago Selene Scriven Added a dir to hold generally-useful utilities. In Diff
DrJones 24 10 years ago Selene Scriven Started adding contributions from DrJones. Diff
dthoang 111 10 years ago Selene Scriven Added dthoang's Olight Baton-like version of STAR_ Diff
Flashy_Mike 188.1.30 6 years ago Selene Scriven Added Flashy Mike's OTSM example code for later re Diff
Flintrock 188.2.1 7 years ago Selene Scriven Added Flintrock's Bistro-HD 1.0. Diff
gchart 175.1.1 8 years ago Selene Scriven Copied biscotti.c to gchart/babka/babka.c Diff
hello_world 3 10 years ago Selene Scriven Added a 'hello world' test program, based on Jonny Diff
JonnyC 2 10 years ago Selene Scriven Added JonnyC's "STAR" family of firmwares. Diff
loneoceans 188.4.14 6 years ago Selene Scriven added GXB172 firmware from loneoceans (tiny841 boo Diff
Mike_C 169.1.1 8 years ago Selene Scriven Added X85 firmware by Mike C. Diff
odd 151 9 years ago Selene Scriven Added MGdriver by odd. Diff
pilotdog68 150 10 years ago Selene Scriven Added XinTD X3 firmware from pilotdog68. Diff
RMM 174.1.1 6 years ago Selene Scriven Forked Bistro as a base for Dragon. Diff
Tamagotchi 136 10 years ago Selene Scriven Added Tamagotchi/7135x8v2 firmware from fonarevka. Diff
Tido 150.1.3 9 years ago Selene Scriven added BLF-VLD 0.1 Diff
Tom_E 53 10 years ago Selene Scriven Added a STAR-momentary from Tom E, with easy off a Diff
ToyKeeper 15 10 years ago Selene Scriven Moved my sources into ToyKeeper/ directory to keep Diff
tterev3 18 10 years ago Selene Scriven Added PIC10F322 C code examples from tterev3. (one Diff
Werner 106 10 years ago Selene Scriven Added Werner's candle flicker firmware. Diff
INDEX 188.4.16 5 years ago Selene Scriven merged fsm to trunk... lots of updates: + attiny1 27.3 KB Diff Download File
meta 124.1.4 10 years ago Selene Scriven minor top-level doc updates 83 bytes Diff Download File
PRODUCTS 188.4.25 4 years ago Selene Scriven more PRODUCTS updates... D4v2.5, MT90-Plus, KR1, 11.3 KB Diff Download File
README 188.4.24 4 years ago Selene Scriven added oweban's flashing guides to the README 4.2 KB Diff Download File
TODO 124.1.4 10 years ago Selene Scriven minor top-level doc updates 340 bytes Diff Download File