Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

Use USB to read status of ports in io-repeater app

I want to set/clear bits on the ports of a first Wixel that transmits the port info to a second Wixel using the io-repeater app. I want to read the status of the ports on the second (receiving) Wixel using its USB port with a terminal program. How?

Hello, Doug.

You can use the function in the Wixel SDK’s usb_com library to send and receive bytes from the computer over the virtual COM port. The library is documented here:
pololu.github.com/wixel-sdk/usb__com_8h.html

I would make a modified version of the I/O repeater app that reports to the computer on a regular interval, or make it report when a certain character is received from the computer. There is plenty of example code showing how to use the usb_com library in the Wixel SDK.

–David