~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
..
MTN_momentary_temp 70.1.18 10 years ago Selene Scriven moved MTN_momentary_temp into its own dir Diff
STAR 28 10 years ago Selene Scriven Renamed JonnyC's firmware to match his upstream re Diff
STAR_dual_switch 28 10 years ago Selene Scriven Renamed JonnyC's firmware to match his upstream re Diff
STAR_momentary 28 10 years ago Selene Scriven Renamed JonnyC's firmware to match his upstream re Diff
STAR_off_time 28 10 years ago Selene Scriven Renamed JonnyC's firmware to match his upstream re Diff
.gitignore 70.1.26 10 years ago Selene Scriven JCapSolutions 2015-01-05 git commit: a30f090d8430d 53 bytes Diff Download File
index.html 2 10 years ago Selene Scriven Added JonnyC's "STAR" family of firmwares. 11.9 KB Diff Download File
index.txt 2 10 years ago Selene Scriven Added JonnyC's "STAR" family of firmwares. 4.2 KB Diff Download File
MTN_momentary_temp.avrgccproj 70.1.12 10 years ago Selene Scriven JCapSolutions 2014-10-20 git commit: c37b0fa7930c9 3.5 KB Diff Download File
MTN_momentary_temp.avrsln 70.1.12 10 years ago Selene Scriven JCapSolutions 2014-10-20 git commit: c37b0fa7930c9 888 bytes Diff Download File
README.md 70.1.20 10 years ago Selene Scriven JCapSolutions 2014-12-08 git commit: ff7d535532c7c 481 bytes Diff Download File
STAR.avrgccproj 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 3.6 KB Diff Download File
STAR.avrsln 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 860 bytes Diff Download File
STAR_dual_switch.avrgccproj 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 3.5 KB Diff Download File
STAR_dual_switch.avrsln 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 884 bytes Diff Download File
STAR_momentary.avrgccproj 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 3.5 KB Diff Download File
STAR_momentary.avrsln 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 880 bytes Diff Download File
STAR_off_time.avrgccproj 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 3.5 KB Diff Download File
STAR_off_time.avrsln 70.1.6 10 years ago Selene Scriven JCapSolutions 2014-10-07 [merge] git commit: fed82 878 bytes Diff Download File
urls 28 10 years ago Selene Scriven Renamed JonnyC's firmware to match his upstream re 97 bytes Diff Download File