Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

I want to send a parameter from my computer (i.e using Hercules software) using UDP protocol to my Arduino with Ethernet shield to turn 2 LED on and off (each of them).

The command I'm using is:

$A<lamp 1>,B<lamp 2>

for example

$A1,B0

Does anyone know how to write the sketch so the Arduino can read the parameter <lamp 1> and <lamp 2>?

share|improve this question
    
Yes, plenty of people know how to write a sketch to do that. What have you tried to write? We're not here to do your work for you, we're here to help you do your work. Look at examples, read tutorials. Adapt them to your needs. –  Majenko Aug 20 at 9:10
1  
I don't understand the question, to be frank. What parameter? What is "hercules software"? A link would be handy. The command i'm using is : $A,B for example $A1,B0 - I'm not sure what that means. –  Nick Gammon Aug 20 at 9:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.