The code for this program and other examples can be downloaded from the downloads page. Other Programming Environments NXC The Touch Sensor Multiplexer can read from NXC by reading as shown in the following example. NXC Example code value=1023-SensorRaw(INPUT_PORT); More information regarding NXC is available at http://bricxcc.sourceforge.net/nbc/. LabVIEW Toolkit vi The Touch Sensor Multiplexer is supported from the NXT LabVIEW Toolkit. A vi is available for download from the Download page.
More information on LabView for MINDSTORMS is available at http://www.ni.com/academic/mindstorms/
RobotC
task main()
while (true) // if (nButtonsMask & 0x01) if (nButtonsMask & 0x02) if (nButtonsMask & 0x04) if (nButtonsMask & 0x08)
For more information go to http://www.robotc.net/content/lego_over/lego_over.html. Notes:
The latest version of the Touch Sensor Multiplexer block is available at www.hitechnic.com. Go to the downloads page to download all the HiTechnic programming blocks.
|