52
52
#define SWITCH_PCIE PCIE0 // PCIE1 is for PCINT[7:0]
53
53
#define SWITCH_PCMSK PCMSK0 // PCMSK1 is for PCINT[7:0]
54
54
#define SWITCH_PORT PINA // PINA or PINB or PINC
55
56
#define PCINT_vect PCINT0_vect // ISR for PCINT[7:0]
57
58
// usually PWM1_LVL would be a hardware register, but we need to abstract