A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add version string to boot screen

+28 -19
+22 -16
platformio.ini
··· 1 - ; PlatformIO Project Configuration File 2 - ; 3 - ; Build options: build flags, source filter 4 - ; Upload options: custom upload port, speed and extra flags 5 - ; Library options: dependencies, extra library storages 6 - ; Advanced options: extra scripting 7 - ; 8 - ; Please visit documentation for the other options and examples 9 - ; https://docs.platformio.org/page/projectconf.html 1 + [platformio] 2 + crosspoint_version = 0.2.0 3 + default_envs = default 10 4 11 - [env:esp32-c3-devkitm-1] 5 + [base] 12 6 platform = espressif32 13 7 board = esp32-c3-devkitm-1 14 8 framework = arduino ··· 18 12 board_upload.flash_size = 16MB 19 13 board_upload.maximum_size = 16777216 20 14 board_upload.offset_address = 0x10000 21 - 22 - ; Board configuration 23 - board_build.flash_mode = dio 24 - board_build.flash_size = 16MB 25 - board_build.partitions = partitions.csv 26 15 27 16 build_flags = 28 17 -DARDUINO_USB_MODE=1 29 18 -DARDUINO_USB_CDC_ON_BOOT=1 30 19 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1 31 - # https://libexpat.github.io/doc/api/latest/#XML_GE 20 + # https://libexpat.github.io/doc/api/latest/#XML_GE 32 21 -DXML_GE=0 33 22 -DXML_CONTEXT_BYTES=1024 34 23 24 + ; Board configuration 25 + board_build.flash_mode = dio 26 + board_build.flash_size = 16MB 27 + board_build.partitions = partitions.csv 28 + 35 29 ; Libraries 36 30 lib_deps = 37 31 https://github.com/leethomason/tinyxml2.git#11.0.0 38 32 BatteryMonitor=symlink://open-x4-sdk/libs/hardware/BatteryMonitor 39 33 InputManager=symlink://open-x4-sdk/libs/hardware/InputManager 40 34 EInkDisplay=symlink://open-x4-sdk/libs/display/EInkDisplay 35 + 36 + [env:default] 37 + extends = base 38 + build_flags = 39 + ${base.build_flags} 40 + -DCROSSPOINT_VERSION=\"${platformio.crosspoint_version}-dev\" 41 + 42 + [env:gh_release] 43 + extends = base 44 + build_flags = 45 + ${base.build_flags} 46 + -DCROSSPOINT_VERSION=\"${platformio.crosspoint_version}\"
+5 -3
src/main.cpp
··· 172 172 } 173 173 174 174 void setup() { 175 - inputManager.begin(); 176 - verifyWakeupLongPress(); 177 - 178 175 // Begin serial only if USB connected 179 176 pinMode(UART0_RXD, INPUT); 180 177 if (digitalRead(UART0_RXD) == HIGH) { 181 178 Serial.begin(115200); 182 179 } 180 + 181 + Serial.printf("[%lu] [ ] Starting CrossPoint version " CROSSPOINT_VERSION "\n", millis()); 182 + 183 + inputManager.begin(); 184 + verifyWakeupLongPress(); 183 185 184 186 // Initialize pins 185 187 pinMode(BAT_GPIO0, INPUT);
+1
src/screens/BootLogoScreen.cpp
··· 13 13 renderer.drawImage(CrossLarge, (pageWidth - 128) / 2, (pageHeight - 128) / 2, 128, 128); 14 14 renderer.drawCenteredText(UI_FONT_ID, pageHeight / 2 + 70, "CrossPoint", true, BOLD); 15 15 renderer.drawCenteredText(SMALL_FONT_ID, pageHeight / 2 + 95, "BOOTING"); 16 + renderer.drawCenteredText(SMALL_FONT_ID, pageHeight - 30, CROSSPOINT_VERSION); 16 17 renderer.displayBuffer(); 17 18 }