Open sany3001 opened 10 months ago
I have solved this by using "GP" names:
# busio.SPI(clock: microcontroller.Pin, MOSI: microcontroller.Pin | None = None, MISO: microcontroller.Pin | None = None, half_duplex: bool = False)
spi = busio.SPI(clock=board.GP6, MOSI=board.GP7)
dc = digitalio.DigitalInOut(board.GP5) # data/command
cs = digitalio.DigitalInOut(board.GP4) # Chip select
reset = digitalio.DigitalInOut(board.GP9) # reset
...
backlight = digitalio.DigitalInOut(board.GP10) # backlight
When trying to run example (using Mu editor), I have got this error: AttributeError: 'module' object has no attribute 'SCL'