File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
Multiple Blinks
3
3
4
4
Demonstrates the use of the Scheduler library for the Arduino Due
5
-
5
+
6
6
Hardware required :
7
7
* LEDs connected to pins 11, 12, and 13
8
8
9
9
created 8 Oct 2012
10
10
by Cristian Maglie
11
- Modified by
11
+ Modified by
12
12
Scott Fitzgerald 19 Oct 2012
13
-
13
+
14
14
This example code is in the public domain
15
-
15
+
16
16
http://arduino.cc/en/Tutorial/MultipleBlinks
17
17
*/
18
18
@@ -64,11 +64,11 @@ void loop2() {
64
64
void loop3 () {
65
65
if (Serial.available ()) {
66
66
char c = Serial.read ();
67
- if (c== ' 0' ) {
67
+ if (c == ' 0' ) {
68
68
digitalWrite (led3, LOW);
69
69
Serial.println (" Led turned off!" );
70
70
}
71
- if (c== ' 1' ) {
71
+ if (c == ' 1' ) {
72
72
digitalWrite (led3, HIGH);
73
73
Serial.println (" Led turned on!" );
74
74
}
You can’t perform that action at this time.
0 commit comments