Home > Programming > OOPic I/O
This C++ programme for Windows communicates to a Savage Innovations OOPic microcontroller through the parallel port (using the I2C Dynamic-Data-Exchange Link). The OOPic code is also provided. Both writing and reading is possible. The example controls a servo motor connected to the OOPic. The I2C communication classes are ported from Savage Innovations' Visual Basic code of "I2CTools.exe". This programme is in fact a C++ version of the "21 Servos" programme in I2CTools.exe.
Although using the parallel port to talk to the OOPic is very slow, it might be handy if you want to control few variables on a simple OOPic I - you spare the time of tinkering a RS232/TTL level converter (converting RS232 to TTL levels). If you want reasonable speed, rather choose to do your OOPic/PC communication via the UART serial connection (oSerial, oSerialPort... objects).
Download source code (M$ Visual C++ project, win-zip archive).
Whenever you use this code, let me know!
1709 people visited this page.