Hardware Setup

The following table and figure describe how to connect LCD to the 40-pin header:

Table 1. Connect the 2.4inch LCD to the 40-Pin Header
2.4inch LCD Module 40-Pin GPIO Header
Pin Number Pin Name
VCC 17 3.3V Power
GND 39 GND
DIN 19 GPIO52 (SPI MOSI)
CLK 23 GPIO48 (SPI SCLK)
CS 24 GPIO49 (SPI CE0)
DC 40 GPIO44
RST 11 GPIO42
BL 18 GPIO51
Figure 1. Connect the 2.4inch LCD to the 40-Pin Header