aboutsummaryrefslogtreecommitdiff
path: root/hwdef-BLF_LT1.h
diff options
context:
space:
mode:
authorGabriel Hart2022-04-11 09:29:31 -0500
committerGabriel Hart2022-04-11 09:29:31 -0500
commit4d558992d4cc6434ec3ee94d535cd4b61a92a128 (patch)
tree8ffc3723da4657518aa340dca5fdd7ef7fc8ad28 /hwdef-BLF_LT1.h
parentTweak a few MT35Mini settings (diff)
parentrevert spurious change to version.h (diff)
downloadanduril-4d558992d4cc6434ec3ee94d535cd4b61a92a128.tar.gz
anduril-4d558992d4cc6434ec3ee94d535cd4b61a92a128.tar.bz2
anduril-4d558992d4cc6434ec3ee94d535cd4b61a92a128.zip
Merge from TK's main A2 branch thru Rev 647 which includes several patches for the Sofirn SP10 Pro after TK merge that branch in
Diffstat (limited to 'hwdef-BLF_LT1.h')
-rw-r--r--hwdef-BLF_LT1.h4
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