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.

Dependents:   UTFT_SSD1289

Fork of TFTLCD by Todor Todorov

Revision:
19:eb27effb8c07
Parent:
12:d0978272a340
Child:
20:4bdca8d8dadc
--- a/lcd_base.h	Thu Dec 13 02:41:56 2012 +0000
+++ b/lcd_base.h	Thu Dec 13 03:37:22 2012 +0000
@@ -69,16 +69,29 @@
  *  \brief Shorthand for RGB( 0, 0, 255 ).
  */
 #define COLOR_BLUE              RGB( 0x00, 0x00, 0xFF )
+/** \def COLOR_CYAN
+ *  \brief Shorthand for RGB( 0, 255, 255 )
+ */
+#define COLOR_CYAN              RGB( 0x00, 0xFF, 0xFF )
+/** \def COLOR_MAGENTA
+ *  \brief Shorthand for RGB( 255, 0, 255 )
+ */
+#define COLOR_MAGENTA           RGB( 0xFF, 0x00, 0xFF )
+/** \def COLOR_YELLOW
+ *  \brief Shorthand for RGB( 255, 255, 0 )
+ */
+#define COLOR_YELLOW            RGB( 0xFF, 0xFF, 0x00 )
+
 
 /** \enum Orientation_enum
  *  \brief Display orientation.
  */
 enum Orientation_enum
 {
-    PORTRAIT = 0, /**< Display height is bigger than its width. View at 12 o'clock. */ 
-    LANDSCAPE = 1, /**< Display width is bigger than its height. View at 9 o'clock. */
-    PORTRAIT_REV = 2, /**< Display height is bigger than its width. View at 6 o'clock. */
-    LANDSCAPE_REV = 3, /**< Display width is bigger than its height. View at 3 o'clock. */
+    PORTRAIT = 0, /**< Top row of the screen is at 12 o'clock. */ 
+    LANDSCAPE = 1, /**< Top row of the screen is at 9 o'clock. */
+    PORTRAIT_REV = 2, /**< Top row of the screen is at 6 o'clock. */
+    LANDSCAPE_REV = 3, /**< Top row of the screen is at 3 o'clock. */
 };
 /** \typedef orientation_t
  *  \brief Convenience shortcut for display orientation.