blob: d74ec1867c138561976f21054db9c1ae125a79e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
}
|