Hello Erel,
to use a ST7735s 0.96" TFT Display with rAdafruit_ST7735 i must have add a special Initialization.
I'm sorry but i did not know how to do this.
My knowledge of creating libs is very limited.
Can you pls explain me how to do this ?
thx
Michael
this is line 385 to 422 in Adafruit_ST7735.ccp
to use a ST7735s 0.96" TFT Display with rAdafruit_ST7735 i must have add a special Initialization.
I'm sorry but i did not know how to do this.
My knowledge of creating libs is very limited.
Can you pls explain me how to do this ?
thx
Michael
Arduino:
// Initialization for ST7735R screens (green or red tabs)
void Adafruit_ST7735::initR(uint8_t options) {
commonInit(Rcmd1);
if(options == INITR_GREENTAB) {
commandList(Rcmd2green);
colstart = 2;
rowstart = 1;
} else if(options == INITR_144GREENTAB) {
_height = ST7735_TFTHEIGHT_128;
_width = ST7735_TFTWIDTH_128;
commandList(Rcmd2green144);
colstart = 2;
rowstart = 3;
} else if(options == INITR_MINI160x80) {
_height = ST7735_TFTHEIGHT_160;
_width = ST7735_TFTWIDTH_80;
commandList(Rcmd2green160x80);
colstart = 24;
rowstart = 0;
} else {
// colstart, rowstart left at default '0' values
commandList(Rcmd2red);
}
commandList(Rcmd3);
// if black, change MADCTL color filter
if ((options == INITR_BLACKTAB) || (options == INITR_MINI160x80)) {
writecommand(ST7735_MADCTL);
writedata(0xC0);
}
tabcolor = options;
setRotation(0);
}
this is line 385 to 422 in Adafruit_ST7735.ccp