XMOS SliceKit GPIO Gpio Example Applications page 17

Table of Contents

Advertisement

SliceKit GPIO Example Applications
REV A
17/24
: // Checks
if button is
pressed
c_end : >
button
;
if ( button
==
BUTTON_1
) //
Prints
Button
1
is
pressed
on
the
Uart
{
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])
;
button1_press
=1;
}
if ( button
==
BUTTON_2
) //
Prints
Button
2
is
pressed
on
Uart
{
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