aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-08-13 02:51:30 +0200
committerTectu <joel@unormal.org>2012-08-13 02:51:30 +0200
commite7f0c8e2c2791fd2e571c762f03e277161f98a4b (patch)
treedf68fb99e038dce713226a16ac8b63f3dc653c87 /demos
parent2285ddfc63b852e60fa0a95d32ffb6cc1d59c8a2 (diff)
downloaduGFX-e7f0c8e2c2791fd2e571c762f03e277161f98a4b.tar.gz
uGFX-e7f0c8e2c2791fd2e571c762f03e277161f98a4b.tar.bz2
uGFX-e7f0c8e2c2791fd2e571c762f03e277161f98a4b.zip
added lcd demo dummy
Diffstat (limited to 'demos')
-rw-r--r--demos/lcd/main.c19
-rw-r--r--demos/touchpad/main.c26
2 files changed, 19 insertions, 26 deletions
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);
- }
-}
-