~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to Tom_E/README

  • Committer: Selene Scriven
  • Date: 2014-10-29 02:38:49 UTC
  • Revision ID: ubuntu@toykeeper.net-20141029023849-8k8eduvjm0v3kcsg
Added a STAR-momentary from Tom E, with easy off and strobe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From http://budgetlightforum.com/node/29150?page=7#comment-576382
 
2
 
 
3
On Sun, 05/04/2014 - 07:50, Tom E wrote:
 
4
 
 
5
I added strobe mode to my custom version of JC's STAR momentary driver, link to source code here:
 
6
 
 
7
Google doc - eswitch.c
 
8
https://drive.google.com/file/d/0B1IxYZuk4DjcbzI2S1UyYVpjbGs/edit?usp=sharing
 
9
 
 
10
Basically what I did was added an extra long hold feature to access strobe. I use more aggressive delays, so mode switching stays very responsive, and my priority (as previous versions) is for one click OFF.
 
11
 
 
12
 - quick click for + mode (std)
 
13
 
 
14
 - long click/hold of 1/3 sec for - mode (std)
 
15
 
 
16
 - one click to turn the light OFF, after 1.2 sec in any mode (custom)
 
17
 
 
18
 - extra long click/hold of 3/4 sec for strobe mode (any click will return you to original mode) (custom)
 
19
 
 
20
So for example:
 
21
 
 
22
the light is OFF - hold for 3/4 sec - strobe, click or hold turns the light OFF
 
23
the light is in Hi mode - hold for 3/4 sec - strobe, click to go back to Hi
 
24
the light is in moonlight mode - hold for 3/4 sec - strobe, click to go back to moonlight
 
25
For entering strobe, the long duration next mode will briefly engage (between the 1/3 to 3/4 sec times) but I don't find it much of a distraction, as long as it returns to the original mode you were in.