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

Function showWelcomeScreen

src/modules/ble/BLE_Suite.cpp:3923–3944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3921static bool welcomeShown = false;
3922
3923void showWelcomeScreen() {
3924 if (welcomeShown) return;
3925
3926 tft.fillScreen(TFT_GRAY);
3927 tft.setTextSize(3);
3928 tft.setTextColor(TFT_PURPLE, TFT_GRAY);
3929 tft.setCursor((tftWidth - tft.textWidth("BRUCE")) / 2, 40);
3930 tft.print("BRUCE");
3931
3932 tft.setTextColor(TFT_BLUE, TFT_GRAY);
3933 tft.setTextSize(2);
3934 tft.setCursor((tftWidth - tft.textWidth("BLE SUITE")) / 2, 90);
3935 tft.print("BLE SUITE");
3936
3937 tft.setTextColor(TFT_GREEN, TFT_GRAY);
3938 tft.setTextSize(1);
3939 tft.setCursor((tftWidth - tft.textWidth("v2.0b")) / 2, 130);
3940 tft.print("v2.0b");
3941 delay(1500);
3942
3943 welcomeShown = true;
3944}
3945
3946void BleSuiteMenu() {
3947 showWelcomeScreen();

Callers 1

BleSuiteMenuFunction · 0.85

Calls 6

fillScreenMethod · 0.45
setTextSizeMethod · 0.45
setTextColorMethod · 0.45
setCursorMethod · 0.45
textWidthMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected