Skip to content

Commit ea95f7a

Browse files
author
Ales_Svoboda
committed
Redefinition of delay times.
1 parent 439a5a8 commit ea95f7a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

examples/RelayControl/RelayControl.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
*
44
* This sketch demonstrates using SimpleRelay library to control a relay.
55
* In setup() phase, relay will be turned on and after a second it will be turned off.
6-
* In loop() phase, relay state will be periodically changed between "on" and "off".
6+
* In loop() phase, relay state will be periodically changed between "on" and "off" with
7+
* two-second period.
78
*
89
* Copyright 2019 JSC electronics
910
*
@@ -27,11 +28,11 @@ SimpleRelay relay = SimpleRelay(RELAY_PIN);
2728

2829
void setup() {
2930
relay.on();
30-
delay(1);
31+
delay(1000);
3132
relay.off();
3233
}
3334

3435
void loop() {
3536
relay.toggle();
36-
delay(5);
37+
delay(2000);
3738
}

0 commit comments

Comments
 (0)