Pinguino Forum

Full Version: attachInterrupt(digitalPinToInterrupt(pin), ISR, mode);
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The format for using attachInterrupt() is shown at

a simple example is shown

int pin = 13;
volatile int state = LOW;

void blink() {
   state = !state;

void setup() {
   pinMode(pin, OUTPUT);
   attachInterrupt(pin, blink, CHANGE);

void loop() {
   digitalWrite(pin, state);

I can't get this to work. Does anyone have a successful use of attachInterrupt()?

attachInterrupt() appears to not work in Pinguino, has anyone else confirmed this?