Chinese module HY-1.8 SPI TFT lcd Display library.

Dependencies:   BurstSPI

Dependents:   KL25Z_DCF77_HY-1_8LCD

Fork of HY-1_8TFT_ST7735 by Paul Staron

Files at this revision

API Documentation at this revision

Comitter:
star297
Date:
Fri Apr 19 20:46:47 2013 +0000
Parent:
0:35a1964228b4
Child:
2:26149011665e
Commit message:
Changed LED brightness control + text formating.

Changed in this revision

ST7735_TFT.cpp Show annotated file Show diff for this revision Revisions of this file
ST7735_TFT.h Show annotated file Show diff for this revision Revisions of this file
--- a/ST7735_TFT.cpp	Mon Mar 25 22:46:23 2013 +0000
+++ b/ST7735_TFT.cpp	Fri Apr 19 20:46:47 2013 +0000
@@ -131,11 +131,11 @@
     _spi.frequency(16000000);         // 16Mhz SPI clock ... 15Mhz is maximum for display, but it seems to work
     _cs = 0;
     _reset = 1;                       // reset
-    wait_ms(500);
+    wait_ms(10);
     _reset = 0;                       // reset
-    wait_ms(500);
+    wait_ms(10);
     _reset = 1;                       // reset
-    wait_ms(500);
+    wait_ms(10);
     
     /* Start Initial Sequence ----------------------------------------------------*/
     wr_cmd(ST7735_SWRESET);                         /* SW Reset                       */
@@ -292,10 +292,6 @@
     window (0, 0, width(),  height());
 }
 
-//void ST7735_TFT::cls (void) {
-    //fillrect(-2,-2,128,160,(_background)); // This clears the complete screen to background colour
-    
-
 void ST7735_TFT::cls (void) {
     unsigned int i;
     WindowMax();
--- a/ST7735_TFT.h	Mon Mar 25 22:46:23 2013 +0000
+++ b/ST7735_TFT.h	Fri Apr 19 20:46:47 2013 +0000
@@ -70,7 +70,7 @@
 #define Blue            0x07E0      /*   0, 255,   0 */
 #define Cyan            0x07FF      /*   0, 255, 255 */
 #define Red             0xFF00      /* 255,   0,   0 */
-#define Yellow          0xF81F      /* 255,   0, 255 */
+#define Yellow          0xFF1F      /* 255,   0, 255 */
 #define Magenta         0xFFE0      /* 255, 255,   0 */
 #define White           0xFFFF      /* 255, 255, 255 */
 #define Orange          0xFD20      /* 255, 165,   0 */