Advertisement
Guest User

Untitled

a guest
Sep 14th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.33 KB | None | 0 0
  1. # cat cfg-fw3a.h
  2.  
  3.  
  4. // FW3A config options for Anduril
  5. #include "hwdef-FW3A.h"
  6.  
  7. // ../../bin/level_calc.py 1 65 7135 1 0.8 150
  8. // ... mixed with this:
  9. // ../../../bin/level_calc.py 3 150 7135 1 0.33 150 7135 1 1 850 FET 1 10 1500
  10. #define RAMP_LENGTH 150
  11. #define PWM1_LEVELS 1,1,2,2,3,3,4,4,5,6,7,8,9,10,12,13,14,15,17,19,20,22,24,26,29,31,34,36,39,42,45,48,51,55,59,62,66,70,75,79,84,89,93,99,104,110,115,121,127,134,140,147,154,161,168,176,184,192,200,209,217,226,236,245,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0
  12. #define PWM2_LEVELS 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,6,8,10,13,15,17,19,22,24,26,29,31,34,37,39,42,45,48,51,54,57,60,64,67,70,74,77,81,85,88,92,96,100,104,108,112,116,121,125,130,134,139,143,148,153,158,163,168,173,179,184,189,195,201,206,212,218,224,230,236,243,249,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0
  13. #define PWM3_LEVELS 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,19,31,43,55,67,79,91,104,117,130,143,157,170,184,198,212,226,240,255
  14. #define MAX_1x7135 65
  15. #define MAX_Nx7135 130
  16. #define HALFSPEED_LEVEL 14
  17. #define QUARTERSPEED_LEVEL 5
  18.  
  19. // stop panicking at about 3A or ~1100 lm, this light is a hotrod
  20. #define THERM_FASTER_LEVEL MAX_Nx7135
  21.  
  22. #define USE_TENCLICK_THERMAL_CONFIG
  23.  
  24. // can't reset the normal way because power is connected before the button
  25. #define USE_SOFT_FACTORY_RESET
  26.  
  27. // the button lights up
  28. #define USE_INDICATOR_LED
  29. // the aux LEDs are behind the main LEDs
  30. #ifdef USE_INDICATOR_LED_WHILE_RAMPING
  31. #undef USE_INDICATOR_LED_WHILE_RAMPING
  32. #endif
  33. // enable blinking indicator LED while off
  34. #define TICK_DURING_STANDBY
  35. #define STANDBY_TICK_SPEED 3  // every 0.128 s
  36. #define USE_FANCIER_BLINKING_INDICATOR
  37. #define INDICATOR_LED_DEFAULT_MODE ((3<<2) + 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement