Screen flashes with Arduino TFT_eSPI library

I’m writing some Arduino code for the PicoCalc. My code looks something like

  tft.init();
  tft.writecommand(TFT_DISPOFF);
  tft.fillScreen(TFT_BLACK);
  tft.invertDisplay(1);
  tft.writecommand(TFT_DISPON);

When I power it on, there’s a brief flash that looks like this:

I notice this doesn’t appear to happen with the PicoMite firmware, I haven’t tried any others. I assume this is due to the fill screen not clearing out the frame memory. Anyone have tips for clearing it before the screen comes up?

Do what I did and set backlight to 0 while init :zany_face:

fill the lcd vram before you send out the tune on command, then you will get ride of it.

1 Like