arduino:serial_communication
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
arduino:serial_communication [2012/09/14 01:02] – mithat | arduino:serial_communication [2012/09/14 01:04] – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Serial Communication ====== | ====== Serial Communication ====== | ||
+ | ===== Switch controlled LED with serial reporting ===== | ||
<file c LightSwitchMonitored.ino> | <file c LightSwitchMonitored.ino> | ||
/* | /* | ||
Line 23: | Line 24: | ||
// set LED state accordingly | // set LED state accordingly | ||
- | if (buttonState == LOW) // if the button is pushed | + | if (buttonState == LOW) |
digitalWrite(ledPin, | digitalWrite(ledPin, | ||
else // otherwise | else // otherwise |
arduino/serial_communication.txt · Last modified: 2012/09/14 01:19 by mithat