volatile byte dimmerSwitchISR = 9; // temporary switch for counter. counter is pwm for led dimmer
byte dimmerCount;
I don't know what a teensy is, but one of those should be volatile, and the other one shouldn't.
volatile byte dimmerSwitchISR = 9; // temporary switch for counter. counter is pwm for led dimmer
byte dimmerCount;
I don't know what a teensy is, but one of those should be volatile, and the other one shouldn't.