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 chris stevens

Files at this revision

API Documentation at this revision

Comitter:
cstevens
Date:
Tue Jun 07 11:47:40 2016 +0000
Parent:
5:290d9f5dd5e8
Commit message:
driver for tft screen using ssd0139 interface and faster driving via port config.

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	Fri Jun 12 09:05:40 2015 +0000
+++ b/LCDTFT.cpp	Tue Jun 07 11:47:40 2016 +0000
@@ -382,7 +382,7 @@
 void LCDTFT::vLCDTFTRectangle(unsigned short x1,unsigned short y1,unsigned short x2,unsigned short y2,bool Filled,unsigned short Color){
    
     if(Filled){
-        int Lenght=(int)(x2-x1);  
+        int Lenght=(int)(y2-y1);  
        
             
         for(int i=0;i<Lenght;i++){
--- a/LCDTFT.h	Fri Jun 12 09:05:40 2015 +0000
+++ b/LCDTFT.h	Tue Jun 07 11:47:40 2016 +0000
@@ -55,14 +55,14 @@
 #define    ColorWhite            0xffff
 #define    ColorMaroon            0x8000
 #define    ColorFuchsia            0xf81f
-#define    ColorVioleta            0x801f
-#define    ColorAzulMarino        0x14
+#define    ColorViolet            0x801f
+#define    ColorSeaBlue        0x14
 #define    ColorGray            0x8410
 #define    ColorOlive            0x8400
-#define    ColorNaranja            0xfc08
+#define    ColorOrange            0xfc08
 #define    ColorYellow            0xffe0
-#define    ColorCian            0x87ff
-#define    ColorRosado            0xf810
+#define    ColorCyan            0x87ff
+#define    ColorPink            0xf810
 #define    ColorNavy            0x10
 #define    ColorPurple            0x8010
 #define    ColorTeal            0x410