We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439a5a8 commit ea95f7aCopy full SHA for ea95f7a
1 file changed
examples/RelayControl/RelayControl.ino
@@ -3,7 +3,8 @@
3
*
4
* This sketch demonstrates using SimpleRelay library to control a relay.
5
* 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".
+ * In loop() phase, relay state will be periodically changed between "on" and "off" with
7
+ * two-second period.
8
9
* Copyright 2019 JSC electronics
10
@@ -27,11 +28,11 @@ SimpleRelay relay = SimpleRelay(RELAY_PIN);
27
28
29
void setup() {
30
relay.on();
- delay(1);
31
+ delay(1000);
32
relay.off();
33
}
34
35
void loop() {
36
relay.toggle();
- delay(5);
37
+ delay(2000);
38
0 commit comments