| 3921 | static bool welcomeShown = false; |
| 3922 | |
| 3923 | void 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 | |
| 3946 | void BleSuiteMenu() { |
| 3947 | showWelcomeScreen(); |
no test coverage detected