1. 07 Mar, 2020 5 commits
  2. 15 Jul, 2019 3 commits
  3. 14 Jul, 2019 1 commit
  4. 07 Jul, 2019 10 commits
  5. 16 Jan, 2019 2 commits
  6. 10 Jan, 2019 1 commit
  7. 08 Jan, 2019 2 commits
  8. 07 Jan, 2019 8 commits
    • Sven Greiner's avatar
      Remove fast press overflow handling · 4f5becbd
      Sven Greiner authored
      If we assume that the config case in the switch statement is reached
      before the user can tap a second time [1] there is no need to handle
      overflow of fast_presses in a separate if statement. Instead it is
      enough to set fast_presses to the current value minus one so that when a
      possible next press of the power switch increments the counter again
      this results in the same case.
      This saves 6 bytes of flash.
      [1] Which is unlikely because the execution time until this point is
      much shorter than human repetitive finger movement, so only button
      bouncing can be an issue and that would require other measures
    • Sven Greiner's avatar
      Fix #2: Add strobe mode · 584ac5d7
      Sven Greiner authored
      If users want a strobe mode, they usually want it for defence purposes.
      Thus it should be possible to enter it as fast as possible. If strobe is
      enabled (first option if STROBE is compiled) the flashlight always
      starts in a strobe mode. Then a single press of the power switch enters
      the usual UI.
    • Sven Greiner's avatar
      Set TIMSK0 explicitly · 26e59f4e
      Sven Greiner authored
      TIMSK0 is outside of lower 32 I/O registers and thus cannot be set via
      sbi. This saves 4 bytes of flash.
    • Sven Greiner's avatar
      Some comment cleanup · 88ac6455
      Sven Greiner authored
    • Sven Greiner's avatar
      Fix #1: LVP skipped sometimes · 70fa3681
      Sven Greiner authored
      Set a flag in the interrupt handler instead of checking the current tick
      Requires additional 14 bytes of flash...
    • Sven Greiner's avatar
      Move more global variables into registers · 82fa080d
      Sven Greiner authored
      Now we use registers in the function call area. But we don't use any
      functions with many arguments, so this is not a problem and saves 56
    • Sven Greiner's avatar
      Make beacon brightness adjustable · 4c9c54e5
      Sven Greiner authored
      Costs 8 bytes of flash.
    • Sven Greiner's avatar
      Add beacon mode · de750863
      Sven Greiner authored
  9. 05 Jan, 2019 4 commits
  10. 01 Jan, 2019 2 commits
  11. 28 Dec, 2018 2 commits