~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to Flintrock/bistro-hd/configs/config_TAv1-OTC-HD.h

  • Committer: Selene Scriven
  • Date: 2017-11-18 19:58:08 UTC
  • Revision ID: bzr@toykeeper.net-20171118195808-1v4if4nvkexp2143
Updated bistro-HD to 1.7.1.
Flintrock suggested skipping the intermediate versions, due to known issues in them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
/////////////// Choose a layout////////////////
33
33
 
34
34
//#define FET_7135_LAYOUT  //FET+1
35
 
#define TRIPLEDOWN_LAYOUT  //TA tripple
 
35
#define TRIPLEDOWN_LAYOUT  //TA triple
36
36
//#define NANJG105D_LAYOUT      // biscotti/convoy/nanjg105D
37
37
//#define BLFA6_LAYOUT      // BLFA6, FET+1, OTC and star3
38
38
//#define NANJG_LAYOUT  // specify an I/O pin layout
41
41
//**** You can now easily customize layouts in fr-tk-attiny.h :
42
42
 
43
43
// choose the file that defines your modegruops (so we can easily keep more)
44
 
#define MODEGROUPS_H "modegroups/modegroups-TA-tripple-v1.3plus.h"
 
44
#define MODEGROUPS_H "modegroups/modegroups-TA-triple-v1.3plus.h"
45
45
//#define MODEGROUPS_H "modegroups/modegroups-biscotti.h"
46
46
//#define MODEGROUPS_H "modegroups/modegroups-BLFA6.h"
47
47
 
62
62
//#define USE_OTSM  // USE OTSM.  Pin must be defined in the layout too.
63
63
 
64
64
//#define OTSM_USES_OTC // use OTC cap for extra power on OTSM (sets it output high to charge up)
65
 
#define OTSM_powersave // Also works without OTSM to reduce moon-mode drain. 
 
65
#define POWERSAVE // Also works without OTSM to reduce moon-mode drain. 
66
66
             // Squeeze out a bit more off-time by saving power during
67
67
             // shutoff detection (so at all times).  Implements ms resolution (could be less) idle sleeps in place of delay.
68
68
             // Seems to add at 0.5s of sleep at 3.1V 30uF cap, starting with only 0.75 that matters.  
96
96
//#define REFERENCE_DIVIDER_READS_TO_VCC // default is 1.1V, but this is needed for divider reading with OTSM on the voltage pin.
97
97
                                         // This should normally be used with an LDO.  For 1S (non-LDO or 5.0VLDO) just avoid the problem with READ_VOLTAGE_FROM_VCC.
98
98
 
99
 
/*** Enable battery indicator mode?   */
100
 
#define USE_BATTCHECK
101
 
// Choose a battery indicator style
 
99
/***** Choose a battery indicator style (if enabled in modegroups)*******/
102
100
//#define BATTCHECK_4bars  // up to 4 blinks
103
101
//#define BATTCHECK_8bars  // up to 8 blinks
104
102
#define BATTCHECK_VpT  // Volts + tenths
105
103
 
106
 
/******theremal protection:  ***/
 
104
/******thermal protection:  ***/
107
105
#define TEMPERATURE_MON          // You can set starting temperature in the "maxtemp" setting in config options first boot options.
108
 
#define USE_TEMP_CAL    // include a TEMP_CAL mode in the menu.
109
 
#define TEMP_STEP_DOWN //Requires TEMPERATURE_MON, Use step-down and tap-up instead of regulate/oscillate
 
106
  #define USE_TEMP_CAL    // include a TEMP_CAL mode in the menu.  
 
107
  #define TEMP_STEP_DOWN //Requires TEMPERATURE_MON, Use step-down and tap-up instead of oscillate
 
108
    #define MINIMUM_TURBO_TIME  10 //Turbo will never run less than this long. Requires TEMP_STEP_DOWN
110
109
 
111
110
/*******Mode features***********/
112
111
#define USE_MUGGLE_MODE  // compile in use of muggle mode
115
114
 
116
115
// Options for first bootup/default:
117
116
 
118
 
#define USE_FIRSTBOOT // FR notes this only costs two bytes since not using it implements alternative checks anyway.
 
117
#define USE_FIRSTBOOT //Enables reset menu option, only costs a couple of bytes.
119
118
 
120
119
#define INIT_MODEGROUP      11       // which mode group will be default, mode groups below start at zero, select the mode group you want and subtract one from the number to get it by defualt here
121
120
#define INIT_ENABLE_MOON    1       // Should we add moon to the set of modes?
129
128
#define BLINK_SPEED         750
130
129
 
131
130
 
132
 
// This is used to simplify the toggle function
133
 
// eliminating mode_override, using this threshold instead:
134
 
#define MINIMUM_OVERRIDE_MODE 245  // DO NOT EDIT.  DO NOT DEFINE ANY STROBES HIGER OR EQUAL TO THIS.
135
 
 
136
 
/******* Select Which Strobes to compile in**** *********************/
137
 
////Must still be connected to a mode group or hidden mode to be used, enabled but unused modes don't get optimized out
138
 
 
139
 
#define BATTCHECK        244      // Convenience code for battery check mode
140
 
//mode codes for strobes, must be less than MINIMUM_OVERRIDE_MODE
141
 
#define BIKING_STROBE    243     // Single flash biking strobe mode
142
 
//#define FULL_BIKING_STROBE     // Stutter bike strobe, uncomment to enable
143
 
//#define POLICE_STROBE    242     // Dual mode alternating strobe
144
 
//#define RANDOM_STROBE    241
145
 
//#define SOS              240
146
 
//#define STROBE_8HZ       239
147
 
#define STROBE_10HZ      238
148
 
#define STROBE_16HZ      237
149
 
#define STROBE_OLD_MOVIE 236
150
 
#define STROBE_CREEPY    235     // Creepy strobe mode, or really cool if you have a bunch of friends around
151
 
//#define RAMP             234     //Ramping "strobe"
152
131
 
153
132
 
154
133
#ifdef STRIPPED  // define what you want to remove in stripped mode