This file contains hidden or 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
| // | |
| // SysCommand.h | |
| // | |
| // Created by Brett Renfer on 2/22/12. | |
| // | |
| #pragma once | |
| #include "ofThread.h" | |
| class SysCommand : private ofThread |
This file contains hidden or 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; |
This file contains hidden or 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
| // BIND FIX FOR OLDER BROWSERS | |
| if( Function.prototype.bind ) { | |
| } else { | |
| /** safari, why you no bind!? */ | |
| Function.prototype.bind = function (bind) { | |
| var self = this; | |
| return function () { | |
| var args = Array.prototype.slice.call(arguments); | |
| return self.apply(bind || null, args); | |
| }; |
NewerOlder