I just upgraded from the IDE version 0022 to the 1.0, and now my interrupts no longer fire in SLEEP_MODE_PWR_DOWN mode. Is anyone aware of this change?
The SLEEP_MODE_IDLE mode just bounces out of the sleep mode too quickly, so it's rather pointless. I'm trying to put the thing to sleep, and the SLEEP_MODE_PWR_DOWN does, but after the upgrade, the interrupts no longer fire. The code :
After getting the arduino un-bricked, I have validated that moving back to 0023 the interrupts were working, and moving to 1.0 and uploading the code caused them to fail. Back to 0023 a fourth time, and it is clear something has changed from 0023 to 1.0, as it works again.
Figured it out.. setting the attachInterrupt() once in the setup routine did the trick.
I also had to disable timer0 with power_timer0_disable() before sleep_mode() and enable it back at wakeup. http://paste.pocoo.org/show/586914/