aboutsummaryrefslogtreecommitdiff
path: root/hwdef-Emisar_D4Sv2-tintramp.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-11-03 20:33:01 -0600
committerSelene ToyKeeper2021-11-03 20:33:01 -0600
commitc3f547d5edfbca0ed78190d9d8b8f3609baebb5f (patch)
treee2742fde3919e7bf1b5ff76f1b7eab43236a96d9 /hwdef-Emisar_D4Sv2-tintramp.h
parentreset tint while changing tint ramp style (diff)
downloadanduril-c3f547d5edfbca0ed78190d9d8b8f3609baebb5f.tar.gz
anduril-c3f547d5edfbca0ed78190d9d8b8f3609baebb5f.tar.bz2
anduril-c3f547d5edfbca0ed78190d9d8b8f3609baebb5f.zip
fixed KR4-tintramp build (switch wasn't working) and added it to MODELS
Diffstat (limited to 'hwdef-Emisar_D4Sv2-tintramp.h')
-rw-r--r--hwdef-Emisar_D4Sv2-tintramp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwdef-Emisar_D4Sv2-tintramp.h b/hwdef-Emisar_D4Sv2-tintramp.h
index 3291c8b..90545f4 100644
--- a/hwdef-Emisar_D4Sv2-tintramp.h
+++ b/hwdef-Emisar_D4Sv2-tintramp.h
@@ -47,6 +47,7 @@
#define USE_DYN_PWM // dynamic frequency and speed
#define PWM_DATATYPE2 uint32_t // only needs 32-bit if ramp values go over 255
+#ifndef SWITCH_PIN
#define SWITCH_PIN PA7 // pin 20
#define SWITCH_PCINT PCINT7 // pin 20 pin change interrupt
#define SWITCH_PCIE PCIE0 // PCIE1 is for PCINT[7:0]
@@ -54,6 +55,7 @@
#define SWITCH_PORT PINA // PINA or PINB or PINC
#define SWITCH_PUE PUEA // pullup group A
#define PCINT_vect PCINT0_vect // ISR for PCINT[7:0]
+#endif
// usually PWM1_LVL would be a hardware register, but we need to abstract
// it out to a soft brightness value, in order to handle tint ramping