Merge develop into main (#337)
- Implement `UiScale` in `hal::Configuration`: small screens with no touch can now opt for a more optimized experience (e.g. Cardputer, Waveshare 1.47, Waveshare 1.3", etc.) - Fix for Cardputer UART configuration and added I2C configuration - Fix for software keyboard bug in Gui - Removed deprecated fields from `hal::Configuration` - Updated the simulator devices to use the new HAL config - add `bool tt::hal::hasDevice(Device::Type)` - Cleanup of `AppList` app code - Improve `Gpio` app for small screen devices - Added various ESP32 GCC wrappers to wrap LVGL functions (with manipulations for small screen devices) - Moved `Launcher` assets to `assets/` subfolder - Optimized `Toolbar` for small screen devices - Stop showing `system/` partition in `FileBrowser` because it's read-only and not very useful. Created `config::SHOW_SYSTEM_PARTITION` to override this behaviour. - Hide apps when their required hardware isn't available (I2C, UART, PowerDevice) - Fix for `CYD-2432S032C` DPI setting
This commit is contained in:
committed by
GitHub
parent
ce8ac61d42
commit
53b711584f
@@ -98,7 +98,6 @@ namespace app {
|
||||
|
||||
// List of all apps excluding Boot app (as Boot app calls this function indirectly)
|
||||
static void registerSystemApps() {
|
||||
addApp(app::addgps::manifest);
|
||||
addApp(app::alertdialog::manifest);
|
||||
addApp(app::applist::manifest);
|
||||
addApp(app::calculator::manifest);
|
||||
@@ -106,26 +105,25 @@ static void registerSystemApps() {
|
||||
addApp(app::filebrowser::manifest);
|
||||
addApp(app::fileselection::manifest);
|
||||
addApp(app::gpio::manifest);
|
||||
addApp(app::gpssettings::manifest);
|
||||
addApp(app::i2cscanner::manifest);
|
||||
addApp(app::i2csettings::manifest);
|
||||
addApp(app::imageviewer::manifest);
|
||||
addApp(app::inputdialog::manifest);
|
||||
addApp(app::launcher::manifest);
|
||||
addApp(app::localesettings::manifest);
|
||||
addApp(app::log::manifest);
|
||||
addApp(app::notes::manifest);
|
||||
addApp(app::serialconsole::manifest);
|
||||
addApp(app::settings::manifest);
|
||||
addApp(app::selectiondialog::manifest);
|
||||
addApp(app::systeminfo::manifest);
|
||||
addApp(app::timedatesettings::manifest);
|
||||
addApp(app::timezone::manifest);
|
||||
addApp(app::usbsettings::manifest);
|
||||
addApp(app::wifiapsettings::manifest);
|
||||
addApp(app::wificonnect::manifest);
|
||||
addApp(app::wifimanage::manifest);
|
||||
|
||||
#if defined(CONFIG_TINYUSB_MSC_ENABLED) && CONFIG_TINYUSB_MSC_ENABLED
|
||||
addApp(app::usbsettings::manifest);
|
||||
#endif
|
||||
|
||||
#if TT_FEATURE_SCREENSHOT_ENABLED
|
||||
addApp(app::screenshot::manifest);
|
||||
#endif
|
||||
@@ -136,7 +134,18 @@ static void registerSystemApps() {
|
||||
addApp(app::development::manifest);
|
||||
#endif
|
||||
|
||||
if (hal::findDevices(hal::Device::Type::Power).size() > 0) {
|
||||
if (!hal::getConfiguration()->i2c.empty()) {
|
||||
addApp(app::i2cscanner::manifest);
|
||||
addApp(app::i2csettings::manifest);
|
||||
}
|
||||
|
||||
if (!hal::getConfiguration()->uart.empty()) {
|
||||
addApp(app::addgps::manifest);
|
||||
addApp(app::gpssettings::manifest);
|
||||
addApp(app::serialconsole::manifest);
|
||||
}
|
||||
|
||||
if (hal::hasDevice(hal::Device::Type::Power)) {
|
||||
addApp(app::power::manifest);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user