diff options
Diffstat (limited to 'demos/LPC21xx/RT-LPC214x-OLIMEX/main.c')
-rw-r--r-- | demos/LPC21xx/RT-LPC214x-OLIMEX/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c b/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c index 4b12ed6a6..65ce344c8 100644 --- a/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c +++ b/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c @@ -89,6 +89,8 @@ int main(void) { * sleeping in a loop and check the buttons state and run test procedure.
*/
while (TRUE) {
+ if (!palReadPad(IOPORT1, PA_BUTTON1))
+ sdWrite(&SD1, (uint8_t *)"Hello World!\r\n", 14);
if (!palReadPad(IOPORT1, PA_BUTTON2))
TestThread(&SD1);
chThdSleepMilliseconds(500);
|