From 7224fce49e4fa8c0b966dcc8d4f9b1d12b02f66a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 31 Jan 2026 17:35:51 +0530 Subject: Init commit with blink shit --- src/main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main.cpp (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..6226244 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,16 @@ +#include + +// 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 +} -- cgit v1.3.1