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

This is an example of how to use the ReadSensorHTTouchMultiplexer function.

task main()
{
byte t1, t2, t3, t4;
while (true) {
ReadSensorHTTouchMultiplexer(S1, t1, t2, t3, t4);
if (t1)
TextOut(0, LCD_LINE1, "1 pressed" );
else
TextOut(0, LCD_LINE1, " " );
if (t2)
TextOut(0, LCD_LINE2, "2 pressed" );
else
TextOut(0, LCD_LINE2, " " );
if (t3)
TextOut(0, LCD_LINE3, "3 pressed" );
else
TextOut(0, LCD_LINE3, " " );
if (t4)
TextOut(0, LCD_LINE4, "4 pressed" );
else
TextOut(0, LCD_LINE4, " " );
}
}