Code to run the cheap 2.4" TFT made by mcufriend.com on the STM nucleo. No modifications required, this plugs into the arduino header.

Dependents:   ST7735_V2_STM32F407

Fork of TFTLCD_8bit by Thiha Electronics

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 */