yet another ST7735 variant
This commit is contained in:
parent
15dcc77909
commit
ba65cd7e3e
|
|
@ -15,6 +15,7 @@
|
||||||
#define INITR_GREENTAB2 0x3 // Use if you get random pixels on two edges of green tab display
|
#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_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_GREENTAB128 0x5 // Use if you only get part of 128x128 screen in rotation 0 & 1
|
||||||
|
#define INITR_GREENTAB4 0x6
|
||||||
#define INITB 0xB
|
#define INITB 0xB
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -38,6 +39,9 @@
|
||||||
#define TAB_COLOUR INITR_GREENTAB128
|
#define TAB_COLOUR INITR_GREENTAB128
|
||||||
#define CGRAM_OFFSET
|
#define CGRAM_OFFSET
|
||||||
|
|
||||||
|
#elif defined (ST7735_GREENTAB4)
|
||||||
|
#define TAB_COLOUR INITR_GREENTAB4
|
||||||
|
|
||||||
#elif defined (ST6635_REDTAB)
|
#elif defined (ST6635_REDTAB)
|
||||||
#define TAB_COLOUR INITR_REDTAB
|
#define TAB_COLOUR INITR_REDTAB
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,12 @@
|
||||||
colstart = 0;
|
colstart = 0;
|
||||||
rowstart = 32;
|
rowstart = 32;
|
||||||
}
|
}
|
||||||
|
else if (tabcolor == INITR_GREENTAB4)
|
||||||
|
{
|
||||||
|
commandList(Rcmd2green);
|
||||||
|
colstart = 2;
|
||||||
|
rowstart = 3;
|
||||||
|
}
|
||||||
else if (tabcolor == INITR_REDTAB)
|
else if (tabcolor == INITR_REDTAB)
|
||||||
{
|
{
|
||||||
commandList(Rcmd2red);
|
commandList(Rcmd2red);
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@
|
||||||
//#define ST7735_GREENTAB
|
//#define ST7735_GREENTAB
|
||||||
//#define ST7735_GREENTAB2
|
//#define ST7735_GREENTAB2
|
||||||
//#define ST7735_GREENTAB3
|
//#define ST7735_GREENTAB3
|
||||||
|
//#define ST7735_GREENTAB4
|
||||||
//#define ST7735_GREENTAB128 // For 128 x 128 display
|
//#define ST7735_GREENTAB128 // For 128 x 128 display
|
||||||
//#define ST7735_REDTAB
|
//#define ST7735_REDTAB
|
||||||
//#define ST7735_BLACKTAB
|
//#define ST7735_BLACKTAB
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
//#define ST7735_GREENTAB
|
//#define ST7735_GREENTAB
|
||||||
//#define ST7735_GREENTAB2
|
//#define ST7735_GREENTAB2
|
||||||
//#define ST7735_GREENTAB3
|
//#define ST7735_GREENTAB3
|
||||||
|
//#define ST7735_GREENTAB4
|
||||||
#define ST7735_REDTAB
|
#define ST7735_REDTAB
|
||||||
//#define ST7735_BLACKTAB
|
//#define ST7735_BLACKTAB
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@
|
||||||
//#define ST7735_GREENTAB
|
//#define ST7735_GREENTAB
|
||||||
//#define ST7735_GREENTAB2
|
//#define ST7735_GREENTAB2
|
||||||
//#define ST7735_GREENTAB3
|
//#define ST7735_GREENTAB3
|
||||||
|
//#define ST7735_GREENTAB4
|
||||||
#define ST7735_REDTAB
|
#define ST7735_REDTAB
|
||||||
//#define ST7735_BLACKTAB
|
//#define ST7735_BLACKTAB
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue