Teensy 4.1 Arduino externer Interrupt (Pin-Interrupt) Minimalbeispiel
English
Deutsch
Verwende in setup()
teensy_interrupt_setup.ino
attachInterrupt(digitalPinToInterrupt(23), myInterrupt, RISING);um den Interrupt am Teensy-Pin 23 bei der RISING-Flanke zu konfigurieren.
Füge diese Funktion hinzu, die während des Interrupts aufgerufen wird:
teensy_interrupt_function.ino
void myInterrupt() {
// Dein Code kommt hier rein
}Check out similar posts by category:
Electronics, 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