Go Down

Topic: how to turn led on or off by giving command "ON" and "OFF"  (Read 208 times) previous topic - next topic

Tashrafkhan

Hi guys
Please help me with this. How can I turn my LED on or off by writing in the serial monitor "ON" and "OFF"
TIA

larryd

Before you start with you project, examine and run the example sketches that are included in the IDE.



No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

neiklot

And THEN, have a look at Robin2's seminal thread on getting stuff in from Serial (example 2 should do you, or example 3 is more robust), and then probably use strcmp to see if you entered either ON or OFF.




Go Up