How can read serial Arduino to play video OF


#1

I do the same video.

But when I readbyte() on OF,

ofSerial mySerial;
mySerial.setup(“COM3”, 9600);
int myByte = 0;
myByte = mySerial.readByte();
if ( myByte == OF_SERIAL_NO_DATA )
printf(“no data was read”);
else if ( myByte == OF_SERIAL_ERROR )
printf(“an error occurred”);
else
printf(“myByte is %d”, myByte);

resulf:
yte is 13myByte is 10myByte is 48myByte is 13myByte is 10myByte is 48myByte is 13myByte is 10myByte is 48myByte is 13myByte is 10myByte is 48myByte is 13myByte is 10myByte is 48myByte is 13myByte is 10myByte is 48myByte is 13myByte is 10myByte is 48myByte is 13

Please, help me !

I want interaction push button on arduino and play video on OF.