rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

1.44" inch Serial 128x128 SPI Full Color ST7735S tft #39

Closed thijstriemstra closed 7 years ago

thijstriemstra commented 7 years ago

I have this 1.44" inch Serial 128x128 SPI Full Color TFT LCD Display with following specs:

Pins:

but the docs at https://luma-lcd.readthedocs.io/en/latest/install.html#st7735 mention 16 pins.

Did I get an incompatible device because I'm confused how to hook it up.

rm-hull commented 7 years ago

Ha! I got one as well, but haven't had the chance to connect it up yet. It should be compatible. The pinouts detailed in the docs are for the device I already had which has a built in microSD card reader.

Looking at the listing it should be straightforward-ish to map to the correct RPi pins.

There will need to be a small fix to the st7735 device to accept width/height params (I took the decision, wrongly as it turns out, to hardcode to 160x128)

thijstriemstra commented 7 years ago

One of my ssd13-something screens started smoking the other day so I'll wait for a confirmation ;)

rm-hull commented 7 years ago

yikes!

rm-hull commented 7 years ago

@thijstriemstra

Pinouts:

3V3 --> 3V3 GND --> GND SDI --> BCM 10 SCL --> BCM 11 CS --> BCM 8 RST --> BCM 24 RS --> BCM 23 BLK --> BCM 18

thijstriemstra commented 7 years ago

awesome, thanks

rm-hull commented 7 years ago

@thijstriemstra there should be a config/st7735_128x128.conf in the examples repo which is suitable.