LCD TFT for ssd0139 driver 8 bit mode
Dependents: receiver TFT_CJS_ssd0139 poster8x8_ranger
Fork of LCDTFT by
Revision 3:f999653c1069, committed 2014-09-02
- Comitter:
- cstevens
- Date:
- Tue Sep 02 14:13:31 2014 +0000
- Parent:
- 2:ebedda77b33b
- Child:
- 4:2feb189748f7
- Commit message:
- modified for ssd0139 driver and 240x320 tftlcd display;
Changed in this revision
LCDTFT.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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; }