diff options
| author | Selene ToyKeeper | 2021-11-12 03:15:21 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-11-12 03:15:21 -0700 |
| commit | 4873134411e7309c951478c2c3739bdd4b3ff9fb (patch) | |
| tree | 3c24418836fdafe140c05e16735dc03964cb7ce4 /hwdef-BLF_LT1.h | |
| parent | fine-tuned DM11-12V build a bit based on actual measurements (diff) | |
| parent | fixed KR4-tintramp build (switch wasn't working) and added it to MODELS (diff) | |
| download | anduril-4873134411e7309c951478c2c3739bdd4b3ff9fb.tar.gz anduril-4873134411e7309c951478c2c3739bdd4b3ff9fb.tar.bz2 anduril-4873134411e7309c951478c2c3739bdd4b3ff9fb.zip | |
merged anduril2 branch for 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 |
