| drawBitmap(x, y, 128, 34, SFTools_Logo, ST7735_ORANGE); | drawBitmap(x, y, 128, 34, SFTools_Logo, ST7735_ORANGE); | ||||
| } | } | ||||
| void Display::showInitialization(void) { | |||||
| void Display::showInitialization(String version) { | |||||
| redrawFrame(); | redrawFrame(); | ||||
| drawXCenteredText("EchoLoT", &titillium_web_regular16pt7b, 1, ST7735_CYAN, 36); | drawXCenteredText("EchoLoT", &titillium_web_regular16pt7b, 1, ST7735_CYAN, 36); | ||||
| drawXCenteredText("designed by", &FreeSans9pt7b, 1, ST7735_WHITE, 64); | drawXCenteredText("designed by", &FreeSans9pt7b, 1, ST7735_WHITE, 64); | ||||
| delay(2000); | delay(2000); | ||||
| redrawFrame(); | 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) { | void Display::display(void) { |
| void clearDisplay(void); | void clearDisplay(void); | ||||
| void setRefreshScreen(); | void setRefreshScreen(); | ||||
| void showBrand(int16_t x, int16_t y); | void showBrand(int16_t x, int16_t y); | ||||
| void showInitialization(void); | |||||
| void showInitialization(String version); | |||||
| void showFrame(Status status); | void showFrame(Status status); | ||||
| void drawXCenteredText(String txt, const GFXfont *font, uint8_t s, uint16_t c, int16_t y); | 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); | void drawRightAlignedText(String txt, const GFXfont *font, uint8_t s, uint16_t c, int16_t xOffset, int16_t y); |
| #include "EchoLotSetup.h" | #include "EchoLotSetup.h" | ||||
| #include "ThreePositionSwitch.h" | #include "ThreePositionSwitch.h" | ||||
| #define VERSION "0.9.0" | |||||
| static const int trigPin = PB11; | static const int trigPin = PB11; | ||||
| static const int echoPin = PB10; | static const int echoPin = PB10; | ||||
| //*** Initialization routine. Reads the eeprom first and sets the (potentially new) configured values. | //*** Initialization routine. Reads the eeprom first and sets the (potentially new) configured values. | ||||
| //***************************************************************************************************** | //***************************************************************************************************** | ||||
| void Initialize() { | void Initialize() { | ||||
| display.showInitialization(); | |||||
| display.showInitialization(VERSION); | |||||
| echoLotSetup.initialize(); | echoLotSetup.initialize(); | ||||
| echoLotSetup.drawInitScreen(); | echoLotSetup.drawInitScreen(); | ||||
| delay(2000); | delay(2000); |
| //This is a automatic generated file | //This is a automatic generated file | ||||
| //Please do not modify this file | //Please do not modify this file | ||||
| //If you touch this file your change will be overwritten during the next build | //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" | ||||
| #include "Arduino.h" | #include "Arduino.h" |