NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_NXTHID.nxc

This is an example of how to use the NXTHIDAsciiMode, NXTHIDDirectMode, NXTHIDTransmit, NXTHIDLoadCharacter, SetSensorLowspeed, and Wait functions.

task main()
{
SetSensorLowspeed(S1); // NXTHID is an i2c device
char result;
// configure device in ASCII mode
// load a character
// transmit the character
// configure device in Direct mode
// load a character
// transmit the character
}