LPC1768 Mini-DK board with 2.8" SPI TFT and SPI touch
Dependencies: Mini-DK SDFileSystem mbed
Fork of LPC1768_Mini-DK by
Diff: main.cpp
- Revision:
- 4:067633a7dfa5
- Parent:
- 3:fb4d62b5ffb3
- Child:
- 6:b547fb6c1095
--- a/main.cpp Thu Jan 03 16:16:24 2013 +0000 +++ b/main.cpp Thu Jan 03 16:28:16 2013 +0000 @@ -14,7 +14,6 @@ int main() { - unsigned char Ads7846_status; unsigned short LCD_id; TFT.claim(stdout); // send stdout to the TFT display @@ -133,8 +132,7 @@ { if (!TP._tp_irq) { - Ads7846_status = TP.Read_Ads7846(); - if (Ads7846_status) + if (TP.Read_Ads7846()) { TP.getDisplayPoint() ; TP.TP_DrawPoint(TP.display.x,TP.display.y, Blue);