• sales

    +86-0755-88291180

Raspberry Pi Pico 1.54inch LCD Pinouts for screen and buttons

2024-07-29 06:27:32 Ask

I'm trying to run some code designed for the Picosytem which uses the same screen.  I've edited it in Thonny and attempted to run it but get no output, leading me to believe I have the wrong pinout and specifically this line:

class ST7789(framebuf.FrameBuffer):

   def __init__(self, width=240, height=240, id_=0, sck=10, mosi=11,

                dc=8, rst=12, cs=9, bl=7, baudrate=62500000):

is horribly wrong, but that's what I get after reading the example code.

Could we get a pin = screen pin/button diagram for this kit?

Raspberry Pi Pico 1.54inch LCD
3answers
SpotPearGuest38eb2
Answer time:
2024-08-02 00:10:17

If anyone else is looking for this info here's a timesaver:


self.__up = Pin(16, Pin.IN, Pin.PULL_UP)

       self.__down = Pin(14, Pin.IN, Pin.PULL_UP)

       self.__left = Pin(13, Pin.IN, Pin.PULL_UP)

       self.__right = Pin(17, Pin.IN, Pin.PULL_UP)

       self.__button_A = Pin(3, Pin.IN, Pin.PULL_UP)

       self.__button_B = Pin(6, Pin.IN, Pin.PULL_UP)

       ### self.__buzzer = PWM(Pin(15))  ###no buzzer

       super().__init__(width=240, height=240, id_=1, sck=10, mosi=11,

                        dc=8, rst=12, cs=9, bl=13, baudrate=62500000)

Like0

report

SpotPearGuest38eb2
Answer time:
2024-08-06 07:27:34

Slight edit bl=7

Like0

report

Price: $11.89
Part Number: Pico-1.54inch-LCD
Brand: Spotpear