Skip to content

Instantly share code, notes, and snippets.

@robotconscience
Created April 17, 2012 02:24
Show Gist options
  • Save robotconscience/2402995 to your computer and use it in GitHub Desktop.
Save robotconscience/2402995 to your computer and use it in GitHub Desktop.
Find name of Arduino Uno in OF
ofSerial s;
vector <ofSerialDeviceInfo> deviceList = s.getDeviceList();
for(int k = 0; k < (int)deviceList.size(); k++){
port = deviceList[k].getDeviceName();
if ( port.find( "usbmodem" ) != string::npos ) break;
}
cout << "connecting to serial device "<< port<<endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment