aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/arduino/break.rst
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-01-24 23:23:29 -0500
committerPerry Hung <iperry@gmail.com>2011-01-24 23:23:29 -0500
commitc48689d34809943a5907884bd287cea9ae275352 (patch)
treed49ff06b0d4b81f6ab0eac8060d178ce7542476c /docs/source/arduino/break.rst
parent64431fd4b59cb8656365f1fad5f679cd4d756239 (diff)
parenta9b2d70bc7799ca96c1673b18fe3012b1a4dd329 (diff)
downloadlibrambutan-c48689d34809943a5907884bd287cea9ae275352.tar.gz
librambutan-c48689d34809943a5907884bd287cea9ae275352.zip
Merge remote branch 'leaf/master'
Diffstat (limited to 'docs/source/arduino/break.rst')
-rw-r--r--docs/source/arduino/break.rst28
1 files changed, 0 insertions, 28 deletions
diff --git a/docs/source/arduino/break.rst b/docs/source/arduino/break.rst
deleted file mode 100644
index d951c52..0000000
--- a/docs/source/arduino/break.rst
+++ /dev/null
@@ -1,28 +0,0 @@
-.. _arduino-break:
-
-break
-=====
-
-**break** is used to exit from a **do**, **for**, or **while**
-loop, bypassing the normal loop condition. It is also used to exit
-from a **switch** statement.
-
-
-
-Example
--------
-
-::
-
- for (x = 0; x < 255; x ++)
- {
- digitalWrite(PWMpin, x);
- sens = analogRead(sensorPin);
- if (sens > threshold){ // bail out on sensor detect
- x = 0;
- break;
- }
- delay(50);
- }
-
-