XMOS SliceKit GPIO Gpio Example Applications page 20

Table of Contents

Advertisement

SliceKit GPIO Example Applications
REV A
20/24
input is
invalid
command on
the Uart
uart_tx_string
(
c_uartTX
,
C O NS O LE _ ME S SA G ES
[2])
;
break ;
case CHK_BUTTONS :
// Checks if
button are
pressed and
displays on
the Uart
if (
button1_press
)
{
C O NS O L E_ M ES S AG
[4][9]= '1
uart _tx_s tring
(
c_uartTX
,
CO N SO L E_ M
[4])
;
//
Displays
Button
1
is
pressed
}
if (
button2_press
)
{
C O NS O L E_ M ES S AG
[4][9]= '2
uart _tx_s tring
(
c_uartTX
,
CO N SO L E_ M
[4])
;
//

Advertisement

Table of Contents
loading

This manual is also suitable for:

Slicekit

Table of Contents