#include //Needed for sleep_mode #include //Needed to enable/disable watch dog timer void setup() { pinMode(0, OUTPUT);// LED connected to pin 5 which is recognised as pin 0 by arduino ADCSRA &= ~(1< 9 ) timerPrescaler = 9; //Limit incoming amount to legal settings byte bb = timerPrescaler & 7; if (timerPrescaler > 7) bb |= (1<<5); //Set the special 5th bit if necessary //This order of commands is important and cannot be combined MCUSR &= ~(1<