Go Down

Topic: a simple increment count doesn't work (Read 451 times) previous topic - next topic

Ps991

But, wouldn't it be easier just to send a single character that tells it to turn on or off, rather than a continuous sending. Like, send 'A' to turn it on, 'B' to turn it off. Seems easier.
If you can't write your program in plain english where anyone could understand it then you have no hope of writing code for it.  -Delta_G

jonnys90

Yeah, but i need to turn on it just when i press the button on the master arduino, otherwise yes, it could be much more easier.

PaulS

Quote
but i need to turn on it just when i press the button on the master arduino
So, look at the state change detection example. Send ONE character when the switch becomes pressed. Send a different character when the switch becomes released.

jonnys90

So, look at the state change detection example. Send ONE character when the switch becomes pressed. Send a different character when the switch becomes released.
Yeah, this is also a good alternative, thanks Paul!

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy