Advertisement
Guest User

cfg-tf-boost-hdr

a guest
Mar 31st, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.14 KB | None | 0 0
  1. //thefreeman's boost HDR driver config options for Anduril
  2. #define MODEL_NUMBER "1711" // 17 for thefreeman’s drivers ?
  3. #include "hwdef-TF-boost-HDR.h"
  4. // ATTINY: 1616
  5.  
  6. //
  7. // RAMP CONFIG
  8. //
  9.  
  10. // enable Turbo on 2C from Off
  11. #define USE_2C_MAX_TURBO
  12.  
  13. // Uncomment to use stepped ramp by default (instead of smooth)
  14. //#undef RAMP_STYLE
  15. //#define RAMP_STYLE 1
  16.  
  17. // ../../bin/level_calc.py cube 1 150 7135 10 2500
  18. #define RAMP_LENGTH 150
  19. #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
  20. //#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
  21. #define DEFAULT_LEVEL 56 //need to check
  22. #define MAX_1x7135 18 //MIN_THERM_STEPDOWN defined as MAX_1x7135 in ramp-mode.h if not otherwise defined
  23.  
  24. //don’t use those
  25. //#define HALFSPEED_LEVEL 14 ?
  26. //#define QUARTERSPEED_LEVEL 6 ?
  27.  
  28. #define RAMP_SMOOTH_FLOOR 1 //
  29. #define RAMP_SMOOTH_CEIL 120 // need to check
  30.  
  31. #define RAMP_DISCRETE_FLOOR 1
  32. #define RAMP_DISCRETE_CEIL RAMP_SMOOTH_CEIL
  33. #define RAMP_DISCRETE_STEPS 7
  34.  
  35. #define SIMPLE_UI_FLOOR 1
  36. #define SIMPLE_UI_CEIL 120
  37. #define SIMPLE_UI_STEPS 7
  38.  
  39. // the entire ramp is regulated; don't blink halfway up
  40. #ifdef BLINK_AT_RAMP_MIDDLE
  41. #undef BLINK_AT_RAMP_MIDDLE
  42. #endif
  43.  
  44. // don't slow down at low levels; this isn't that sort of light
  45. // (it needs to stay at full speed for the 10-bit PWM to work)
  46. #ifdef USE_DYNAMIC_UNDERCLOCKING
  47. #undef USE_DYNAMIC_UNDERCLOCKING
  48. #endif
  49.  
  50.  
  51. //
  52. // THERMAL CONFIG
  53. //
  54.  
  55. // stop panicking at ~30% power, depends on the light
  56. #define THERM_FASTER_LEVEL 105
  57. #define MIN_THERM_STEPDOWN 69  //MIN_THERM_STEPDOWN defined as MAX_1x7135 in ramp-mode.h if not otherwise defined
  58.  
  59.  
  60. // easier access to thermal config mode, similar to Emisar, Noctigon
  61. #define USE_TENCLICK_THERMAL_CONFIG
  62.  
  63. // Uncomment to change default thermal settings
  64. //#undef DEFAULT_THERM_CEIL
  65. //#define DEFAULT_THERM_CEIL 45 //default value
  66. //#define MAX_THERM_CEIL 70 // default maximum value
  67.  
  68. //
  69. // AUX LEDs
  70. //
  71.  
  72. // this light has three aux LED channels: R, G, B
  73. #define USE_AUX_RGB_LEDS
  74.  
  75. // the aux LEDs are front-facing, so turn them off while main LEDs are on
  76. #ifdef USE_INDICATOR_LED_WHILE_RAMPING
  77. #undef USE_INDICATOR_LED_WHILE_RAMPING
  78. #endif
  79. #define RGB_LED_OFF_DEFAULT 0x18  // low, voltage
  80. #define RGB_LED_LOCKOUT_DEFAULT 0x37  // blinking, rainbow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement