Filesystem improvements and more (#148)

- Rename `assets` and `config` partitions to `system` and `data`
- Change partition type from `spiffs` to `fat`, so we can have sub-directories
- Fix crash when doing WiFi scan: Increased system event task size to 3kB. 
- Free up IRAM on ESP32 (it was required for the Core2, but I also freed up the same amount for Yellow Board)
- Introduced `Paths` objects that can be retrieved by `AppContext` and `ServiceContext`. Apps and services now have their own relative paths. Assets were re-arranged into the correct paths.
- Rename simulator window title to "Tactility"
- Refactored statusbar widget so it persists icon paths properly (it kept a const char* reference, but didn't copy it, so it crashed when the related std::string was destroyed)
- Created `Partitions.h` to expose some useful variables
- Moved USB config in various `sdkconfig`  (it was part of the "default" section, but it shouldn't be)
- Updated domain name
This commit is contained in:
Ken Van Hoeylandt
2025-01-05 20:44:33 +01:00
committed by GitHub
parent 7187e5e49e
commit ff4287e2ce
107 changed files with 592 additions and 259 deletions
+1 -34
View File
@@ -1,12 +1,8 @@
#pragma once
#define TT_ASSET_FOLDER "A:/assets/"
#define TT_ASSET_FOLDER "A:/system/"
#define TT_ASSET(file) TT_ASSET_FOLDER file
// Splash
#define TT_ASSETS_BOOT_LOGO TT_ASSET("boot_logo.png")
#define TT_ASSETS_BOOT_LOGO_USB TT_ASSET("boot_logo_usb.png")
// UI
#define TT_ASSETS_UI_SPINNER TT_ASSET("spinner.png")
@@ -18,32 +14,3 @@
#define TT_ASSETS_APP_ICON_I2C_SETTINGS TT_ASSET("app_icon_i2c.png")
#define TT_ASSETS_APP_ICON_SETTINGS TT_ASSET("app_icon_settings.png")
#define TT_ASSETS_APP_ICON_SYSTEM_INFO TT_ASSET("app_icon_system_info.png")
// SD card status
#define TT_ASSETS_ICON_SDCARD TT_ASSET("sdcard.png")
#define TT_ASSETS_ICON_SDCARD_ALERT TT_ASSET("sdcard_alert.png")
// Wifi status
#define TT_ASSETS_ICON_WIFI_OFF_WHITE TT_ASSET("wifi_off_white.png")
#define TT_ASSETS_ICON_WIFI_SCAN_WHITE TT_ASSET("wifi_scan_white.png")
#define TT_ASSETS_ICON_WIFI_SIGNAL_WEAK_WHITE TT_ASSET("wifi_signal_weak_white.png")
#define TT_ASSETS_ICON_WIFI_SIGNAL_MEDIUM_WHITE TT_ASSET("wifi_signal_medium_white.png")
#define TT_ASSETS_ICON_WIFI_SIGNAL_STRONG_WHITE TT_ASSET("wifi_signal_strong_white.png")
// Black (Wifi Manage)
#define TT_ASSETS_ICON_WIFI_LOCK_BLACK TT_ASSET("wifi_lock_black.png")
#define TT_ASSETS_ICON_WIFI_SIGNAL_WEAK_BLACK TT_ASSET("wifi_signal_weak_black.png")
#define TT_ASSETS_ICON_WIFI_SIGNAL_MEDIUM_BLACK TT_ASSET("wifi_signal_medium_black.png")
#define TT_ASSETS_ICON_WIFI_SIGNAL_STRONG_BLACK TT_ASSET("wifi_signal_strong_black.png")
// Power status
#define TT_ASSETS_ICON_POWER_0 TT_ASSET("power_0.png")
#define TT_ASSETS_ICON_POWER_10 TT_ASSET("power_10.png")
#define TT_ASSETS_ICON_POWER_20 TT_ASSET("power_20.png")
#define TT_ASSETS_ICON_POWER_30 TT_ASSET("power_30.png")
#define TT_ASSETS_ICON_POWER_40 TT_ASSET("power_40.png")
#define TT_ASSETS_ICON_POWER_50 TT_ASSET("power_50.png")
#define TT_ASSETS_ICON_POWER_60 TT_ASSET("power_60.png")
#define TT_ASSETS_ICON_POWER_70 TT_ASSET("power_70.png")
#define TT_ASSETS_ICON_POWER_80 TT_ASSET("power_80.png")
#define TT_ASSETS_ICON_POWER_90 TT_ASSET("power_90.png")
#define TT_ASSETS_ICON_POWER_100 TT_ASSET("power_100.png")