aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LedAansturen/LedAansturen.ino27
1 files changed, 27 insertions, 0 deletions
diff --git a/LedAansturen/LedAansturen.ino b/LedAansturen/LedAansturen.ino
new file mode 100644
index 0000000..d74ec18
--- /dev/null
+++ b/LedAansturen/LedAansturen.ino
@@ -0,0 +1,27 @@
+void setup() {
+ // put your setup code here, to run once:
+ pinMode(2, OUTPUT);
+ pinMode(3, OUTPUT);
+ pinMode(4, OUTPUT);
+}
+void loop() {
+ // put your main code here, to run repeatedly:
+
+ //LED 1 aansturen
+ digitalWrite(2, HIGH);
+ delay(1000);
+ digitalWrite(2, LOW);
+ delay(1000);
+
+ //LED 2 aansturen
+ digitalWrite(3, HIGH);
+ delay(1000);
+ digitalWrite(3, LOW);
+ delay(1000);
+
+ //LED 3 aansturen
+ digitalWrite(4, HIGH);
+ delay(1000);
+ digitalWrite(4, LOW);
+ delay(1000);
+}