03-13-2017, 07:34 AM
Na asinhrone externe sam i mislio kada sam poredio ATmega sa STM32.
Quote:Most Arduino boards have two external interrupts: numbers 0 (on digital pin 2) and 1 (on digital pin 3).
The Arduino Mega has an additional four: numbers 2 (pin 21), 3 (pin 20), 4 (pin 19), and 5 (pin 18).
On the Maple (STM32), you don’t have to remember which interrupt number goes with which pin – just tell attachInterrupt() the pin you want.