| @@ -122,7 +122,7 @@ void Display::showBrand(int16_t x, int16_t y) { | |||
| drawBitmap(x, y, 128, 34, SFTools_Logo, ST7735_ORANGE); | |||
| } | |||
| void Display::showInitialization(void) { | |||
| void Display::showInitialization(String version) { | |||
| redrawFrame(); | |||
| drawXCenteredText("EchoLoT", &titillium_web_regular16pt7b, 1, ST7735_CYAN, 36); | |||
| drawXCenteredText("designed by", &FreeSans9pt7b, 1, ST7735_WHITE, 64); | |||
| @@ -130,10 +130,11 @@ void Display::showInitialization(void) { | |||
| delay(2000); | |||
| redrawFrame(); | |||
| drawText("powered by", &FreeSans9pt7b, 1, ST7735_CYAN, 35, 30); | |||
| tft.fillRoundRect(46, 42, 68, 68, 7, ST7735_STM32BLUE); | |||
| drawBitmap(48, 44, 64, 64, epd_bitmap_stm32duino_logo_icon, ST7735_WHITE); | |||
| delay(2000); | |||
| drawText("powered by", &FreeSans9pt7b, 1, ST7735_CYAN, 35, 20); | |||
| tft.fillRoundRect(46, 32, 68, 68, 7, ST7735_STM32BLUE); | |||
| drawBitmap(48, 34, 64, 64, epd_bitmap_stm32duino_logo_icon, ST7735_WHITE); | |||
| drawXCenteredText("Ver: " + version, &titillium_web_regular8pt7b, 1, ST7735_CYAN, 118); | |||
| delay(5000); | |||
| } | |||
| void Display::display(void) { | |||
| @@ -54,7 +54,7 @@ class Display { | |||
| void clearDisplay(void); | |||
| void setRefreshScreen(); | |||
| void showBrand(int16_t x, int16_t y); | |||
| void showInitialization(void); | |||
| void showInitialization(String version); | |||
| void showFrame(Status status); | |||
| void drawXCenteredText(String txt, const GFXfont *font, uint8_t s, uint16_t c, int16_t y); | |||
| void drawRightAlignedText(String txt, const GFXfont *font, uint8_t s, uint16_t c, int16_t xOffset, int16_t y); | |||
| @@ -5,6 +5,8 @@ | |||
| #include "EchoLotSetup.h" | |||
| #include "ThreePositionSwitch.h" | |||
| #define VERSION "0.9.0" | |||
| static const int trigPin = PB11; | |||
| static const int echoPin = PB10; | |||
| @@ -34,7 +36,7 @@ EchoLotSetup echoLotSetup(display); | |||
| //*** Initialization routine. Reads the eeprom first and sets the (potentially new) configured values. | |||
| //***************************************************************************************************** | |||
| void Initialize() { | |||
| display.showInitialization(); | |||
| display.showInitialization(VERSION); | |||
| echoLotSetup.initialize(); | |||
| echoLotSetup.drawInitScreen(); | |||
| delay(2000); | |||
| @@ -2,7 +2,7 @@ | |||
| //This is a automatic generated file | |||
| //Please do not modify this file | |||
| //If you touch this file your change will be overwritten during the next build | |||
| //This file has been generated on 2026-01-27 21:30:42 | |||
| //This file has been generated on 2026-01-27 22:15:47 | |||
| #include "Arduino.h" | |||
| #include "Arduino.h" | |||