From e7f0c8e2c2791fd2e571c762f03e277161f98a4b Mon Sep 17 00:00:00 2001 From: Tectu Date: Mon, 13 Aug 2012 02:51:30 +0200 Subject: [PATCH] added lcd demo dummy --- demos/lcd/main.c | 19 +++++++++++++++++++ demos/touchpad/main.c | 26 -------------------------- 2 files changed, 19 insertions(+), 26 deletions(-) create mode 100644 demos/lcd/main.c delete mode 100644 demos/touchpad/main.c diff --git a/demos/lcd/main.c b/demos/lcd/main.c new file mode 100644 index 00000000..99b87948 --- /dev/null +++ b/demos/lcd/main.c @@ -0,0 +1,19 @@ +#include "ch.h" +#include "hal.h" +#include "gdisp.h" + +int main(void) { + halInit(); + chSysInit(); + + gdispInit(); + gdispClear(Black); + + // gdispDrawXXX(...); + + while (TRUE) { + + chThdSleepMilliseconds(100); + } +} + diff --git a/demos/touchpad/main.c b/demos/touchpad/main.c deleted file mode 100644 index 1651a3bf..00000000 --- a/demos/touchpad/main.c +++ /dev/null @@ -1,26 +0,0 @@ -#include "ch.h" -#include "hal.h" -#include "gdisp.h" -#include "touchpad.h" - -TOUCHPADDriver TOUCHPADD1 = { - &SPID1, -}; - -int main(void) { - halInit(); - chSysInit(); - - gdispInit(); - gdispClear(Lime); - - tpInit(&TOUCHPADD1); - tpCalibrate(); - - while (TRUE) { - gdispFillCircle(tpReadX(), tpReadY(), 3, Black); - - chThdSleepMilliseconds(100); - } -} -