ILI9163C display on WiPy 3.0 + EB v3.1
-
Hello, trying to get a ILI9163C to work on my WiPy 3.0 via an Expansion Board v3.1, but having no luck yet.
It's one of those Red PCB displays with '1.44' SPI 128 x 128 v1.1' written on the back.
I connected it as followed:
SPI Screen <-> WiPy 3.0 LED/D/C <-> Pin 5 SCK <-> Pin 10 SDA <-> Pin 9 A0/Data <-> Pin 11 Reset <-> Pin 6 CS <-> Pin 7 Gnd <-> Gnd VCC <-> 3.3v
Then proceeded to try it with the following library: https://github.com/PrestonHackspace/esp32-micropython/blob/master/sys/lib/ili9163.py
And using this script to test it:
from ili9163 import ILI9163_SPI from machine import Pin, SPI spi = SPI(0, mode=SPI.MASTER, baudrate=100000, polarity=0, phase=0) ili = ILI9163_SPI(128, 128, spi, Pin('P5'), Pin('P6'), Pin('P7')) ili.text('Hello World', 0, 0, 1)
The display seems to stay off until the
ili
object is constructed, after which the backlighting turns on, I assume that's just because Pin 5 starts powering it, but after that, nothing seems to make it show anything, so I'm a bit at a loss here, anyone any idea what might work?
-
did you find a solution ?
-
@NickBoots can you look this link : https://lemariva.com/blog/2016/12/wipy-2-0-weather-report-box
may be it could help you.
-
@NickBoots Yes, you must check which mode the device is in. There should a data sheet. A0 is definitely not required for SPI, It looks like the I2C address select.
But still the default pin assignments for I2C and SPI are different. I2C uses P9 and P10, SPI uses P10, P11 and P14.
-
Hmm, weird, the pinout on the board names these, at least, as it literally reads out on the bottom, the pins are labelled as follows:
LED SCK SDA A0 RESET CS GND VCC
Yet the text above it claims its an SPI display...
-
@NickBoots It looks like the Pin assignment for SPI is wrong. Since you use the default pins, you have to use P10 for CLK and P11 for MOSI, which is the data pin. The terms SDA and SCL are used for I2C interfaces.
-
Tried it out, but it sadly did not show anything still.
-
@NickBoots You have to call
ili.show()
to make visible what you have set up in framebuf with ili.text()
-
No one any idea? Still stuck here.