This demo performs communications between a standalone Revolution console USB (COM) port and a standalone PC. The USB (COM) ports are both used only for unidirectional communications.
The PC sends data to the Revolution
Data is sent when the slider bar on the PC is moved. With the Revolution, the received RGB color is displayed to the Revolution on the screen.
The Revolution sends data to the PC
Received data is sent when data is received from the PC. On the PC, received data is displayed as strings.
Note:dual uses Hio2If.
| Revolution | : | src/dual-main.c, include/dual.h, HioIf/* |
| PC | : | vc++/dual/*, vc++/HioIf/* |
| Revolution | ||
| - | A Button | (Re)connecting to the PC |
| - | B Button | Disconnecting from the PC |
| - | X Button | Change the data transmission method (synchronous/asynchronous) |
| PC | ||
| - | Slider bar | Send RGB color to the Revolution |
| - | CONNECT button | (Re)disconnecting from the Revolution |
| - | DISCONNECT button | Disconnecting from the Revolution |
| - | EXIT button | Exit application |
| - | SYNC/ASYNC radio buttons | Change the data transmission method (synchronous/asynchronous) |
03/01/2006 Initial version.