Richardson
Active member
I have this code:
No Sketch upload is possible. I have to press the Teensy Reset Button to upload a new sketch everytime.
It there a fix for this problem?
Code:
attachInterrupt(digitalPinToInterrupt(CLOCK_PIN), interrupt_func, RISING);
FASTRUN void interrupt_func() {
noInterrupts();
// Waiting for LOW
while(digitalReadFast(CLOCK_PIN) == HIGH) { }
// wait 4x 280ns cycles inside this interrupt
delayNanoseconds(1050);
interrupts();
}
No Sketch upload is possible. I have to press the Teensy Reset Button to upload a new sketch everytime.
It there a fix for this problem?