You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys,
I don't know if this is actually an issue, but during my current project, I found out that each time I use the tft.initR() command, it takes over one second around 1160 ms) to initialize the display, no matter on which hardware I try it (with hardware SPI).
So in my attached example, i first init the display size and after that I set the right color scheme, which means that my total boot time is almost 2.5 s. Is this normal/intended, is it an efficiency issue of the library, or am I using the bib wrong?
Thanks for your feedback!
Here is my setup:
Arduino board: Any Arduino board (Mega & Nano tested) as well as Wemos D1 mini
// pinout wemos D1 mini
#define TFT_BLK D0 // backlight control (high, low)
#define TFT_RST D3 // to "RES" in display
#define TFT_DC D4 // to "DC" in display
#define TFT_SCLK D5 // to "SCL" in display
#define TFT_MOSI D7 // to "SDA" in display
#define TFT_CS D8 // to "CS" in display
Hey guys,
I don't know if this is actually an issue, but during my current project, I found out that each time I use the tft.initR() command, it takes over one second around 1160 ms) to initialize the display, no matter on which hardware I try it (with hardware SPI).
So in my attached example, i first init the display size and after that I set the right color scheme, which means that my total boot time is almost 2.5 s. Is this normal/intended, is it an efficiency issue of the library, or am I using the bib wrong?
Thanks for your feedback!
Here is my setup:
`
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <SPI.h>
// pinout wemos D1 mini
#define TFT_BLK D0 // backlight control (high, low)
#define TFT_RST D3 // to "RES" in display
#define TFT_DC D4 // to "DC" in display
#define TFT_SCLK D5 // to "SCL" in display
#define TFT_MOSI D7 // to "SDA" in display
#define TFT_CS D8 // to "CS" in display
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup(void) {
long boot_time = millis();
pinMode(TFT_BLK, OUTPUT);
digitalWrite(TFT_BLK, LOW);
Serial.begin(115200);
Serial.println("\n\n----- Setup Start -----");
// init display size and color scheme
tft.initR(INITR_MINI160x80);
long t1 = millis();
Serial.println(" -> Time init 160x80: " + String(t1-boot_time) + " ms");
tft.initR(ST7735_MADCTL_BGR);
tft.setRotation(3);
tft.setTextWrap(false);
long t2 = millis();
Serial.println(" -> Time display: " + String(t2-t1) + " ms");
// do something
tft.fillScreen(ST77XX_RED);
digitalWrite(TFT_BLK, HIGH);
Serial.println("Total boot time: " + String(millis()-boot_time) + " ms");
Serial.println("\n\n----- Setup Finished -----\n");
}
void loop() {
}
`
The text was updated successfully, but these errors were encountered: