diff options
author | Marti Bolivar <mbolivar@mit.edu> | 2010-11-21 01:40:37 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@mit.edu> | 2010-11-21 01:40:37 -0500 |
commit | 19e8336afbc827378216aca2b1af45ef89a108ab (patch) | |
tree | 5aeb911d2f697ab3bf6ad9cf3609c19fe7a83346 /docs/source/arduino/break.rst | |
parent | b2653be281539928a7ba92433fe2b7c2e3ef4cd4 (diff) | |
download | librambutan-19e8336afbc827378216aca2b1af45ef89a108ab.tar.gz librambutan-19e8336afbc827378216aca2b1af45ef89a108ab.zip |
updated serial bootloader spec; other improvements
Diffstat (limited to 'docs/source/arduino/break.rst')
-rw-r--r-- | docs/source/arduino/break.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/source/arduino/break.rst b/docs/source/arduino/break.rst index 8c0478a..3e1e9ee 100644 --- a/docs/source/arduino/break.rst +++ b/docs/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 |