// the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. PORTA.DIR = 1; } // the loop function runs over and over again forever void loop() { PORTA.OUT = 2; // turn the LED on (HIGH is the voltage level) delay(200); // wait for a second PORTA.OUT = 0; // turn the LED on (HIGH is the voltage level) delay(200); // wait for a second }