Merge pull request #858 from pimoroni/patch-bump-micropython-oct-2023

CI: Bump MicroPython to v1.21.0.
patch-remove-u-prefixes v1.21.0
Philip Howard 2023-10-06 17:47:02 +01:00 zatwierdzone przez GitHub
commit ee7f2758dd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
17 zmienionych plików z 28 dodań i 15 usunięć

Wyświetl plik

@ -7,7 +7,7 @@ on:
types: [created]
env:
MICROPYTHON_VERSION: 856e08b1931b88271816a2f60648f6ff332235b2
MICROPYTHON_VERSION: v1.21.0
WORKFLOW_VERSION: v1
jobs:
@ -69,9 +69,9 @@ jobs:
matrix:
include:
- name: pico
board: PICO
board: RPI_PICO
- name: picow
board: PICO_W
board: RPI_PICO_W
- name: tiny2040
board: PIMORONI_TINY2040
- name: picolipo_4mb
@ -84,11 +84,11 @@ jobs:
board: PICO_W_ENVIRO
patch: true
- name: galactic_unicorn
board: PICO_W
board: RPI_PICO_W
- name: cosmic_unicorn
board: PICO_W
board: RPI_PICO_W
- name: stellar_unicorn
board: PICO_W
board: RPI_PICO_W
- name: inky_frame
board: PICO_W_INKY
patch: true

Wyświetl plik

@ -1,5 +1,6 @@
# cmake file for Pimoroni Enviro with Raspberry Pi Pico W
set(MICROPY_BOARD PICO_W)
set(MICROPY_BOARD RPI_PICO_W)
set(PICO_BOARD "pico_w")
# The C malloc is needed by cyw43-driver Bluetooth and Pimoroni Pico modules
set(MICROPY_C_HEAP_SIZE 4096)

Wyświetl plik

@ -5,6 +5,9 @@ require("bundle-networking")
require("urllib.urequest")
require("umqtt.simple")
# SD Card
require("sdcard")
# Bluetooth
require("aioble")

Wyświetl plik

@ -1,5 +1,6 @@
# cmake file for Pimoroni Inky with Raspberry Pi Pico W
set(MICROPY_BOARD PICO_W)
set(MICROPY_BOARD RPI_PICO_W)
set(PICO_BOARD "pico_w")
# The C malloc is needed by cyw43-driver Bluetooth and Pimoroni Pico modules
set(MICROPY_C_HEAP_SIZE 4096)

Wyświetl plik

@ -1,4 +1,5 @@
# cmake file for Raspberry Pi Pico
set(PICO_BOARD "pico")
# Board specific version of the frozen manifest
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)

Wyświetl plik

@ -2,6 +2,9 @@ include("$(PORT_DIR)/boards/manifest.py")
require("bundle-networking")
# SD Card
require("sdcard")
# Bluetooth
require("aioble")

Wyświetl plik

@ -1,4 +1,5 @@
# cmake file for Raspberry Pi Pico W
set(PICO_BOARD "pico_w")
# The C malloc is needed by cyw43-driver Bluetooth and Pimoroni Pico modules
set(MICROPY_C_HEAP_SIZE 4096)

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -27,10 +27,6 @@ The wireless examples need `network_manager.py` and `WIFI_CONFIG.py` from the `c
You'll also need to install the `micropython-urllib.urequest` library using Thonny's 'Tools' > 'Manage Packages' or `common/lib/urllib` which contains a compiled `.mpy` version that uses less RAM. You should place this directory in `lib` on your Pico W.
Finally for examples loading images, you'll need `sdcard.mpy` from `common/lib`. You should place this file in `lib` on your Pico W.
- [/micropython/examples/common](../common)
### Button Test
[button_test.py](button_test.py)

Wyświetl plik

@ -24,11 +24,18 @@ Copy the images to your Pico W using Thonny.
### image_gallery_sd.py / image_gallery_sd_random.py
Pop an SD card into your computer to copy the images across. (Alternatively, you can transfer them using Thonny, but you will have to mount the SD card using the REPL first).
Pop an SD card into your computer to copy the images across.
The SD card examples require `sdcard.mpy` from `common/lib` - copy this file into the `lib` directory on your Pico W.
Alternatively, you can transfer them using Thonny, but you will have to mount the SD card using the REPL first:
- [/micropython/examples/common](../../common)
```python
import os
import sdcard
from machine import Pin
sd_spi = SPI(0, sck=Pin(18, Pin.OUT), mosi=Pin(19, Pin.OUT), miso=Pin(16, Pin.OUT))
sd = sdcard.SDCard(sd_spi, Pin(22))
os.mount(sd, "/sd")
```
## Image Credits