Skip to content

Instantly share code, notes, and snippets.

@adielfernandez
adielfernandez / OFtoArduino
Last active March 10, 2018 23:29
Arduino serial string parsing (from OF string sending)
//This code is for sending data from OpenFrameworks to Arduino. This will package 3 values for the arduino
//to read as a string. This code supports values from -2,147,483,648 to 2,147,483,647, not just 0-255!
//(since we're storing them on the arduino side as long variables)
//------------------------------OpenFrameworks string sending------------------------------
//The code below will send the values 12345, 0 and 255.
//----------in header file----------