yet another ST7735 variant

This commit is contained in:
Mark 2017-09-10 07:24:41 -04:00
parent 15dcc77909
commit ba65cd7e3e
5 changed files with 13 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#define INITR_GREENTAB2 0x3 // Use if you get random pixels on two edges of green tab display
#define INITR_GREENTAB3 0x4 // Use if you get random pixels on edge(s) of 128x128 screen
#define INITR_GREENTAB128 0x5 // Use if you only get part of 128x128 screen in rotation 0 & 1
#define INITR_GREENTAB4 0x6
#define INITB 0xB
@ -37,6 +38,9 @@
#elif defined (ST7735_GREENTAB128)
#define TAB_COLOUR INITR_GREENTAB128
#define CGRAM_OFFSET
#elif defined (ST7735_GREENTAB4)
#define TAB_COLOUR INITR_GREENTAB4
#elif defined (ST6635_REDTAB)
#define TAB_COLOUR INITR_REDTAB

View File

@ -175,6 +175,12 @@
colstart = 0;
rowstart = 32;
}
else if (tabcolor == INITR_GREENTAB4)
{
commandList(Rcmd2green);
colstart = 2;
rowstart = 3;
}
else if (tabcolor == INITR_REDTAB)
{
commandList(Rcmd2red);

View File

@ -36,6 +36,7 @@
//#define ST7735_GREENTAB
//#define ST7735_GREENTAB2
//#define ST7735_GREENTAB3
//#define ST7735_GREENTAB4
//#define ST7735_GREENTAB128 // For 128 x 128 display
//#define ST7735_REDTAB
//#define ST7735_BLACKTAB

View File

@ -33,6 +33,7 @@
//#define ST7735_GREENTAB
//#define ST7735_GREENTAB2
//#define ST7735_GREENTAB3
//#define ST7735_GREENTAB4
#define ST7735_REDTAB
//#define ST7735_BLACKTAB

View File

@ -37,6 +37,7 @@
//#define ST7735_GREENTAB
//#define ST7735_GREENTAB2
//#define ST7735_GREENTAB3
//#define ST7735_GREENTAB4
#define ST7735_REDTAB
//#define ST7735_BLACKTAB