I’m using the standard Pimoroni UF2 image on the Pimoroni Pico Explorer product, and have got the RG5x5 and Matrix11x7 Breakouts working.
Loading the PicoGraphics and DISPLAY_PICO_EXPLORER modules, etc, works fine, along with the Breakout modules.
It goes wrong when I initiate a display, ie:
display = PicoGraphics(display=DISPLAY_PICO_EXPLORER)
The Python program works fine with the two Breakouts, without initiating the display, but things go wrong when the display is initiated. The program stops functioning and the COM port disconnects.
I don’t think this is a memory issue, as I’ve got 157k remaining before I initiate the display.
I’m assuming the display is SPI, so I don’t think it’s conflicting with the I2C Breakouts. The display works if I initiate this by itself.
Any ideas, or things to check?
============================
Here is the program:
#!/usr/bin/env python
import random
import time
import gc
from pimoroni_i2c import PimoroniI2C
from breakout_rgbmatrix5x5 import BreakoutRGBMatrix5x5
from breakout_matrix11x7 import BreakoutMatrix11x7
from picographics import PicoGraphics, DISPLAY_PICO_EXPLORER
from pimoroni import Button
from pimoroni import Analog, Buzzer
from pimoroni import PICO_EXPLORER_I2C_PINS
i2c = PimoroniI2C(**PICO_EXPLORER_I2C_PINS)
print(“Initialising Breakouts…”)
matrix11x7 = BreakoutMatrix11x7(i2c)
rgbmatrix5x5 = BreakoutRGBMatrix5x5(i2c)
print(“Initialising Display…”)
display = PicoGraphics(display=DISPLAY_PICO_EXPLORER)