User Tools

Site Tools


workshop:uart

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
workshop:uart [2012/08/13 14:39] dongheeworkshop:uart [2018/07/18 14:10] (current) – external edit 127.0.0.1
Line 38: Line 38:
     value = Serial.read();     value = Serial.read();
     if (value == '1') {      if (value == '1') { 
-    digitalWrite(ledPin, HIGH);+      digitalWrite(ledPin, HIGH);
     } else {     } else {
-    digitalWrite(ledPin, LOW);+      digitalWrite(ledPin, LOW);
     }     }
   }   }
workshop/uart.1344868754.txt.gz · Last modified: 2018/07/18 14:09 (external edit)