User Tools

Site Tools


arduino:serial_communication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
arduino:serial_communication [2012/09/14 01:02] mithatarduino: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)         // if the button is pushed
     digitalWrite(ledPin, HIGH);   // turn the LED on     digitalWrite(ledPin, HIGH);   // turn the LED on
   else                            // otherwise   else                            // otherwise
arduino/serial_communication.txt · Last modified: 2012/09/14 01:19 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki