LdB-ECM / PI_SPI_LCD

Raspberry Pi SPI to Graphical LCD screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SPI to ILI9341 Graphical LCD

Checking we could turn one of these screens upside down for a job because of tight enclosure the connector had to be on right making the screen mounting upside down.

This was the screen https://www.ebay.com/itm/2-2-inch-TFT-LCD-Display-SPI-ILI9341-240x320-for-51-AVR-STM32-ARM-PIC-Arduino-/163356024114

You can see normally the pin connector is on left, not the right like in my image below.

So I coded up a quick test on the Pi .. Production is a custom microcontroller which would have required manufacturing a board to test. So the code is hacked together with little care ... you have been warned.

All the SPI code is in here, start at spi_init

https://github.com/LdB-ECM/PI_SPI_LCD/blob/master/rpi-spi.c

About

Raspberry Pi SPI to Graphical LCD screen


Languages

Language:C 83.3%Language:Assembly 10.6%Language:C++ 5.7%Language:Makefile 0.4%