1
STAR Firmware by JonnyC - Source Code and Explanation
4
Mon, 01/19/2015 - 02:40
9
> > I am trying to replicate the OLight S20 Baton but without flash modes.
11
> You might be interested in Baton.c / Baton.hex in my code repo, under
12
> ToyKeeper/Ferrero_Rocher/ . The link is below, in my signature.
14
> It implements the Olight Baton interface (including soft lockout), but without
17
I cleaned up the UI and adopted the blink-on-power option from your Baton.c
20
Here is the modified UI:
24
* Short press turns ON to last mode.
25
* Long press turns ON to moon.
26
* Double press turn ON to turbo.
30
* Short press turns OFF.
31
* Long press cycles to next mode. Keep pressing to continue cycling.
32
* Double press cycles to previous mode. Keep pressing to continue cycling.
36
* There is no previous mode from moon. This is to prevent jarring transition
39
https://docs.google.com/document/d/1UDpOdG98RQDNvgPmMDsKvbe9mGdbI3vw2-Nun9SVhEs/edit?usp=sharing