diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 09:03:31 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 09:03:31 +0200 |
commit | 42ec7df723ece5c2c4400d8db24e3a2ac6b826d0 (patch) | |
tree | b60357f2fd4cae75fa12816fe22284d454ca39b9 /arduino/01-blink-a-led/solution/assignment-1 | |
parent | fc8c037b80dea764393b79cba85a83004bd0aef6 (diff) | |
download | iot-workshop-ndc-2018-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.tar.gz iot-workshop-ndc-2018-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.tar.bz2 iot-workshop-ndc-2018-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.tar.xz iot-workshop-ndc-2018-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.zip |
wip
Diffstat (limited to 'arduino/01-blink-a-led/solution/assignment-1')
-rw-r--r-- | arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino b/arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino new file mode 100644 index 0000000..5b72892 --- /dev/null +++ b/arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino @@ -0,0 +1,20 @@ +const int LED_PIN = D0; + +void setup() { + Serial.begin(115200); + Serial.println(); + Serial.println(); + Serial.println("Hello world!"); + pinMode(LED_PIN, OUTPUT); +} + +void loop() { + digitalWrite(LED_PIN, HIGH); + Serial.println("HIGH"); + delay(1000); + + digitalWrite(LED_PIN, LOW); + Serial.println("LOW"); + delay(1000); +} + |