my dev. board: Raspberry Pi Pico 2 W

my dev. board: Raspberry Pi Pico 2 W




Currently (24-11-30), there are no official firmware in micropython.org. You can download the preview version here. scroll down to download MicroPython UF2 for Pico 2 W (mp_firmware_unofficial_latest.uf2).

As first test, I try to blink the onboard LED by following https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico, but failed.

Later, I found the reason: Refer to Raspberry Pi Pico 2 W Datasheet  and schematic, Pico 2 W (should be same as in Pico W) onboard LED is connected to CYW43439KUBG chip, not RP2350, so have to specially handled like this:

led = machine.Pin("LED", machine.Pin.OUT)
blink.py, MicroPython code to blink the onboard LED
from machine import Pin, Timer
led = machine.Pin("LED", machine.Pin.OUT)
print("led:", led)

timer = Timer()

def blink(timer):
    led.toggle()

timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)

while True:
    pass

CircuitPython Exercises:
Raspberry Pi Pico 2/CircuitPython 9 display on 1.54" 240x240 ST7789 SPI IPS
Raspberry Pi Pico 2/CircuitPython 9 display bmp on ST7789 LCD using adafruit_imageload/adafruit_slideshow
displayio.OnDiskBitmap on Pico 2 W/CircuitPython 9
Set CircuitPython file system Writable, and write/read text file on CircuitPython
Pico 2 W/CircuitPython download bmp via WiFi, and display using OnDiskBitmap

Comments

Popular posts from this blog

480x320 TFT/ILI9488 SPI wih EP32C3 (arduino-esp32) using Arduino_GFX Library

my dev.tools - FNIRSI 2C23T 3-in-1 Dual Channel Oscilloscope/Multimeter/Signal Generator