Updates for removal of deprecated HAL (#37)
Update all apps to replace deprecated LVGL code and to use the new kernel APIs.
This commit is contained in:
committed by
GitHub
parent
25b966a340
commit
4f635d38e3
@@ -2,10 +2,9 @@
|
||||
|
||||
#include <Tactility/kernel/Kernel.h>
|
||||
|
||||
#include <tt_lvgl.h>
|
||||
#include <tt_lvgl_toolbar.h>
|
||||
|
||||
#include <tactility/lvgl_module.h>
|
||||
#include <lvgl/lvgl.h>
|
||||
|
||||
#include <esp_log.h>
|
||||
#include <driver/gpio.h>
|
||||
@@ -20,7 +19,7 @@ void Gpio::updatePinStates() {
|
||||
}
|
||||
|
||||
void Gpio::updatePinWidgets() {
|
||||
tt_lvgl_lock(tt::kernel::MAX_TICKS);
|
||||
lvgl_lock();
|
||||
for (int j = 0; j < pinStates.size(); ++j) {
|
||||
int level = pinStates[j];
|
||||
lv_obj_t* label = pinWidgets[j];
|
||||
@@ -35,7 +34,7 @@ void Gpio::updatePinWidgets() {
|
||||
}
|
||||
}
|
||||
}
|
||||
tt_lvgl_unlock();
|
||||
lvgl_unlock();
|
||||
}
|
||||
|
||||
lv_obj_t* Gpio::createGpioRowWrapper(lv_obj_t* parent) {
|
||||
|
||||
@@ -2,6 +2,6 @@ manifest.version=0.2
|
||||
target.sdk=0.8.0-dev
|
||||
target.platforms=esp32,esp32s3,esp32c6,esp32p4
|
||||
app.id=one.tactility.gpio
|
||||
app.version.name=0.7.0
|
||||
app.version.code=7
|
||||
app.version.name=0.8.0
|
||||
app.version.code=8
|
||||
app.name=GPIO
|
||||
|
||||
Reference in New Issue
Block a user