LCD TFT for ssd0139 driver 8 bit mode - using portout for max speed
Fork of LCDTFT_ssd0139 by
Diff: LCDTFT.cpp
- Revision:
- 3:f999653c1069
- Parent:
- 2:ebedda77b33b
- Child:
- 4:1c2f9e3b9b12
--- a/LCDTFT.cpp Tue Sep 02 09:02:18 2014 +0000 +++ b/LCDTFT.cpp Tue Sep 02 14:13:31 2014 +0000 @@ -281,9 +281,11 @@ } void LCDTFT::vLCDTFTText(unsigned short x,unsigned short y,const char *PtrText,const char (*Fuente)[5],unsigned char Alto,unsigned short Color,unsigned short BackColor){ - unsigned short i, j, k, l, m, temp; + unsigned short i, j, k, l, m, temp,lmax; char DataPunto[5]; const char *Ptr; + if(orient==0) lmax=LCD_X_MAX; + else lmax=LCD_Y_MAX; while(*PtrText!='\0'){ Ptr=(Fuente+*PtrText-' ')[0]; @@ -296,7 +298,7 @@ x = 0; break; default: - if(x+5*Alto >= LCD_X_MAX){ + if(x+5*Alto >= lmax){ x = 0; y += 7*Alto + 1; }