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/volatile.rst | |
parent | b2653be281539928a7ba92433fe2b7c2e3ef4cd4 (diff) | |
download | librambutan-19e8336afbc827378216aca2b1af45ef89a108ab.tar.gz librambutan-19e8336afbc827378216aca2b1af45ef89a108ab.zip |
updated serial bootloader spec; other improvements
Diffstat (limited to 'docs/source/arduino/volatile.rst')
-rw-r--r-- | docs/source/arduino/volatile.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/source/arduino/volatile.rst b/docs/source/arduino/volatile.rst index 9516db0..fc02081 100644 --- a/docs/source/arduino/volatile.rst +++ b/docs/source/arduino/volatile.rst @@ -39,21 +39,21 @@ Example :: // toggles LED when interrupt pin changes state - + int pin = 13; volatile int state = LOW; - + void setup() { pinMode(pin, OUTPUT); attachInterrupt(0, blink, CHANGE); } - + void loop() { digitalWrite(pin, state); } - + void blink() { state = !state; @@ -70,4 +70,4 @@ See also -.. include:: cc-attribution.txt
\ No newline at end of file +.. include:: cc-attribution.txt |