From 6cd93f1b273e10484f39052b53fd47a606a944f2 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 6 Mar 2018 14:57:55 +0100 Subject: [PATCH] blink --- src/main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main.cpp diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..08df484 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,16 @@ +#include "Arduino.h" + +#ifndef LED_BUILTIN +#define LED_BUILTIN 13 +#endif + +void setup() { + pinMode(LED_BUILTIN, OUTPUT); +} + +void loop() { + digitalWrite(LED_BUILTIN, HIGH); + delay(1000); + digitalWrite(LED_BUILTIN, LOW); + delay(1000); +}