test STMPE811 I2C +TFT

Dependencies:   mbed TS_STMPE811 GLCD_MCB1700

Files at this revision

API Documentation at this revision

Comitter:
fblanc
Date:
Fri Feb 13 14:35:09 2015 +0000
Parent:
0:f9cee437ca54
Child:
2:0fc1974a5fba
Commit message:
BUG 2 main()

Changed in this revision

GLCD_MCB1700.lib Show annotated file Show diff for this revision Revisions of this file
TS_STMPE811.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GLCD_MCB1700.lib	Mon Mar 12 11:58:22 2012 +0000
+++ b/GLCD_MCB1700.lib	Fri Feb 13 14:35:09 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/fblanc/code/GLCD_MCB1700/#b96b9110daf9
+http://mbed.org/users/fblanc/code/GLCD_MCB1700/#0ae206eb6e55
--- a/TS_STMPE811.lib	Mon Mar 12 11:58:22 2012 +0000
+++ b/TS_STMPE811.lib	Fri Feb 13 14:35:09 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/fblanc/code/TS_STMPE811/#f69f52bd2222
+http://mbed.org/users/fblanc/code/TS_STMPE811/#a1e34dd1f0a0
--- a/main.cpp	Mon Mar 12 11:58:22 2012 +0000
+++ b/main.cpp	Fri Feb 13 14:35:09 2015 +0000
@@ -1,33 +1,4 @@
-#include "mbed.h"
-#include "TS.h"
-#define   TFT 1
-DigitalOut led1(P1_28);
-DigitalOut led2(P4_28);
-DigitalOut led3(P1_31);
-InterruptIn event(P0_5);//P0_5 INT_TS
-int x,y,z;
-void isr_TSF(void)
-{
-    led2 = !led2;
-    TS_Write (TS_INT_STA, 0xFF); 
-}
-int main() {
-    //init GLCD
-#ifdef TFT
-    GLCD_Init();
-    GLCD_Clear  (White);
-    GLCD_DisplayString  (0, 0, 1, (unsigned char *)"QEI HARDWARE MOTOR");
-    
-#endif
-led3=0;
-event.mode(PullUp);                              //PULL-UP
-if(TS_Init ())
-    led2=1;
-wait(1);
-event.fall(&isr_TSF);
-    while(1) {
-    }
-}
+
 #include "mbed.h"
 #include "TS.h"
 #include "GLCD_MCB1700.h"