Lego Mindstorm programming question

Mavrick

Senior member
Mar 11, 2001
524
0
0
I'm building a project with visual C++ and a Lego MindStorm kit for school. I need to be able to read data from the RCX input ports (for light and rotation values) and get those values in the main computer using the included infrared port and Lego's Spirit.ocx

Unfortunately, I have not been able at all to get theC++ program to read those inputs; I've only been able to command outputs from the computer.

If anybody knows which functions to use or how to do it, feel free to enlighten me :)