Send int greater than 256 or less than 0 from MaxMSP into code on Arduino board.

div's icon

Hi all,

I am trying to send an int into code on my arduino board but can't figure out how to send a value > 256 or

It seems fundamental!

What am I missing?

seejayjames's icon

what do you get if you send it? I mean, what prints out in the terminal?

You might have to set your Arduino code to LONG or something, rather than BYTE. Also not sure how [serial] will handle this. You might have to pack two chars together using [* 256] and [+] and decode it at the other end in reverse.