~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to JonnyC/STAR/STAR_momentary/STAR_momentary.c

  • Committer: Selene Scriven
  • Date: 2015-01-24 06:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 101.
  • Revision ID: ubuntu@toykeeper.net-20150124061754-1knfh0wid57zqmva
JCapSolutions   2014-12-23
git commit: 655cb6fa100ca6ec5368076eab62987f8a95d57e
Set the max (255) mode to be PHASE so you don't the light isn't fully off when holding the switch to move to off in H-L mode order.  Thanks ToyKeeper :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
#define VOLTAGE_MON                     // Comment out to disable - ramp down and eventual shutoff when battery is low
75
75
#define MODES                   0,3,14,39,125,255               // Must be low to high, and must start with 0
76
76
#define ALT_MODES               0,3,14,39,125,255               // Must be low to high, and must start with 0, the defines the level for the secondary output. Comment out if no secondary output
77
 
#define MODE_PWM                0,PHASE,FAST,FAST,FAST,FAST             // Define one per mode above. 0 tells the light to go to sleep
 
77
#define MODE_PWM                0,PHASE,FAST,FAST,FAST,PHASE            // Define one per mode above. 0 tells the light to go to sleep
78
78
#define TURBO                           // Comment out to disable - full output with a step down after n number of seconds
79
79
                                                        // If turbo is enabled, it will be where 255 is listed in the modes above
80
80
#define TURBO_TIMEOUT   5625 // How many WTD ticks before before dropping down (.016 sec each)