Em setup(), use
teensy_interrupt_setup.ino
attachInterrupt(digitalPinToInterrupt(23), myInterrupt, RISING);para configurar a interrupção no Pino 23 do Teensy no edge RISING.
Adicione esta função, que será chamada durante a interrupção:
teensy_interrupt_function.ino
void myInterrupt() {
// O seu código vai aqui
}
Check out similar posts by category:
Eletrônica Teensy
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow