Go Down

Topic: parse serial packet (Read 567 times) previous topic - next topic


This is something Ive been having issues with and wondered if someone could help. I simply want to control the pwm duty cycle on pin 9 and 10 from Pure data. One idea I had is i will send 3 bytes to the arduino

pwm1, pwm2, end_signifier

Ill use 255 for end signifier (dont mind loosing one value for the pwm).

What would the set up of serial.read and serial.available look like for this. If anyone could point me I'd be super grateful. Do i need to set up some kind of buffer?

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!

via Egeo 16
Torino, 10131