https://openframeworks.cc/documentation/communication/ofSerial/#show_readBytes
I’m currently trying to get my sensor values(0~4000) from arduino to OF.
I tried readByte() but it only grabs 0~255 so I tried readBytes() from above link.
I copy&pasted the code to ofApp::update() and error keeps occurs.
it says I can’t use bytesRequired inside
“unsigned char bytes[bytesRequired];”
int bytesRequired = 8;
unsigned char bytes[bytesRequired];
int bytesRemaining = bytesRequired;
some sort of same naming problem? I cant really understand because I don’t have much knowledge in programming…
How can I make this example work?