diff options
| author | Selene ToyKeeper | 2022-03-24 18:47:04 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2022-03-24 18:47:04 -0600 |
| commit | 91c84394de6987ee93f9cf5fccffc84ebcb5d36b (patch) | |
| tree | 0176d4eccd2fa2efe25a08ec71f0e5934484a44c /hwdef-Noctigon_DM11.h | |
| parent | fixed bug where tint-ramping could end up 1 brightness ramp step different th... (diff) | |
| download | anduril-91c84394de6987ee93f9cf5fccffc84ebcb5d36b.tar.gz anduril-91c84394de6987ee93f9cf5fccffc84ebcb5d36b.tar.bz2 anduril-91c84394de6987ee93f9cf5fccffc84ebcb5d36b.zip | |
added Noctigon DM11-SBT90.2 build
(which is mostly like the regular linear+FET build,
but has the switch on a different pin for some reason)
Diffstat (limited to '')
| -rw-r--r-- | hwdef-Noctigon_DM11.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/hwdef-Noctigon_DM11.h b/hwdef-Noctigon_DM11.h index 93ed707..19532e9 100644 --- a/hwdef-Noctigon_DM11.h +++ b/hwdef-Noctigon_DM11.h @@ -21,10 +21,10 @@ * 14 PC1 SCK * 15 PC0 (none) PWM0A * 16 PB3 main LED PWM (PWM1A) - * 17 PB2 MISO / e-switch? (PCINT10) + * 17 PB2 MISO / (none) (PCINT10) * 18 PB1 MOSI / battery voltage (ADC6) * 19 PB0 Opamp power - * 20 PA7 e-switch? (PCINT7) + * 20 PA7 e-switch (PCINT7) * ADC12 thermal sensor * * Main LED power uses one pin to turn the Opamp on/off, @@ -46,13 +46,6 @@ #define PWM_TOP 255 // highest value used in top half of ramp #define USE_DYN_PWM // dynamic frequency and speed -//#define SWITCH_PIN PB2 // pin 17 -//#define SWITCH_PCINT PCINT10 // pin 17 pin change interrupt -//#define SWITCH_PCIE PCIE1 // PCIE1 is for PCINT[11:8] -//#define SWITCH_PCMSK PCMSK1 // PCMSK1 is for PCINT[11:8] -//#define SWITCH_PORT PINB // PINA or PINB or PINC -//#define PCINT_vect PCINT1_vect // ISR for PCINT[11:8] - #define SWITCH_PIN PA7 // pin 20 #define SWITCH_PCINT PCINT7 // pin 20 pin change interrupt #define SWITCH_PCIE PCIE0 // PCIE0 is for PCINT[7:0] @@ -150,8 +143,6 @@ inline void hwdef_setup() { PWM1_TOP = PWM_TOP; // set up e-switch - ////PORTB = (1 << SWITCH_PIN); // TODO: configure PORTA / PORTB / PORTC? - //PUEB = (1 << SWITCH_PIN); // pull-up for e-switch //PORTA = (1 << SWITCH_PIN); // TODO: configure PORTA / PORTB / PORTC? PUEA = (1 << SWITCH_PIN); // pull-up for e-switch SWITCH_PCMSK = (1 << SWITCH_PCINT); // enable pin change interrupt |
