~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
..
File build-tiny13.sh 188.1.33 6 years ago Selene Scriven Reduced duplication across build scripts, replaced 61 bytes Diff Download File
File build-tiny25.sh 188.1.33 6 years ago Selene Scriven Reduced duplication across build scripts, replaced 61 bytes Diff Download File
File build-tiny85.sh 188.1.33 6 years ago Selene Scriven Reduced duplication across build scripts, replaced 61 bytes Diff Download File
File build.sh 455 5 years ago Selene Scriven added -fwhole-program gcc flag, suggested by Agro. 1.1 KB Diff Download File
File flash-tiny13-fuses.bat 188.1.32 6 years ago Selene Scriven Split flashing scripts into firmware vs fuses, to 62 bytes Diff Download File
File flash-tiny13-fuses.sh 188.1.32 6 years ago Selene Scriven Split flashing scripts into firmware vs fuses, to 450 bytes Diff Download File
File flash-tiny13.bat 188.1.32 6 years ago Selene Scriven Split flashing scripts into firmware vs fuses, to 43 bytes Diff Download File
File flash-tiny13.sh 188.1.32 6 years ago Selene Scriven Split flashing scripts into firmware vs fuses, to 69 bytes Diff Download File
File flash-tiny1634-fuses.sh 438 5 years ago Selene Scriven added scripts to flash attiny1634, which were miss 331 bytes Diff Download File
File flash-tiny1634.sh 438 5 years ago Selene Scriven added scripts to flash attiny1634, which were miss 71 bytes Diff Download File
File flash-tiny25-fuses.sh 188.1.32 6 years ago Selene Scriven Split flashing scripts into firmware vs fuses, to 485 bytes Diff Download File
File flash-tiny25.sh 188.1.32 6 years ago Selene Scriven Split flashing scripts into firmware vs fuses, to 69 bytes Diff Download File
File flash-tiny85-fuses.sh 394 6 years ago Selene Scriven Enable BOD on attiny85 by default, because it matt 486 bytes Diff Download File
File flash-tiny85.sh 188.1.32 6 years ago Selene Scriven Split flashing scripts into firmware vs fuses, to 69 bytes Diff Download File
File flash.sh 188.1.36 6 years ago Selene Scriven Added a help message to build.sh and flash.sh 457 bytes Diff Download File
File generate-index.py 273 7 years ago Selene Scriven Fixed inconsistencies in INDEX (meta file contents 3.2 KB Diff Download File
File level_calc.py 433.1.15 5 years ago Selene Scriven merged from fsm branch to get safety ramp-down and 7.3 KB Diff Download File
meta 124.1.3 10 years ago Selene Scriven Mostly complete metadata and index tool. 102 bytes Diff Download File
File voltage_dividers.py 188.1.8 7 years ago Selene Scriven Added voltage_dividers.py to help calculate resist 2.5 KB Diff Download File