Skip to content

Instantly share code, notes, and snippets.

@GiovanniBalestrieri
Created July 30, 2015 18:19
Show Gist options
  • Save GiovanniBalestrieri/57caae80bf7f171f4ffd to your computer and use it in GitHub Desktop.
Save GiovanniBalestrieri/57caae80bf7f171f4ffd to your computer and use it in GitHub Desktop.
Snippet - Saving CSV data from Arduino to Matlab
void serialRoutine()
{
if(Serial.available()>0)
{
char t = Serial.read();
if (t =='T')
{
Serial.println("Ok");
}
else if (t== 'M')
{
printCSVomega();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment