Using 2.2″ LCD in Python

INSTRUCTIONS HERE

sudo modprobe fbtft_device custom name=fb_ili9341 (manually loads fbtft_device module)

lsmod – prints the contents of the /proc/modules file. It shows which loadable kernel modules are currently loaded.

dmesg –clear (clears ring Buffer)

dmesg | grep -i fbtft_device – (displays fbtft_device driver details where  grep -i – ignores case)

Module                    Device          Driver           Interface

Adafruit 2.2 new adafruit22a fb_ili9340 SPI 8-bit

MBRig Display

LCD Pi/GPIO
ORANGE 1 VCC 1
BLACK 2 GND 6
YELLOW 3 CS 24
GREEN 4 RESET 22/25
BLUE 5 D/C 18/24
PURPLE 6 MOSI 19
GREY 7 SCLK 23
WHITE 8 LED 12/18
BROWN 9 MISO 21

LCD-PIN   |  GPIO  |
+————+——–+
| SDO (MISO) | MISO   |
| LED        | GPIO18 |
| SCK        | SCLK   |
| SDI(MOSI)  | MOSI   |
| D/C        | GPIO24 |
| RESET      | GPIO25 |
| CS         | CE0    |
| GND        | GND    |
| VCC        | 3.3v   |

Miniature Colour Graphics TFT display (graph data python class!)