i’m having trouble catching the sleep button interrupt.
this is my code,
[code]int pin = 8;
volatile int state = LOW;
attachInterrupt(0, blink, CHANGE);
state = !state;
i expect it to turn the onboard led on and off but it does not do this. please help. thanks!