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/continue.rst | |
parent | b2653be281539928a7ba92433fe2b7c2e3ef4cd4 (diff) | |
download | librambutan-19e8336afbc827378216aca2b1af45ef89a108ab.tar.gz librambutan-19e8336afbc827378216aca2b1af45ef89a108ab.zip |
updated serial bootloader spec; other improvements
Diffstat (limited to 'docs/source/arduino/continue.rst')
-rw-r--r-- | docs/source/arduino/continue.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/source/arduino/continue.rst b/docs/source/arduino/continue.rst index 31af3a5..bda1c95 100644 --- a/docs/source/arduino/continue.rst +++ b/docs/source/arduino/continue.rst @@ -2,8 +2,9 @@ .. _arduino-continue: -continue -======== +========== + continue +========== The ``continue`` keyword skips the rest of the current iteration of a :ref:`while <arduino-while>`\ , :ref:`for <arduino-for>`\ , or @@ -13,22 +14,21 @@ iterations. Example -------- +======= :: - - for (x = 0; x < 255; x ++) - { - if (x > 40 && x < 120){ // create jump in values + + for (x = 0; x < 255; x ++) { + if (x > 40 && x < 120) { // create jump in values continue; // skips the next two lines and goes to the // beginning of the loop, with the next value of x } - + digitalWrite(PWMpin, x); delay(50); } -.. include:: cc-attribution.txt
\ No newline at end of file +.. include:: cc-attribution.txt |