Skip to content

Commit 86dd78b

Browse files
committed
Fixes arduino#14
1 parent d41e8ec commit 86dd78b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Language/Structure/Control Structure/break.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
---
2-
title: break
3-
categories: [ "Structure" ]
4-
subCategories: [ "Control Structure" ]
5-
---
6-
1+
---
2+
title: break
3+
categories: [ "Structure" ]
4+
subCategories: [ "Control Structure" ]
5+
---
6+
77
:source-highlighter: pygments
88
:pygments-style: arduino
99

@@ -38,7 +38,7 @@ In the following code, the control exits the `for` loop when the sensor value ex
3838
----
3939
for (x = 0; x < 255; x ++)
4040
{
41-
digitalWrite(PWMpin, x);
41+
analogWrite(PWMpin, x);
4242
sens = analogRead(sensorPin);
4343
if (sens > threshold){ // bail out on sensor detect
4444
x = 0;

Language/Structure/Control Structure/continue.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
---
2-
title: continue
3-
categories: [ "Structure" ]
4-
subCategories: [ "Control Structure" ]
5-
---
6-
1+
---
2+
title: continue
3+
categories: [ "Structure" ]
4+
subCategories: [ "Control Structure" ]
5+
---
6+
77
:source-highlighter: pygments
88
:pygments-style: arduino
99

@@ -43,7 +43,7 @@ for (x = 0; x <= 255; x ++)
4343
continue;
4444
}
4545
46-
digitalWrite(PWMpin, x);
46+
analogWrite(PWMpin, x);
4747
delay(50);
4848
}
4949
----

0 commit comments

Comments
 (0)