Skip to content

Commit afb153e

Browse files
committed
Merge branch 'main' into tile_palette_mapper_color_converter
2 parents 9b89ee8 + a0b482c commit afb153e

File tree

129 files changed

+2567
-1069
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+2567
-1069
lines changed

.github/workflows/build-board-custom.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,18 @@ jobs:
7373
uses: actions/setup-python@v5
7474
with:
7575
python-version: 3.x
76+
- name: Board to port
77+
id: board-to-port
78+
run: |
79+
PORT=$(python tools/board_to_port.py "${{ inputs.board }}")
80+
echo "port=$PORT" >> $GITHUB_OUTPUT
81+
shell: bash
7682
- name: Set up port
7783
id: set-up-port
7884
uses: ./.github/actions/deps/ports
7985
with:
8086
board: ${{ inputs.board }}
87+
port: ${{ steps.board-to-port.outputs.port }}
8188
- name: Set up submodules
8289
id: set-up-submodules
8390
uses: ./.github/actions/deps/submodules
@@ -88,7 +95,7 @@ jobs:
8895
uses: ./.github/actions/deps/external
8996
with:
9097
action: cache
91-
port: ${{ steps.set-up-port.outputs.port }}
98+
port: ${{ steps.board-to-port.outputs.port }}
9299
- name: Set up mpy-cross
93100
if: steps.set-up-submodules.outputs.frozen == 'True'
94101
uses: ./.github/actions/mpy_cross
@@ -115,9 +122,9 @@ jobs:
115122
FLAGS: ${{ inputs.flags }}
116123
DEBUG: ${{ inputs.debug && '1' || '0' }}
117124
run: make -j4 $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
118-
working-directory: ports/${{ steps.set-up-port.outputs.port }}
125+
working-directory: ports/${{ steps.board-to-port.outputs.port }}
119126
- name: Upload artifact
120127
uses: actions/upload-artifact@v4
121128
with:
122129
name: ${{ inputs.board }}-${{ inputs.language }}-${{ inputs.version }}${{ inputs.flags != '' && '-custom' || '' }}${{ inputs.debug && '-debug' || '' }}
123-
path: ports/${{ steps.set-up-port.outputs.port }}/build-${{ inputs.board }}/firmware.*
130+
path: ports/${{ steps.board-to-port.outputs.port }}/build-${{ inputs.board }}/firmware.*

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@
345345
url = https://github.com/adafruit/Adafruit_CircuitPython_Wave.git
346346
[submodule "ports/raspberrypi/lib/Pico-PIO-USB"]
347347
path = ports/raspberrypi/lib/Pico-PIO-USB
348-
url = https://github.com/tannewt/Pico-PIO-USB.git
349-
branch = better_timeouts
348+
url = https://github.com/adafruit/Pico-PIO-USB.git
349+
branch = main
350350
[submodule "lib/micropython-lib"]
351351
path = lib/micropython-lib
352352
url = https://github.com/micropython/micropython-lib.git

docs/environment.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,13 @@ Selects the desired resolution and color depth.
158158

159159
Supported resolutions are:
160160
* 640x480 with color depth 1, 2, 4 or 8 bits per pixel
161-
* 320x240 with color depth 8 or 16 bits per pixel
161+
* 320x240 with pixel doubling and color depth 8, 16, or 32 bits per pixel
162+
* 360x200 with pixel doubling and color depth 8, 16, or 32 bits per pixel
162163

163-
The default value, if unspecified, is 320x240 with 16 bits per pixel.
164+
See :py:class:`picodvi.Framebuffer` for more details.
165+
166+
The default value, if unspecified, is 360x200 16 bits per pixel if the connected
167+
display is 1920x1080 or a multiple of it, otherwise 320x240 with 16 bits per pixel.
164168

165169
If height is unspecified, it is set from the width. For example, a width of 640
166170
implies a height of 480.

docs/shared_bindings_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def support_matrix(arg):
362362
if use_branded_name:
363363
board_name = branded_name
364364
else:
365-
board_name = board_directory.name
365+
board_name = board_id
366366

367367
if add_chips:
368368
with open(board_directory / "mpconfigboard.h") as get_name:

extmod/vfs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ typedef struct _mp_vfs_proto_t {
7171
typedef struct _mp_vfs_blockdev_t {
7272
uint16_t flags;
7373
size_t block_size;
74+
#if CIRCUITPY_SAVES_PARTITION_SIZE > 0
75+
size_t offset;
76+
int size;
77+
#endif
7478
mp_obj_t readblocks[5];
7579
mp_obj_t writeblocks[5];
7680
// new protocol uses just ioctl, old uses sync (optional) and count

0 commit comments

Comments
 (0)