diff options
| author | Selene ToyKeeper | 2023-07-21 15:47:52 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-07-21 15:47:52 -0600 |
| commit | d4e948ab54c8f71db2790a964668e1f3b399e7db (patch) | |
| tree | d72e38be294f666af8941e01915f04080c4d3ec0 /spaghetti-monster | |
| parent | fixed default channel mode after using factory reset with colors (diff) | |
| download | anduril-d4e948ab54c8f71db2790a964668e1f3b399e7db.tar.gz anduril-d4e948ab54c8f71db2790a964668e1f3b399e7db.tar.bz2 anduril-d4e948ab54c8f71db2790a964668e1f3b399e7db.zip | |
converted noctigon-k1 to multi-channel
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/cfg-noctigon-k1.h | 42 |
1 files changed, 30 insertions, 12 deletions
diff --git a/spaghetti-monster/anduril/cfg-noctigon-k1.h b/spaghetti-monster/anduril/cfg-noctigon-k1.h index 93244a6..b2d4697 100644 --- a/spaghetti-monster/anduril/cfg-noctigon-k1.h +++ b/spaghetti-monster/anduril/cfg-noctigon-k1.h @@ -5,7 +5,7 @@ #define MODEL_NUMBER "0251" // (originally known as Emisar D1S v2) -#include "hwdef-Noctigon_K1.h" +#include "hwdef-noctigon-k1.h" #include "hank-cfg.h" // ATTINY: 1634 @@ -15,22 +15,23 @@ // this light has three aux LED channels: R, G, B #define USE_AUX_RGB_LEDS -#define USE_AUX_RGB_LEDS_WHILE_ON +#define USE_AUX_RGB_LEDS_WHILE_ON 5 #define USE_INDICATOR_LED_WHILE_RAMPING +#define RAMP_SIZE 150 + // ../../bin/level_calc.py cube 1 150 7135 1 4 1300 // (with max_pwm set to 1023) // (level 0 flickers and isn't relevant on a thrower, so it's omitted) #define RAMP_LENGTH 150 #define PWM1_LEVELS 1,1,2,2,3,3,4,4,5,6,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,23,24,26,27,29,31,32,34,36,38,40,43,45,47,49,52,54,57,60,62,65,68,71,74,77,81,84,87,91,95,98,102,106,110,114,118,122,127,131,136,141,145,150,155,160,166,171,176,182,188,193,199,205,211,218,224,231,237,244,251,258,265,272,280,287,295,303,310,319,327,335,344,352,361,370,379,388,397,407,416,426,436,446,457,467,477,488,499,510,521,533,544,556,568,580,592,604,617,629,642,655,668,682,695,709,723,737,751,766,781,795,810,826,841,857,872,888,904,921,937,954,971,988,1005,1023 -#define MAX_1x7135 50 - -// the entire ramp is regulated; don't blink halfway up -#ifdef BLINK_AT_RAMP_MIDDLE -#undef BLINK_AT_RAMP_MIDDLE -#endif +#define MAX_1x7135 50 +#define DEFAULT_LEVEL 50 +#define MIN_THERM_STEPDOWN 50 // should be above highest dyn_pwm level +//#define HALFSPEED_LEVEL 12 +//#define QUARTERSPEED_LEVEL 4 // 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 @@ -49,17 +50,34 @@ #define SIMPLE_UI_CEIL RAMP_DISCRETE_CEIL #define SIMPLE_UI_STEPS 5 -// make candle mode wobble more -#define CANDLE_AMPLITUDE 32 - // stop panicking at ~70% power or ~600 lm #define THERM_FASTER_LEVEL 130 +#define THERM_CAL_OFFSET 5 + #define THERM_RESPONSE_MAGNITUDE 32 // smaller adjustments, this host changes temperature slowly #define THERM_NEXT_WARNING_THRESHOLD 32 // more error tolerance before adjusting +// the power regulator is a bit slow, so push it harder for a quick response from off +#define DEFAULT_JUMP_START_LEVEL 10 +#define BLINK_BRIGHTNESS DEFAULT_LEVEL +#define BLINK_ONCE_TIME 12 + +// show each channel while it scroll by in the menu +#define USE_CONFIG_COLORS + +// there is usually no lighted button, +// so blink numbers on the main LEDs by default (but allow user to change it) +#define DEFAULT_BLINK_CHANNEL CM_MAIN + // slow down party strobe; this driver can't pulse for 1ms or less #define PARTY_STROBE_ONTIME 2 -#define THERM_CAL_OFFSET 5 +// make candle mode wobble more +#define CANDLE_AMPLITUDE 32 + +// don't blink while ramping; the entire ramp is regulated +#ifdef BLINK_AT_RAMP_MIDDLE +#undef BLINK_AT_RAMP_MIDDLE +#endif |
