[PD] Stupid arduino question
martin.peach at sympatico.ca
Tue Oct 26 01:07:10 CEST 2010
The easy way is to get arduino to send bytes, like:
This is fine if the value is between 0 and 255, otherwise you need to send:
, catch the ASCII linefeed (CR = 10 or LF = 13) and accumulate all the
digits before that, subtract ASCII zero ('0' = 48) from each digit, then
multiply the digits by powers of 10 and add them together.
On 2010-10-25 18:08, Dafydd Hughes wrote:
> Hey folks
> I feel like an idiot. I'm trying to get a rotary encoder to send data to Pd - I have the arduino end working fine, but I'm getting a bunch of ascii numbers coming out of [comport]. Can somebody help this poor old tired brain change them to floats?
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
More information about the Pd-list