This is a port of Henning Kralsen's UTFT library for Arduino/chipKIT to mbed, refactored to make full use of C inheritance and access control, in order to reduce work when implementing new drivers and at the same time make the code more readable and easier to maintain. As of now supported are SSD1289 (16-bit interface), HX8340-B (serial interface) and ST7735 (serial interface). Drivers for other controllers will be added as time and resources to acquire the displays to test the code permit. This fork is for 8 bit interface. I will add proper switch in later commit

Dependents:   KL25Z_ILI9325

Fork of TFTLCD by Todor Todorov

Revision:
20:4bdca8d8dadc
Parent:
12:d0978272a340
Child:
22:4c169297f374
--- a/hx8340bs.h	Thu Dec 13 03:37:22 2012 +0000
+++ b/hx8340bs.h	Fri Dec 21 06:05:15 2012 +0000
@@ -166,15 +166,16 @@
      * \remarks Addressing commands are controller-specific and this function needs to be
      *          implemented separately for each available controller.
      */
-    virtual void SetXY( uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2 );
+    virtual void SetXY( unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2 );
     
     /** Sets the color of the pixel at the address pointer of the controller.
      *
      * This function is to be provided by each implementation separately in
      * order to account for different color depth used by the controller.
      * \param color The color of the pixel.
+     * \param mode The depth (palette) of the color.
      */
-    virtual void SetPixelColor( unsigned int color );
+    virtual void SetPixelColor( unsigned int color, colordepth_t mode = RGB24 );
     
 private:
     void serializeByte( unsigned char data );