#include #include #include #include //#include //#include //#include //tests5 tested and works (though 950Hz). unplug cable to programmer to see pin 4 active. //reference: https://www.avrfreaks.net/forum/sample-project-attiny10 //https://blog.podkalicki.com/attiny13-blinky-with-timer-compa/ //watchdog is too slow and inaccurate to get 6000Hz ISR(TIM0_COMPA_vect) { // Toggle PB2 Hi/Low depending on current state PINB = 1<<2; //PORTB ^= _BV(LED_PIN); // toggle LED pin } /* Delay in powerdown mode. Wake up by watchdog interrupt. * //NOTE: see earlier code, e.g. tests3 in attiny10 elec projects 2020 */ /* void delay_power_down_wdt(uint8_t wdto) { wdt_reset(); wdt_enable(wdto); WDTCSR |= (1<