Skip to content

Commit 73ec992

Browse files
PGNetHunCarglglz
andauthored
Update bindings to use LVGL as MicroPython user module (#368)
* Update LVGL binding to use USER_C_MODULE approach (#365) * gen: update to MicroPython v1.23.x * lib: Allow using lv_utils in unix-macos port. Fix to allow using lv_utils with asyncio in unix-macos. * unix: Enable lv_binding_micropython as user C mod. * esp32: Enable lv_binding_micropython as user C mod. * feat(tests): Add tests for MicroPython test suite. * fix(init/deinit): Properly init/deinit lvgl module. Properly handle root pointers on lvgl init/deinit which fixes init error after a soft reset (see #343). * fix(gen_mpy.py): update lv_to_mp float conversion. Upate for lvgl 9.2.x see diff in lvgl @ 84b28ff * fix(esp32): lvgl component error in idf v5.2.x. * fix(lv_conf): enable LV_USE_PRIVATE_API for v9.2.0 * fix(build): enable LV_CONF_PATH option This allows to set custom `lv_conf.h` file per board in `mpconfigboard.(h,cmake)` * fix(tests): fix testdisplay, add hwdisplay example * feat(lvgl): update to lvgl v9.2.2 * fix(makefile): use CLFAGS_USERMOD * feat(lvgl): update to latest v9.3.0 * fix(tests): fix testdisplay and add calibrate tool * fix(build): fix LV_CONF_PATH option for CMake --------- Co-authored-by: Carlosgg <[email protected]> * Add fs_driver.py module to ESP32 manifest; fix whitespace in axp192.py * Fix unix github action and build issues * Comment unused 'import espidf' --------- Co-authored-by: Carlosgg <[email protected]>
1 parent 96d6d35 commit 73ec992

38 files changed

+3369
-868
lines changed

Diff for: .github/workflows/unix_port.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
git clone https://github.com/lvgl/lv_micropython.git .
2121
git checkout master
2222
- name: Initialize lv_bindings submodule
23-
run: git submodule update --init --recursive lib/lv_bindings
23+
run: git submodule update --init --recursive user_modules/lv_binding_micropython
2424
- name: Update Unix port submodules
2525
run: make -C ports/unix DEBUG=1 submodules
2626
- name: Checkout lv_bindings
27-
working-directory: ./lib/lv_bindings
27+
working-directory: ./user_modules/lv_binding_micropython
2828
run: |
2929
git fetch --force ${{ github.event.repository.html_url }} "+refs/heads/*:refs/remotes/origin/*"
3030
git fetch --force ${{ github.event.repository.html_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
@@ -37,4 +37,4 @@ jobs:
3737
- name: Run tests
3838
run: |
3939
export XDG_RUNTIME_DIR=/tmp
40-
lib/lv_bindings/tests/run.sh
40+
user_modules/lv_binding_micropython/tests/run.sh

Diff for: driver/generic/axp192.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
SDA = 21
1717
SCL = 22
18-
I2C_ADDRESS = 0x34
18+
I2C_ADDRESS = 0x34
1919

2020
# Power control registers
2121
POWER_STATUS = 0x00
@@ -190,7 +190,7 @@ def write(self, reg_addr, data):
190190
self.twiddle(DCDC13_LDO23_CONTROL, BIT_LDO3_ENABLE, BIT_LDO3_ENABLE)
191191
return
192192

193-
if type(data) != "bytes":
193+
if not isinstance(data, bytes):
194194
self.write_byte(reg_addr, data)
195195
else:
196196
self.i2c.writeto_mem(self.i2c_addr, reg_addr, data)

0 commit comments

Comments
 (0)