LCD TFT for ssd0139 driver 8 bit mode

Dependents:   receiver TFT_CJS_ssd0139 poster8x8_ranger

Fork of LCDTFT by Ale C.-

/media/uploads/cstevens/20140902_103801.jpg

Files at this revision

API Documentation at this revision

Comitter:
cstevens
Date:
Tue Jun 09 09:15:28 2015 +0000
Parent:
3:f999653c1069
Child:
5:d910bf3b7bb0
Commit message:
modified for kl25zports

Changed in this revision

LCDTFT.cpp Show annotated file Show diff for this revision Revisions of this file
LCDTFT.h Show annotated file Show diff for this revision Revisions of this file
--- a/LCDTFT.cpp	Tue Sep 02 14:13:31 2014 +0000
+++ b/LCDTFT.cpp	Tue Jun 09 09:15:28 2015 +0000
@@ -18,7 +18,28 @@
 //// sin eliminar esta cabecera y  sin garant�a de ning�n tipo.        ////
 ////                                                                   ////
 ////                                                                   ////
-/////////////////////////////////////////////////////////////////////////// 
+///////////////////////////////////////////////////////////////////////////
+//
+//NB May 2015
+ // because this uses BusOut its not really very quick. would be better to use PortOut which 
+ // is generally a lot faster - typical exmaple max speed Busout=168kHz whereas PortOut=2470kHz - >10xfaster!
+ // will try to re-write this sometime for this kind of access but will be a pain due to the pinning
+ // of the paralell TFTLCD
+ /*
+ TFTLCD module pin------KL25Z matching pi
+ LCD_D0                 PTA13
+ LCD_D1                 PTD5
+ LCD_D2                 PTD4
+ LCD_D3                 PTA12
+ LCD_D4                 PTA$
+ LCD_D5                 PTA5
+ LCD_D6                 PTC8
+ LCD_D7                 PTC9
+ 
+ */
+ // so hard to get a single port to do this 8 bit interface.... but could use PTC 0 3 4 5 6 7 8 9 by masking out PTC1 and 2
+ // would need a separate pcb to hold the screen...
+ //can't be stripboard thanks to stupid arduino pins
 #include "LCDTFT.h"
 
 LCDTFT::LCDTFT(PinName PIN_RD,PinName PIN_WR,PinName PIN_RS,PinName PIN_CS,PinName PIN_RESET, BusOut *BUSLCD)
--- a/LCDTFT.h	Tue Sep 02 14:13:31 2014 +0000
+++ b/LCDTFT.h	Tue Jun 09 09:15:28 2015 +0000
@@ -46,27 +46,27 @@
 #include "mbed.h"
 #include "Fuentes.h"
 
-#define    ColorRed                0xf800
-#define    ColorGreen            0x400
-#define    ColorBlue            0x001f
-#define    ColorMarron            0x8208
-#define    ColorBlack            0x0
-#define    ColorWhite            0xffff
-#define    ColorMaroon            0x8000
-#define    ColorFuchsia            0xf81f
-#define    ColorVioleta            0x801f
-#define    ColorAzulMarino        0x14
-#define    ColorGray            0x8410
-#define    ColorOlive            0x8400
-#define    ColorNaranja            0xfc08
-#define    ColorYellow            0xffe0
-#define    ColorCian            0x87ff
-#define    ColorRosado            0xf810
-#define    ColorNavy            0x10
-#define    ColorPurple            0x8010
-#define    ColorTeal            0x410
-#define    ColorLime            0x7e0
-#define    ColorAqua            0x7ff
+#define    Red                0xf800
+#define    Green            0x400
+#define    Blue            0x001f
+#define    Marron            0x8208
+#define    Black            0x0
+#define    White            0xffff
+#define    Maroon            0x8000
+#define    Fuchsia            0xf81f
+#define    Violet            0x801f
+#define    SeaBlue       0x14
+#define    Gray            0x8410
+#define    Olive            0x8400
+#define    Orange            0xfc08
+#define    Yellow            0xffe0
+#define    Cyan            0x87ff
+#define    Pink            0xf810
+#define    Navy            0x10
+#define    Purple            0x8010
+#define    Teal            0x410
+#define    Lime            0x7e0
+#define    Aqua            0x7ff
 
 #define       LCD_X_MAX            240 // these swapped
 #define       LCD_Y_MAX            320