diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-10-08 18:28:04 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-10-08 18:28:04 +0200 |
commit | e590d179e5b29dbf5a69440aac1350f7e27e8b43 (patch) | |
tree | 752ce44a522be6e770d26b7a1524b99f2d726198 | |
parent | 1aefca1baaf385d15c014247d3a5e489d13a6450 (diff) |
add Nathan's code
-rw-r--r-- | LedAansturen/LedAansturen.ino | 27 |
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);
+}
|