MCPcopy Create free account
hub / github.com/BruceDevices/firmware / begin_tft

Function begin_tft

src/main.cpp:213–225  ·  view source on GitHub ↗

** Function: begin_tft ** Config tft *********************************************************************/

Source from the content-addressed store, hash-verified

211 ** Config tft
212 *********************************************************************/
213void begin_tft() {
214 tft.setRotation(bruceConfigPins.rotation); // sometimes it misses the first command
215 tft.invertDisplay(bruceConfig.colorInverted);
216 tft.setRotation(bruceConfigPins.rotation);
217 tftWidth = tft.width();
218#ifdef HAS_TOUCH
219 tftHeight = tft.height() - 20;
220#else
221 tftHeight = tft.height();
222#endif
223 resetTftDisplay();
224 setBrightness(bruceConfig.bright, false);
225}
226
227/*********************************************************************
228 ** Function: boot_screen

Callers 1

setupFunction · 0.85

Calls 6

resetTftDisplayFunction · 0.85
setBrightnessFunction · 0.85
setRotationMethod · 0.45
invertDisplayMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected