LCD TFT for ssd0139 driver 8 bit mode - using portout for max speed
Fork of LCDTFT_ssd0139 by
Revision 4:1c2f9e3b9b12, committed 2015-06-10
- Comitter:
- cstevens
- Date:
- Wed Jun 10 15:47:22 2015 +0000
- Parent:
- 3:f999653c1069
- Commit message:
- changed to make it use port instead of bus
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 |
diff -r f999653c1069 -r 1c2f9e3b9b12 LCDTFT.cpp --- a/LCDTFT.cpp Tue Sep 02 14:13:31 2014 +0000 +++ b/LCDTFT.cpp Wed Jun 10 15:47:22 2015 +0000 @@ -21,9 +21,9 @@ /////////////////////////////////////////////////////////////////////////// #include "LCDTFT.h" -LCDTFT::LCDTFT(PinName PIN_RD,PinName PIN_WR,PinName PIN_RS,PinName PIN_CS,PinName PIN_RESET, BusOut *BUSLCD) +LCDTFT::LCDTFT(PinName PIN_RD,PinName PIN_WR,PinName PIN_RS,PinName PIN_CS,PinName PIN_RESET, PortOut *PORTLCD) : LCD_PIN_RD(PIN_RD),LCD_PIN_WR(PIN_WR),LCD_PIN_RS(PIN_RS),LCD_PIN_CS(PIN_CS),LCD_PIN_RESET(PIN_RESET){ - LCD_PORT=BUSLCD; + LCD_PORT=PORTLCD; X=0; Y=0; X_min=0; @@ -211,7 +211,7 @@ vLCDTFTWriteCommandData(address,data); } } - wait_ms(1); + wait_ms(3); // changed from 1 /*
diff -r f999653c1069 -r 1c2f9e3b9b12 LCDTFT.h --- a/LCDTFT.h Tue Sep 02 14:13:31 2014 +0000 +++ b/LCDTFT.h Wed Jun 10 15:47:22 2015 +0000 @@ -1,4 +1,4 @@ -/* +/** @file LCDTFT.h @version: 1.0 @@ -8,7 +8,8 @@ *- Version Log --------------------------------------------------------------* * Fecha Autor Comentarios * *----------------------------------------------------------------------------* -* 30/01/11 Suky Original * +* 30/01/11 Suky Original * +* june / 2015 Chris Stevens Update *----------------------------------------------------------------------------*/ /////////////////////////////////////////////////////////////////////////// //// //// @@ -20,15 +21,15 @@ //// //// /////////////////////////////////////////////////////////////////////////// -/** Libreria para LCD TFT chip Himax HX8347-A +/** Library for SSD01399 controller using port rather than bus to speed up screen updates * * * @code * #include "mbed.h" * #include "LCDTFT.h" * - *BusOut MyBus(p13,p14,p15,p16,p17,p18,p19,p20,p30,p29,p28,p27,p26,p25,p24,p23); - *LCDTFT MyLCD(p5,p6,p7,p22,p21,&MyBus); + *PortOut MyPort(p13,p14,p15,p16,p17,p18,p19,p20,p30,p29,p28,p27,p26,p25,p24,p23); + *LCDTFT MyLCD(p5,p6,p7,p22,p21,&MyPort); * *int main(){ * MyLCD.vLCDTFTInit(); @@ -80,9 +81,9 @@ * @param RS * @param CS * @param RESET - * @param BusLCD (16-bits) + * @param PORTLCD (8-bits) */ - LCDTFT(PinName PIN_RD,PinName PIN_WR,PinName PIN_RS,PinName PIN_CS,PinName PIN_RESET, BusOut *BUSLCD); + LCDTFT(PinName PIN_RD,PinName PIN_WR,PinName PIN_RS,PinName PIN_CS,PinName PIN_RESET, PortOut *PORTLCD); /** Inicializa LCD * format =0 portrait and 1 for landscape */ @@ -143,7 +144,7 @@ private: DigitalOut LCD_PIN_RD,LCD_PIN_WR,LCD_PIN_RS,LCD_PIN_CS,LCD_PIN_RESET; - BusOut *LCD_PORT; + PortOut *LCD_PORT; unsigned short X,Y,X_min,X_max,_Alto,_Color,_Background; // Stream implementation functions virtual int _putc(int value);