https://www.amazon.com/gp/product/B094J ... =UTF8&th=1
Then I found this and downloaded the code example for micro python from Wiki page
https://www.waveshare.com/pico-restouch-lcd-2.8.htm
https://www.waveshare.com/wiki/Pico-ResTouch-LCD-2.8
I run in from Thonny and I got this results
https://photos.app.goo.gl/eAabnju1szZXc3HN8
Is this really what this screen can do ?
1. Do you see the dotted vertical lines
2. text with lines
3. Blue box not filled just dashed.
Do you have any experience with this display ? I don't think this dashed graphic has something todo with the resolution, is it crappy st7789 library ?
This is the code in the example:
Code: Select all
from machine import Pin, SPI
import gc
from st7789 import *
SSD = ST7789
pdc = Pin(8, Pin.OUT, value=0) # Arbitrary pins
pcs = Pin(9, Pin.OUT, value=1)
prst = Pin(15, Pin.OUT, value=1)
pbl = Pin(13, Pin.OUT, value=1)
gc.collect() # Precaution before instantiating framebuf
# Conservative low baudrate. Can go to 62.5MHz. Depending on wiring.
spi = SPI(1, 30_000_000, sck=Pin(10), mosi=Pin(11), miso=Pin(12))
ssd = SSD(spi, dc=pdc, cs=pcs, rst=prst)
ssd.rect(70, 0, 50, 50, 0xFFFF)
ssd.fill_rect(0, 0, 50, 50, 0xFFFF)
ssd.text('Waveshare Test!', 0, 80, 0xFFFF)
ssd.hline(0, 90, 240, 0xFFFF)
ssd.vline(60, 90, 70, 0xFFFF)
ssd.show()