aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 62262442d7c18feca62d56d7ac072ec7eb9ae8e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <Arduino.h>

// Physical Pin 2 on the ATtiny84a is Arduino Digital Pin 0
#define LED_PIN 0

void setup() {
  // Initialize the digital pin as an output.
  pinMode(LED_PIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_PIN, HIGH); // Turn the LED on
  delay(1000);                // Wait for a second
  digitalWrite(LED_PIN, LOW);  // Turn the LED off
  delay(1000);                // Wait for a second
}