SliceKit GPIO Example Applications
>
: // Checks
>
if button is
>
pressed
c_end :>
>
button
>
;
if( button
>
==
>
BUTTON_1
>
) //
>
Prints
>
>
Button
>
1
>
is
>
pressed
>
on
>
the
>
Uart
{
CONSOLE_MESSAGES
>
[4][9]= '1 ';
>
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[4])
>
;
>
button1_press
>
=1;
>
}
if( button
>
==
>
BUTTON_2
>
) //
>
Prints
>
>
Button
>
2
>
is
>
pressed
>
on
>
Uart
{
CONSOLE_MESSAGES
>
[4][9]= '2 ';
>
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[4])
>
;
>
REV A