turn on/off a led with serial (by Alex)
Hello, i would like to control a led with serial communication using arduino uno, if i recieve letter "a" from my pc led turns on, if i recieve number"d"from my pc led turns off, give me some example please
(no subject) (by Alex)
i found some solution here:
https://cq.cx/ladder-forum.pl?action=viewthread&parent=49
1) it works ok, but, when i recieve "attt" led turns on due to that in "attt" there is letter "a" which turn on led, the same with letter "d" which turns off led.
2) then,...how could i turn on led using now "aa" and turn off led using "dd" not 3 or 1 letter, just 2.