aboutsummaryrefslogtreecommitdiff
path: root/hwdef-noctigon-m44.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-10-29 13:19:38 -0600
committerSelene ToyKeeper2023-10-29 13:19:38 -0600
commit4aec487ea7d03e9554ebbe8f50e72235bf6f2e6e (patch)
tree97dc4d4f8e52ee560ed65ba98c33e08ff3f4f2fa /hwdef-noctigon-m44.h
parentconverted noctigon-dm11-boost to use PWM+DSM, and recalibrated timing for del... (diff)
downloadanduril-4aec487ea7d03e9554ebbe8f50e72235bf6f2e6e.tar.gz
anduril-4aec487ea7d03e9554ebbe8f50e72235bf6f2e6e.tar.bz2
anduril-4aec487ea7d03e9554ebbe8f50e72235bf6f2e6e.zip
applied new delay factor to other DSM builds, and some new DSM_* defines
Diffstat (limited to '')
-rw-r--r--hwdef-noctigon-m44.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwdef-noctigon-m44.h b/hwdef-noctigon-m44.h
index 094e555..5658c9f 100644
--- a/hwdef-noctigon-m44.h
+++ b/hwdef-noctigon-m44.h
@@ -85,6 +85,8 @@ enum channel_modes_e {
#define DSM_INTCTRL TIMSK
#define DSM_OVF_bm (1<<TOIE1)
+#define DELAY_FACTOR 90 // less time in delay() because more time spent in interrupts
+
// 1st channel (8 LEDs)
uint16_t ch1_dsm_lvl;
uint8_t ch1_pwm, ch1_dsm;