Created
April 17, 2012 02:24
-
-
Save robotconscience/2402995 to your computer and use it in GitHub Desktop.
Find name of Arduino Uno in OF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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