Forked from TFTLCD_8bit by Thiha Electronics

Dependents:   GR-PEACH_TFTLCD_8bit

Fork of TFTLCD_8bit by Thiha Electronics

Revision:
12:d0978272a340
Parent:
10:69571adcfad5
Child:
20:4bdca8d8dadc
--- a/st7735.h	Tue Dec 11 16:50:09 2012 +0000
+++ b/st7735.h	Tue Dec 11 18:11:14 2012 +0000
@@ -97,8 +97,9 @@
      * or produce garbage.
      *
      * \param oritentation The display orientation, landscape is default.
+     * \param colors The correct color depth to use for the pixel data.
      */
-    virtual void Initialize( orientation_t orientation = LANDSCAPE );
+    virtual void Initialize( orientation_t orientation = LANDSCAPE, colordepth_t colors = RGB16 );
     
     /** Puts the display to sleep.
      *
@@ -174,7 +175,7 @@
      * order to account for different color depth used by the controller.
      * \param color The color of the pixel.
      */
-    virtual void SetPixelColor( unsigned short color );
+    virtual void SetPixelColor( unsigned int color );
     
 private:
     void serializeByte( unsigned char data );