aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/break.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-11-21 01:40:37 -0500
committerMarti Bolivar <mbolivar@mit.edu>2010-11-21 01:40:37 -0500
commitc770a7f14404822c1164a2399079411a37808cfd (patch)
tree599188be6e3a5d105f9b8c4baba19d280b3d1058 /source/arduino/break.rst
parent4b60b1cad5fe16895179d0bd8a5dc1e6e4c7564c (diff)
downloadlibrambutan-c770a7f14404822c1164a2399079411a37808cfd.tar.gz
librambutan-c770a7f14404822c1164a2399079411a37808cfd.zip
updated serial bootloader spec; other improvements
Diffstat (limited to 'source/arduino/break.rst')
-rw-r--r--source/arduino/break.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/arduino/break.rst b/source/arduino/break.rst
index 8c0478a..3e1e9ee 100644
--- a/source/arduino/break.rst
+++ b/source/arduino/break.rst
@@ -19,17 +19,17 @@ Example
for (x = 0; x < 255; x ++)
{
digitalWrite(PWMpin, x);
- sens = analogRead(sensorPin);
+ sens = analogRead(sensorPin);
if (sens > threshold){ // bail out on sensor detect
x = 0;
// this line of code means that we'll immediately exit
// from the "for" loop:
break;
- }
+ }
delay(50);
}
-
-.. include:: cc-attribution.txt \ No newline at end of file
+
+.. include:: cc-attribution.txt