My Pico 2’s and Display Pack V2.8’s arrived today. It’s been somewhat of a comedy of errors, except I’m not laughing.
I have a custom demo file I run on my Display Pack v2’s. It’s the balls_demo.py with some code added to control the RGB LED color based on the Button pressed. Without this extra code added the RGBLED lights up a dim white almost yellow. This file would not work at all on a Pico 2 with Display Pack v2.8. One issue is the pins used for the RGB LED are different on the V2.8 versus V2 display pack. No mention of this on the product page. No schematic or pinout diagram for the v2.8 either. It is stated in the new example file, though. Which I finally stumbled upon.
I edited that bit of code but it still didn’t fix things as the Button function / module is broken for the Pico 2. Took me a while to figure out what was working and what wasn’t.
Display Pack V2.8 with Pico 2
pico2_rp2350-v0.0.5-pimoroni-micropython.uf2
new balls_demo.py
Works Ok once edited for DISPLAY_PICO_DISPLAY_2
LED was off
button_test.py
LED RGB set to led = RGBLED(26, 27, 28)
Regardless of this it just kept flashing Button A pressed and LED flashed white.
Display Pack V2.8 with Pico
pico-v1.23.0-1-pimoroni-micropython.uf2
new balls_demo.py
Works Ok once edited for DISPLAY_PICO_DISPLAY_2
LED was on ( a dim half on)
Adding the following turned the RGB LED off
from pimoroni import RGBLED
led = RGBLED(26, 27, 28)
led.set_rgb(0, 0, 0)
button_test.py
Works Ok once edited for DISPLAY_PICO_DISPLAY_2
And LEDRGB set to led = RGBLED(26, 27, 28)
Display Pack V2 with Pico 2
pico2_rp2350-v0.0.5-pimoroni-micropython.uf2
new balls_demo.py
Works Ok once edited for DISPLAY_PICO_DISPLAY_2
LED was off
button_test.py
LED RGB set to led = RGBLED(6, 7, 8)
button test did not work, just kept flashing Button A pressed and LED flashed white.