kopia lustrzana https://github.com/pimoroni/pimoroni-pico
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
commit
ee7f2758dd
|
@ -7,7 +7,7 @@ on:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
MICROPYTHON_VERSION: 856e08b1931b88271816a2f60648f6ff332235b2
|
MICROPYTHON_VERSION: v1.21.0
|
||||||
WORKFLOW_VERSION: v1
|
WORKFLOW_VERSION: v1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -69,9 +69,9 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: pico
|
- name: pico
|
||||||
board: PICO
|
board: RPI_PICO
|
||||||
- name: picow
|
- name: picow
|
||||||
board: PICO_W
|
board: RPI_PICO_W
|
||||||
- name: tiny2040
|
- name: tiny2040
|
||||||
board: PIMORONI_TINY2040
|
board: PIMORONI_TINY2040
|
||||||
- name: picolipo_4mb
|
- name: picolipo_4mb
|
||||||
|
@ -84,11 +84,11 @@ jobs:
|
||||||
board: PICO_W_ENVIRO
|
board: PICO_W_ENVIRO
|
||||||
patch: true
|
patch: true
|
||||||
- name: galactic_unicorn
|
- name: galactic_unicorn
|
||||||
board: PICO_W
|
board: RPI_PICO_W
|
||||||
- name: cosmic_unicorn
|
- name: cosmic_unicorn
|
||||||
board: PICO_W
|
board: RPI_PICO_W
|
||||||
- name: stellar_unicorn
|
- name: stellar_unicorn
|
||||||
board: PICO_W
|
board: RPI_PICO_W
|
||||||
- name: inky_frame
|
- name: inky_frame
|
||||||
board: PICO_W_INKY
|
board: PICO_W_INKY
|
||||||
patch: true
|
patch: true
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# cmake file for Pimoroni Enviro with Raspberry Pi Pico W
|
# 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
|
# The C malloc is needed by cyw43-driver Bluetooth and Pimoroni Pico modules
|
||||||
set(MICROPY_C_HEAP_SIZE 4096)
|
set(MICROPY_C_HEAP_SIZE 4096)
|
||||||
|
|
|
@ -5,6 +5,9 @@ require("bundle-networking")
|
||||||
require("urllib.urequest")
|
require("urllib.urequest")
|
||||||
require("umqtt.simple")
|
require("umqtt.simple")
|
||||||
|
|
||||||
|
# SD Card
|
||||||
|
require("sdcard")
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
require("aioble")
|
require("aioble")
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# cmake file for Pimoroni Inky with Raspberry Pi Pico W
|
# 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
|
# The C malloc is needed by cyw43-driver Bluetooth and Pimoroni Pico modules
|
||||||
set(MICROPY_C_HEAP_SIZE 4096)
|
set(MICROPY_C_HEAP_SIZE 4096)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# cmake file for Raspberry Pi Pico
|
# cmake file for Raspberry Pi Pico
|
||||||
|
set(PICO_BOARD "pico")
|
||||||
|
|
||||||
# Board specific version of the frozen manifest
|
# Board specific version of the frozen manifest
|
||||||
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
|
set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
|
|
@ -2,6 +2,9 @@ include("$(PORT_DIR)/boards/manifest.py")
|
||||||
|
|
||||||
require("bundle-networking")
|
require("bundle-networking")
|
||||||
|
|
||||||
|
# SD Card
|
||||||
|
require("sdcard")
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
require("aioble")
|
require("aioble")
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# cmake file for Raspberry Pi Pico W
|
# 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
|
# The C malloc is needed by cyw43-driver Bluetooth and Pimoroni Pico modules
|
||||||
set(MICROPY_C_HEAP_SIZE 4096)
|
set(MICROPY_C_HEAP_SIZE 4096)
|
Plik binarny nie jest wyświetlany.
|
@ -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.
|
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
|
||||||
[button_test.py](button_test.py)
|
[button_test.py](button_test.py)
|
||||||
|
|
||||||
|
|
|
@ -24,11 +24,18 @@ Copy the images to your Pico W using Thonny.
|
||||||
|
|
||||||
### image_gallery_sd.py / image_gallery_sd_random.py
|
### 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
|
## Image Credits
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue