Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //thefreeman's boost HDR driver config options for Anduril
- #define MODEL_NUMBER "1711" // 17 for thefreeman’s drivers ?
- #include "hwdef-TF-boost-HDR.h"
- // ATTINY: 1616
- //
- // RAMP CONFIG
- //
- // enable Turbo on 2C from Off
- #define USE_2C_MAX_TURBO
- // Uncomment to use stepped ramp by default (instead of smooth)
- //#undef RAMP_STYLE
- //#define RAMP_STYLE 1
- // ../../bin/level_calc.py cube 1 150 7135 10 2500
- #define RAMP_LENGTH 150
- #define PWM1_LEVELS 0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,4,4,4,5,5,5,6,6,7,7,8,8,8,9,9,10,11,11,12,12,13,14,14,15,16,16,17,18,19,19,20,21,22,23,24,24,25,26,27,28,29,31,32,33,34,35,36,37,39,40,41,42,44,45,47,48,49,51,52,54,56,57,59,61,62,64,66,67,69,71,73,75,77,79,81,83,85,87,89,91,94,96,98,100,103,105,108,110,113,115,118,120,123,126,128,131,134,137,140,143,146,149,152,155,158,161,164,168,171,174,178,181,185,188,192,195,199,203,206,210,214,218,222,226,230,234,238,242,246,251,255
- //#define PWM2_LEVELS 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,5,5,6,7,8,9,10,11,12,13,15,16,17,19,20,22,24,26,27,29,31,34,36,38,41,43,46,48,51,54,57,60,63,66,70,73,77,81,85,88,93,97,101,106,110,115,120,125,130,135,140,146,152,157,163,169,176,182,189,195,202,209,216,224,231,239,247,255,263,271,280,288,297,306,315,325,334,344,354,364,374,385,396,406,418,429,440,452,464,476,488,501,514,527,540,553,567,581,595,609,623,638,653,668,684,699,715,731,748,764,781,798,815,833,851,869,887,906,925,944,963,983,1003,1023
- #define DEFAULT_LEVEL 56 //need to check
- #define MAX_1x7135 18 //MIN_THERM_STEPDOWN defined as MAX_1x7135 in ramp-mode.h if not otherwise defined
- //don’t use those
- //#define HALFSPEED_LEVEL 14 ?
- //#define QUARTERSPEED_LEVEL 6 ?
- #define RAMP_SMOOTH_FLOOR 1 //
- #define RAMP_SMOOTH_CEIL 120 // need to check
- #define RAMP_DISCRETE_FLOOR 1
- #define RAMP_DISCRETE_CEIL RAMP_SMOOTH_CEIL
- #define RAMP_DISCRETE_STEPS 7
- #define SIMPLE_UI_FLOOR 1
- #define SIMPLE_UI_CEIL 120
- #define SIMPLE_UI_STEPS 7
- // the entire ramp is regulated; don't blink halfway up
- #ifdef BLINK_AT_RAMP_MIDDLE
- #undef BLINK_AT_RAMP_MIDDLE
- #endif
- // don't slow down at low levels; this isn't that sort of light
- // (it needs to stay at full speed for the 10-bit PWM to work)
- #ifdef USE_DYNAMIC_UNDERCLOCKING
- #undef USE_DYNAMIC_UNDERCLOCKING
- #endif
- //
- // THERMAL CONFIG
- //
- // stop panicking at ~30% power, depends on the light
- #define THERM_FASTER_LEVEL 105
- #define MIN_THERM_STEPDOWN 69 //MIN_THERM_STEPDOWN defined as MAX_1x7135 in ramp-mode.h if not otherwise defined
- // easier access to thermal config mode, similar to Emisar, Noctigon
- #define USE_TENCLICK_THERMAL_CONFIG
- // Uncomment to change default thermal settings
- //#undef DEFAULT_THERM_CEIL
- //#define DEFAULT_THERM_CEIL 45 //default value
- //#define MAX_THERM_CEIL 70 // default maximum value
- //
- // AUX LEDs
- //
- // this light has three aux LED channels: R, G, B
- #define USE_AUX_RGB_LEDS
- // the aux LEDs are front-facing, so turn them off while main LEDs are on
- #ifdef USE_INDICATOR_LED_WHILE_RAMPING
- #undef USE_INDICATOR_LED_WHILE_RAMPING
- #endif
- #define RGB_LED_OFF_DEFAULT 0x18 // low, voltage
- #define RGB_LED_LOCKOUT_DEFAULT 0x37 // blinking, rainbow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement