Skip to content

Commit 649b30c

Browse files
committed
Fix github workflows and build issues
1 parent 323e0b2 commit 649b30c

File tree

8 files changed

+20
-22
lines changed

8 files changed

+20
-22
lines changed

.github/workflows/js-port-v9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
working-directory: ports/javascript
5656
- name: Retrieve version
5757
run: |
58-
echo "::set-output name=VERSION_NAME::$(lib/lv_bindings/lvgl/scripts/find_version.sh)"
58+
echo "::set-output name=VERSION_NAME::$(user_modules/lv_binding_micropython/lvgl/scripts/find_version.sh)"
5959
id: version
6060
- name: Deploy
6161
uses: JamesIves/[email protected]

.github/workflows/rp2_port.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
with:
1818
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
1919
- name: Initialize lv_bindings submodule
20-
run: git submodule update --init --recursive lib/lv_bindings
20+
run: git submodule update --init --recursive user_modules/lv_binding_micropython
2121
- name: Initialize Micropython submodules
22-
run: make -C ports/rp2 BOARD=${{ matrix.board }} USER_C_MODULES=../../lib/lv_bindings/bindings.cmake submodules
22+
run: make -C ports/rp2 BOARD=${{ matrix.board }} USER_C_MODULES=../../user_modules/lv_binding_micropython/bindings.cmake submodules
2323
- name: Build mpy-cross
2424
run: make -j $(nproc) -C mpy-cross
2525
- name: Build ${{ matrix.board }}
26-
run: make -j $(nproc) -C ports/rp2 BOARD=${{ matrix.board }} USER_C_MODULES=../../lib/lv_bindings/bindings.cmake
26+
run: make -j $(nproc) -C ports/rp2 BOARD=${{ matrix.board }} USER_C_MODULES=../../user_modules/lv_binding_micropython/bindings.cmake
2727
- uses: actions/upload-artifact@v2
2828
if: ${{ env.GITHUB_EVENT_NAME }} == 'push'
2929
with:

.github/workflows/ruff.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10+
- name: Initialize lv_bindings submodule
11+
run: git submodule update --init --recursive user_modules/lv_binding_micropython
1012
# ruff version should be kept in sync with .pre-commit-config.yaml
1113
- run: pip install --user ruff==0.1.3
1214
- run: ruff check --output-format=github .

.github/workflows/unix_port.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
sudo apt-get update -y -qq
1818
sudo apt-get install libsdl2-dev parallel libfreetype-dev librlottie-dev libavformat-dev libavcodec-dev libswscale-dev libavutil-dev
1919
- name: Initialize lv_bindings submodule
20-
run: git submodule update --init --recursive lib/lv_bindings
20+
run: git submodule update --init --recursive user_modules/lv_binding_micropython
2121
- name: Update submodules
2222
run: make -C ports/unix DEBUG=1 submodules
2323
- name: Build mpy-cross
@@ -27,5 +27,5 @@ jobs:
2727
- name: Run tests
2828
run: |
2929
export XDG_RUNTIME_DIR=/tmp
30-
lib/lv_bindings/tests/run.sh
30+
user_modules/lv_binding_micropython/tests/run.sh
3131

README-LVGL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ make -C mpy-cross
8383
make -C ports/esp32 LV_CFLAGS="-DLV_COLOR_DEPTH=16" BOARD=GENERIC_SPIRAM deploy
8484
```
8585

86-
Explanation about the paramters:
86+
Explanation about the parameters:
8787
- `LV_CFLAGS` are used to override color depth, for ILI9341 compatibility.
8888
- `LV_COLOR_DEPTH=16` is needed if you plan to use the ILI9341 driver.
8989
- `BOARD` - I use WROVER board with SPIRAM. You can choose other boards from `ports/esp32/boards/` directory.
@@ -148,7 +148,7 @@ import lvgl as lv
148148
from ili9341 import ili9341
149149
disp = ili9341()
150150

151-
# Import XPT2046 driver and initalize it
151+
# Import XPT2046 driver and initialize it
152152

153153
from xpt2046 import xpt2046
154154
touch = xpt2046()
@@ -160,7 +160,7 @@ By default, both ILI9341 and XPT2046 are initialized on the same SPI bus with th
160160
- XPT2046: `cs=25, spihost=esp.HSPI_HOST, mhz=5, max_cmds=16, cal_x0 = 3783, cal_y0 = 3948, cal_x1 = 242, cal_y1 = 423, transpose = True, samples = 3`
161161

162162
You can change any of these parameters on ili9341/xpt2046 constructor.
163-
You can also initalize them on different SPI buses if you want, by providing miso/mosi/clk parameters. Set them to -1 to use existing (initialized) spihost bus.
163+
You can also initialize them on different SPI buses if you want, by providing miso/mosi/clk parameters. Set them to -1 to use existing (initialized) spihost bus.
164164

165165
Now you can create the GUI itself:
166166

ports/esp32/boards/M5STACK_CORE2/board.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@
66
"features": [
77
"BLE",
88
"WiFi",
9-
"SPIRAM",
10-
"LCD",
11-
"LED",
12-
"IMU",
13-
"RTC",
14-
"PMU",
9+
"External Flash",
10+
"External RAM",
1511
"SDCard",
16-
"Button",
17-
"Speaker",
18-
"Microphone",
19-
"Vibration Motor",
20-
"USB-C"
12+
"IMU",
13+
"USB-C",
14+
"Battery Charging",
15+
"Display",
16+
"Microphone"
2117
],
2218
"images": [
2319
"m5core2.jpg"

ports/esp32/boards/M5STACK_CORE2/modules/power.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def speaker(self, state):
7474

7575
# True turns on at 2V, False or 0 turns off. Alternatively, specify a voltage in range 1.8 - 3.3 volts.
7676
def vibrator(self, state):
77-
if type(state) == bool and state:
77+
if isinstance(state, bool) and state:
7878
self.axp.write(VIBRATOR, 2.0)
7979
else:
8080
self.axp.write(VIBRATOR, state)

0 commit comments

Comments
 (0)