Fork with support for ILI9341 controller

Dependents:   CANary_9341 CANary

Fork of TOUCH_TFTx2 by Tick Tock

Revision:
6:a91b668b058a
Parent:
5:a9890c586a64
Child:
10:fd7ae99850a9
diff -r a9890c586a64 -r a91b668b058a TOUCH_TFTx2.h
--- a/TOUCH_TFTx2.h	Thu Feb 14 00:26:54 2013 +0000
+++ b/TOUCH_TFTx2.h	Sun Feb 17 16:44:06 2013 +0000
@@ -23,41 +23,6 @@
        };
 
 
-/** touchscreen control class, based on SPI_TFT
- *
- * Example:
- * @code
- * 
- * #include "mbed.h"
- * #include "SPI_TFTx2.h"
- * #include "Arial12x12.h"
- * #include "Arial28x28.h"
- * #include "TOUCH_TFTx2.h"
- * // the TFT is connected to SPI pin 5-7
- * // the touch is connected to 19,20,16,17
- *
- * TOUCH_TFTx2 tt(p19,p20,p16,p17,p5, p6, p7, p8, p9, p15,"TFT"); // x+,x-,y+,y-,mosi, miso, sclk, cs, reset
- *
- * int main() {
- * point p;
- *
- *  tt.claim(stdout);        // send stdout to the TFT display
- *  tt.background(Black);    // set background to black
- *  tt.foreground(White);    // set chars to white
- *  tt.cls();                // clear the screen
- *  tt.set_font((unsigned char*) Arial12x12);  // select the font
- *  tt.set_orientation(1);
- *
- *  tt.calibrate();          // calibrate the touch
- * while (1) {
- *       p = tt.get_touch();   // read analog pos.
- *       if (tt.is_touched(p)) {  // test if touched
- *           p = tt.to_pixel(p);             // convert to pixel pos
- *           tt.fillcircle(p.x,p.y,3,Blue);  // print a blue dot on the screen
- *     }
- * }
- * @endcode
- */
 class TOUCH_TFTx2 : public  SPI_TFTx2{
 public:
     /** create a TFT with touch object connected to the pins:
@@ -100,6 +65,8 @@
      *
      */   
     bool is_touched(void);    
+
+    void wfi(void);    
     
 protected:
     DigitalInOut _xp;