NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_buttonpressed.nxc
This is an example of how to use the
ButtonPressed
function.
task main()
{
#ifdef __ENHANCED_FIRMWARE
SetLongAbort
(
true
);
#endif
while
(
true
)
{
#ifdef __ENHANCED_FIRMWARE
NumOut
(0,
LCD_LINE1
,
ButtonPressed
(
BTNEXIT
,
false
));
#endif
NumOut
(0,
LCD_LINE2
,
ButtonPressed
(
BTNRIGHT
,
false
));
NumOut
(0,
LCD_LINE3
,
ButtonPressed
(
BTNLEFT
,
false
));
NumOut
(0,
LCD_LINE4
,
ButtonPressed
(
BTNCENTER
,
false
));
}
}
Generated by
1.8.2