SliceKit GPIO Example Applications
>
input is
>
invalid
>
command on
>
the Uart
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[2])
>
;
break ;
case CHK_BUTTONS :
>
// Checks if
>
button are
>
pressed and
>
displays on
>
the Uart
if(
>
button1_press
>
)
{
CONSOLE_MESSAGES
>
[4][9]= '1 ';
>
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[4])
>
;
>
>
//
>
Displays
>
>
Button
>
>
1
>
>
is
>
>
pressed
>
}
if(
>
button2_press
>
)
{
CONSOLE_MESSAGES
>
[4][9]= '2 ';
>
uart_tx_string
>
(
>
c_uartTX
>
,
>
CONSOLE_MESSAGES
>
[4])
>
;
>
>
//
REV A