Skip to content

Commit 25c3f19

Browse files
Merge develop into main (#494)
* Updated runtime gating to enable LilyGO T-Deck specific apps and services * New device compatibility and model-detection APIs * Added a buffer-overflow error code and message * Updated GitHub Actions checkout to v4 * Adjusted an LVGL-related library version * Device config now emits a T-Deck workaround flag when applicable * Removed internal developer comments and minor cleanups
1 parent 93efadd commit 25c3f19

File tree

18 files changed

+67
-26
lines changed

18 files changed

+67
-26
lines changed

.github/actions/build-simulator/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
using: "composite"
1616
steps:
1717
- name: "Checkout repo"
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919
with:
2020
submodules: recursive
2121
- name: Install Linux Dependencies for SDL

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: "Checkout repo"
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
with:
1515
submodules: recursive
1616
- name: "Configure Project"
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
steps:
3333
- name: "Checkout repo"
34-
uses: actions/checkout@v2
34+
uses: actions/checkout@v4
3535
with:
3636
submodules: recursive
3737
- name: "Install Python Dependencies"

Devices/elecrow-crowpanel-advance-28/Source/devices/Display.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <St7789Display.h>
66

77
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
8-
// Note for future changes: Reset pin is 48 and interrupt pin is 47
98
auto configuration = std::make_unique<Ft5x06Touch::Configuration>(
109
I2C_NUM_0,
1110
LCD_HORIZONTAL_RESOLUTION,

Devices/elecrow-crowpanel-advance-35/Source/devices/Display.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <Ili9488Display.h>
66

77
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
8-
// Note for future changes: Reset pin is 48 and interrupt pin is 47
98
auto configuration = std::make_unique<Gt911Touch::Configuration>(
109
I2C_NUM_0,
1110
320,

Devices/lilygo-tdeck/Source/devices/Display.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
#include <St7789Display.h>
66

77
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
8-
// Note for future changes: Reset pin is 48 and interrupt pin is 47
98
auto configuration = std::make_unique<Gt911Touch::Configuration>(
109
I2C_NUM_0,
1110
240,
1211
320,
1312
true,
1413
true,
15-
false
14+
false,
15+
GPIO_NUM_NC,
16+
GPIO_NUM_16
1617
);
1718

1819
return std::make_shared<Gt911Touch>(std::move(configuration));

Devices/m5stack-cores3/Source/devices/Display.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ static void setBacklightDuty(uint8_t backlightDuty) {
1717
}
1818

1919
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
20-
// Note for future changes: Reset pin is 48 and interrupt pin is 47
2120
auto configuration = std::make_unique<Ft5x06Touch::Configuration>(
2221
I2C_NUM_0,
2322
LCD_HORIZONTAL_RESOLUTION,

Devices/waveshare-s3-touch-lcd-147/Source/devices/Display.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ constexpr auto LCD_VERTICAL_RESOLUTION = 320;
1212
void setBacklightDuty(uint8_t level);
1313

1414
static std::shared_ptr<tt::hal::touch::TouchDevice> createTouch() {
15-
// Note for future changes: Reset pin is 48 and interrupt pin is 47
1615
auto configuration = std::make_unique<Axs5106Touch::Configuration>(
1716
I2C_NUM_0,
1817
172,

Firmware/Kconfig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ menu "Tactility App"
66
config TT_DEVICE_ID
77
string "Device Identifier"
88
default ""
9-
config TT_SPLASH_DURATION
9+
# T-Deck device-related code was directly referenced from Tactility in a pull request.
10+
# This breaks other devices because the code does not exist in those implementations.
11+
# Until we move it out into a proper driver, we have to have pre-processor definition for that.
12+
config TT_TDECK_WORKAROUND
13+
bool "Temporary work-around until we fix the T-Deck keyboard and trackball settings"
14+
default n
15+
config TT_SPLASH_DURATION
1016
int "Splash Duration (ms)"
1117
default 1000
1218
range 0 3000

Firmware/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dependencies:
5454
version: "1.7.6~1"
5555
rules:
5656
- if: "target == esp32s3"
57-
espressif/esp_lvgl_port: "2.7.0"
57+
espressif/esp_lvgl_port: "2.5.0"
5858
lvgl/lvgl: "9.3.0"
5959
FastEPD:
6060
git: https://github.com/bitbank2/FastEPD.git

Tactility/Source/Tactility.cpp

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <tactility/lvgl_module.h>
3333

3434
#ifdef ESP_PLATFORM
35+
#include "tactility/drivers/root.h"
3536
#include <Tactility/InitEsp.h>
3637
#endif
3738

@@ -61,8 +62,6 @@ namespace service {
6162
namespace statusbar { extern const ServiceManifest manifest; }
6263
#ifdef ESP_PLATFORM
6364
namespace displayidle { extern const ServiceManifest manifest; }
64-
#endif
65-
#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK)
6665
namespace keyboardidle { extern const ServiceManifest manifest; }
6766
#endif
6867
#if TT_FEATURE_SCREENSHOT_ENABLED
@@ -112,11 +111,10 @@ namespace app {
112111
#ifdef ESP_PLATFORM
113112
namespace crashdiagnostics { extern const AppManifest manifest; }
114113
namespace webserversettings { extern const AppManifest manifest; }
114+
#if CONFIG_TT_TDECK_WORKAROUND == 1
115+
namespace keyboardsettings { extern const AppManifest manifest; } // T-Deck only for now
116+
namespace trackballsettings { extern const AppManifest manifest; } // T-Deck only for now
115117
#endif
116-
117-
#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK)
118-
namespace keyboardsettings { extern const AppManifest manifest; }
119-
namespace trackballsettings { extern const AppManifest manifest; }
120118
#endif
121119

122120
#if TT_FEATURE_SCREENSHOT_ENABLED
@@ -162,11 +160,10 @@ static void registerInternalApps() {
162160
addAppManifest(app::webserversettings::manifest);
163161
addAppManifest(app::crashdiagnostics::manifest);
164162
addAppManifest(app::development::manifest);
163+
#if defined(CONFIG_TT_TDECK_WORKAROUND)
164+
addAppManifest(app::keyboardsettings::manifest);
165+
addAppManifest(app::trackballsettings::manifest);
165166
#endif
166-
167-
#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK)
168-
addAppManifest(app::keyboardsettings::manifest);
169-
addAppManifest(app::trackballsettings::manifest);
170167
#endif
171168

172169
#if defined(CONFIG_TINYUSB_MSC_ENABLED) && CONFIG_TINYUSB_MSC_ENABLED
@@ -251,13 +248,13 @@ static void registerAndStartSecondaryServices() {
251248
addService(service::loader::manifest);
252249
addService(service::gui::manifest);
253250
addService(service::statusbar::manifest);
254-
#ifdef ESP_PLATFORM
251+
addService(service::memorychecker::manifest);
252+
#if defined(ESP_PLATFORM)
255253
addService(service::displayidle::manifest);
256-
#endif
257-
#if defined(ESP_PLATFORM) && defined(CONFIG_TT_DEVICE_LILYGO_TDECK)
254+
#if defined(CONFIG_TT_TDECK_WORKAROUND)
258255
addService(service::keyboardidle::manifest);
259256
#endif
260-
addService(service::memorychecker::manifest);
257+
#endif
261258
#if TT_FEATURE_SCREENSHOT_ENABLED
262259
addService(service::screenshot::manifest);
263260
#endif

0 commit comments

Comments
 (0)