~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to dthoang/README

  • Committer: Selene Scriven
  • Date: 2015-02-16 20:34:03 UTC
  • Revision ID: ubuntu@toykeeper.net-20150216203403-a9xpvclisgppyu32
Added dthoang's Olight Baton-like version of STAR_momentary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
STAR Firmware by JonnyC - Source Code and Explanation
 
2
new code version 1.1
 
3
dthoang
 
4
Mon, 01/19/2015 - 02:40
 
5
#898
 
6
 
 
7
* ToyKeeper wrote:
 
8
> * dthoang wrote:
 
9
> >  I am trying to replicate the OLight S20 Baton but without flash modes.
 
10
>
 
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.
 
13
>
 
14
> It implements the Olight Baton interface (including soft lockout), but without
 
15
> the flash modes.
 
16
 
 
17
I cleaned up the UI and adopted the blink-on-power option from your Baton.c
 
18
code.
 
19
 
 
20
Here is the modified UI:
 
21
 
 
22
From OFF:
 
23
 
 
24
  * Short press turns ON to last mode.
 
25
  * Long press turns ON to moon.
 
26
  * Double press turn ON to turbo.
 
27
 
 
28
From ON:
 
29
 
 
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.
 
33
 
 
34
Notes:
 
35
 
 
36
  * There is no previous mode from moon. This is to prevent jarring transition
 
37
    from moon to turbo.
 
38
 
 
39
https://docs.google.com/document/d/1UDpOdG98RQDNvgPmMDsKvbe9mGdbI3vw2-Nun9SVhEs/edit?usp=sharing