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

Function boot_screen

src/main.cpp:231–242  ·  view source on GitHub ↗

** Function: boot_screen ** Draw boot screen *********************************************************************/

Source from the content-addressed store, hash-verified

229 ** Draw boot screen
230 *********************************************************************/
231void boot_screen() {
232 tft.setTextColor(bruceConfig.priColor, bruceConfig.bgColor);
233 tft.setTextSize(FM);
234 tft.drawPixel(0, 0, bruceConfig.bgColor);
235 tft.drawCentreString("Bruce", tftWidth / 2, 10, 1);
236 tft.setTextSize(FP);
237 tft.drawCentreString(BRUCE_VERSION, tftWidth / 2, 25, 1);
238 tft.setTextSize(FM);
239 tft.drawCentreString(
240 "PREDATORY FIRMWARE", tftWidth / 2, tftHeight + 2, 1
241 ); // will draw outside the screen on non touch devices
242}
243
244/*********************************************************************
245 ** Function: boot_screen_anim

Callers 1

boot_screen_animFunction · 0.85

Calls 4

setTextColorMethod · 0.45
setTextSizeMethod · 0.45
drawPixelMethod · 0.45
drawCentreStringMethod · 0.45

Tested by

no test coverage detected