SliceKit GPIO Example Applications
>
Dipslays
>
>
Button
>
>
2
>
>
is
>
>
pressed
>
}
if( !
>
button1_press
>
&&
>
!
>
button2_press
>
)
{
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[5])
>
;
>
>
//
>
Displays
>
>
No
>
>
Buttons
>
>
are
>
>
pressed
>
}
button1_press
>
=0;
button2_press
>
=0;
break ;
}
if( data != EXIT ) // Exits
>
from command mode
{
uart_tx_send_byte
>
( c_uartTX ,
>
'\r ');
uart_tx_send_byte
>
( c_uartTX ,
>
'\n ');
uart_tx_send_byte
>
( c_uartTX ,
>
'>');
}
break ;
}// select
//:: State
}// skip
REV A