aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-09-08 21:38:20 -0600
committerSelene ToyKeeper2021-09-08 21:38:20 -0600
commitbaee74468b044a664e80eaf4540af6d001186bce (patch)
tree95915d0aa302ee13d0f35575b66042ae4dacb049
parentcopied Q8 hwdef to LT1 so I can improve it (diff)
downloadanduril-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)
-rw-r--r--hwdef-Emisar_D4Sv2-tintramp.h4
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
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.