diff options
| author | Selene ToyKeeper | 2021-09-08 21:38:20 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-09-08 21:38:20 -0600 |
| commit | baee74468b044a664e80eaf4540af6d001186bce (patch) | |
| tree | 95915d0aa302ee13d0f35575b66042ae4dacb049 | |
| parent | copied Q8 hwdef to LT1 so I can improve it (diff) | |
| download | anduril-baee74468b044a664e80eaf4540af6d001186bce.tar.gz anduril-baee74468b044a664e80eaf4540af6d001186bce.tar.bz2 anduril-baee74468b044a664e80eaf4540af6d001186bce.zip | |
fixed D4Sv2-tintramp PWM_TOP (should be set to the value it needs during thermal regulation)
Diffstat (limited to '')
| -rw-r--r-- | hwdef-Emisar_D4Sv2-tintramp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hwdef-Emisar_D4Sv2-tintramp.h b/hwdef-Emisar_D4Sv2-tintramp.h index 2b36ed4..a0300ad 100644 --- a/hwdef-Emisar_D4Sv2-tintramp.h +++ b/hwdef-Emisar_D4Sv2-tintramp.h @@ -41,8 +41,8 @@ #include <avr/io.h> #define PWM_CHANNELS 1 // 1 virtual channel (1 for main LEDs + 1 for 2nd LEDs) -#define PWM_BITS 12 // 0 to 4095 at 1 kHz, not 0 to 255 at 16 kHz -#define PWM_TOP 4095 +#define PWM_BITS 14 // 0 to 16383 at variable Hz, not 0 to 255 at 16 kHz +#define PWM_TOP 255 // dynamic PWM with tint ramping #define USE_DYN_PWM // dynamic frequency and speed #define PWM_DATATYPE2 uint16_t // doesn't need 32-bit math |
