/* Blink Turns an LED on for one second, then off for one second, repeatedly. BOARD: ATtiny1614/1604/814/804/414/404/214/204 Chip: ATtiny1614 Clock Speed: 20MHz Programmer: jtag2updi (megaTinyCore) */ void setup() { PORTA.DIR = 0b00000110; } void loop() { PORTA.OUT = 0b0000010; delay(200); // wait for a second PORTA.OUT = 0b0000100; delay(100); // wait for a second PORTA.OUT = 0b0000110; delay(100); // wait for a second PORTA.OUT = 0b0000010; delay(100); // wait for a second PORTA.OUT = 0b0000000; }