/* * Blink program * An arduino program that blink the led * connected to pin 1/PA5 of the MidTiny board (ATtiny1614). * * Author: Harley Lara * Create: 03 May 2021 * License: (CC BY-SA 4.0) Attribution-ShareAlike 4.0 International * * This work may be reproduced, modified, distributed, * performed, and displayed for any purpose, but must * acknowledge this project. Copyright is retained and * must be preserved. The work is provided as is; no * warranty is provided, and users accept all liability. * */ #define LED 1 // Define LED pin #define DELAY 500 // Define waiting time void setup() { pinMode(LED, OUTPUT); // Define the led port as output. } void loop() { digitalWrite(LED, HIGH); // LED ON delay(DELAY); // Wait half a second digitalWrite(LED, LOW); //LED OFF delay(DELAY); // Wait half a second }