LCD TFT for ssd0139 driver 8 bit mode - using portout for max speed
Dependents: TFT_CJS_ssd01399_portver_prettyfont TFT_CJS_ssd01399_portver_prettyfont snake_main_game ServerLatest
Fork of LCDTFT_ssd01399 by
Diff: LCDTFT.h
- Revision:
- 4:1c2f9e3b9b12
- Parent:
- 2:ebedda77b33b
- Child:
- 6:b5ecdc15f1a3
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);