Skip to content

Update bindings to use LVGL as MicroPython user module #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/unix_port.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
git clone https://github.com/lvgl/lv_micropython.git .
git checkout master
- name: Initialize lv_bindings submodule
run: git submodule update --init --recursive lib/lv_bindings
run: git submodule update --init --recursive user_modules/lv_binding_micropython
- name: Update Unix port submodules
run: make -C ports/unix DEBUG=1 submodules
- name: Checkout lv_bindings
working-directory: ./lib/lv_bindings
working-directory: ./user_modules/lv_binding_micropython
run: |
git fetch --force ${{ github.event.repository.html_url }} "+refs/heads/*:refs/remotes/origin/*"
git fetch --force ${{ github.event.repository.html_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
Expand All @@ -37,4 +37,4 @@ jobs:
- name: Run tests
run: |
export XDG_RUNTIME_DIR=/tmp
lib/lv_bindings/tests/run.sh
user_modules/lv_binding_micropython/tests/run.sh
4 changes: 2 additions & 2 deletions driver/generic/axp192.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

SDA = 21
SCL = 22
I2C_ADDRESS = 0x34
I2C_ADDRESS = 0x34

# Power control registers
POWER_STATUS = 0x00
Expand Down Expand Up @@ -190,7 +190,7 @@ def write(self, reg_addr, data):
self.twiddle(DCDC13_LDO23_CONTROL, BIT_LDO3_ENABLE, BIT_LDO3_ENABLE)
return

if type(data) != "bytes":
if not isinstance(data, bytes):
self.write_byte(reg_addr, data)
else:
self.i2c.writeto_mem(self.i2c_addr, reg_addr, data)
Expand Down
Loading
Loading