diff options
| author | Selene ToyKeeper | 2021-11-06 00:58:59 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-11-06 00:58:59 -0600 |
| commit | 046a76deda6c3e586162dacd28b18371629ab990 (patch) | |
| tree | 649814ac426c1543d2d8d52df1c2bf6c8a9a3583 /hwdef-BLF_LT1.h | |
| parent | merged gchart's recent changes (diff) | |
| parent | fixed KR4-tintramp build (switch wasn't working) and added it to MODELS (diff) | |
| download | anduril-046a76deda6c3e586162dacd28b18371629ab990.tar.gz anduril-046a76deda6c3e586162dacd28b18371629ab990.tar.bz2 anduril-046a76deda6c3e586162dacd28b18371629ab990.zip | |
merged recent anduril2 branch updates
Diffstat (limited to 'hwdef-BLF_LT1.h')
| -rw-r--r-- | hwdef-BLF_LT1.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hwdef-BLF_LT1.h b/hwdef-BLF_LT1.h index d0c2821..16e1c90 100644 --- a/hwdef-BLF_LT1.h +++ b/hwdef-BLF_LT1.h @@ -14,7 +14,7 @@ #include <avr/io.h> #define PWM_CHANNELS 1 // 1 virtual channel (1 for main LEDs + 1 for 2nd LEDs) -#define PWM_BITS 8 // 0 to 255 at 15.6 kHz +#define PWM_BITS 9 // 0 to 255 at 15.6 kHz, but goes to 510 for "200%" turbo #define PWM_TOP 255 // dynamic PWM with tint ramping (not supported on attiny85) @@ -25,7 +25,7 @@ // it out to a soft brightness value, in order to handle tint ramping // (this allows smooth thermal regulation to work, and makes things // otherwise simpler and easier) -uint8_t PWM1_LVL; +uint16_t PWM1_LVL; #define PWM1_PIN PB0 // pin 5, warm tint PWM #define TINT1_LVL OCR0A // OCR0A is the output compare register for PB0 |
