pimoroni / pimoroni-pico

Libraries and examples to support Pimoroni Pico add-ons in C++ and MicroPython.
https://shop.pimoroni.com/collections/pico
MIT License
1.28k stars 490 forks source link

1.3" SPI Colour Round LCD (240x240) Breakout does not work on Rpi pico #124

Closed metanav closed 3 years ago

metanav commented 3 years ago

I have compiled and flashed the breakout_roundlcd demo from the examples (C++) to Rpi Pico successfully. I have followed the pin map from the drivers/st7789/st7789.hpp. After flashing and resetting the display does not show anything. When I press reset button the display shows some colorful still graphics momentarily. I believe connection is OK since it displays something on keep pressing RESET button (Captain Resetti).

Gadgetoid commented 3 years ago

Have confirmed the example (still) works, though selecting the right pins is complicated.

Have you had any luck since? Are you wiring directly, or using a combination of our boards?

metanav commented 3 years ago

With the same pin mappings as stated above it works by adding display.set_backlight(225); after display.init(); I guess PWM on BL gets activated only after set_backlight() call. Or, do not use BL at all.

Gadgetoid commented 3 years ago

Haha! I wish I'd seen this 35 minutes ago because I just had this revelation after much head scratching and updated #128

I have added set_backlight to the example and into the library as a default value to avoid this surprise in future!

Thank you.