Xinyuan-LilyGO / T-keyboard

mini ble Keyboard for IOS/Android/Windows
MIT License
63 stars 27 forks source link

How to connect an external display? #14

Open copykatze opened 7 months ago

copykatze commented 7 months ago

I could not get an external display working on the "expansion interface". What kind of display can be used and how to wire it?

I am trying with a ili9341 ("2.2 TFT SPI 240*320") display, which I can get working without any problem on other esp/arduino boards, so the display is not broken.

My wiring is

Display <-> T-Keyboard

SDO (MISO) <-> LEDK <->LED SCK <-> SCL SDI (MOSI) <-> SDA D/C <-> D/C RESET <-> CS <-> GND <-> GND VCC <-> +3.3V

Running the graphicstest.ino example, the display just flickers a bit and seems to crash very early, as it does not even Serial.println("ILI9341 Test!"). One error I see on the serial monitor is:

[ 192][E][esp32-hal-spi.c:227] spiAttachMISO(): SPI Does not have default pins on ESP32C3!

Any help on debugging this (or telling me any stupid mistakes I made) would be highly appreciated, also any info that this has been successfully done by anyone :)