Add ability to set ST7735 tab color from sketch

Use line is form:
tft.init(1);
or:
tft.init(INITR_REDTAB);
// Enumerated the configurations in library are:
#define INITR_GREENTAB
0x0
#define INITR_REDTAB    0x1
#define INITR_BLACKTAB  0x2
#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 INITB
0xB
This commit is contained in:
Bodmer committed 2018-05-25 22:48:22 +01:00
1 parent af5a193bad
commit 4a52f5e685
6 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
// This example is part of the TFT_eSPI library:
// https://github.com/Bodmer/TFT_eSPI
// Created by Bodmer 23/14/18
// Created by Bodmer 23/04/18
#include "xbm.h" // Sketch tab header for xbm images