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:
3:64a5b67d5b51
Parent:
2:81ed304b7e9b
Child:
4:3ac4239f6c9c
--- a/lcd_base.h	Sun Dec 02 00:12:43 2012 +0000
+++ b/lcd_base.h	Sun Dec 02 01:44:23 2012 +0000
@@ -27,26 +27,12 @@
  * 51 Franklin St, 5th Floor, Boston, MA 02110-1301, USA
  *
  *********************************************************************/
-#ifndef LCD_BASE_H
-#define LCD_BASE_H
+#ifndef TFTLCD_BASE_H
+#define TFTLCD_BASE_H
 
 #include "mbed.h"
 #include "fonts.h"
 
-/** \def HIGH
- *  \brief User-friendly high pin level designation.
- */
-#define HIGH        1
-/** \def LOW
- *  \brief User-friendly low pin level designation.
- */
-#define LOW         0
-
-/** \def swap( type, a, b )
- *  \brief Convenience macro to swap two values.
- */
-#define swap( type, a, b )      { type tmp = ( a ); ( a ) = ( b ); ( b ) = tmp; }
-
 /** \def RGB(r,g,b)
  *  \brief Creates a RGB-565 color value.
  *
@@ -437,4 +423,4 @@
     font_metrics_t _font;
 };
 
-#endif /* LCD_BASE_H */
+#endif /* TFTLCD_BASE_H */