Skip to main content

3.5-inch Display (Resistive Touch)

  • Video Tutorial


The official WalnutPi 3.5-inch display (resistive touch) uses the SPI bus with a maximum speed of up to 80MHz. The backlight is controllable. Using the official driver, you can achieve desktop display and other UI functions.

Note

WalnutPi does not currently support other Raspberry Pi 3.5-inch displays on the market.

3.5_lcd1

The back side routes GPIO through SMT flat cables, meaning you can still connect I2C, serial communication devices, and other modules even with the display attached.

3.5_lcd.png

Specifications
Resolution480x320(Pixel)
Interface4-wire SPI (Max Speed: 80MHz)
Display ICst7796
Touch PanelXPT2046 (Resistive Touch)
Operating Temperature-20℃ ~ 60℃
Storage Temperature-30℃ ~ 70℃
Dimensions83x55mm
Weight75g

  • Pin Description:
PinLabelDescription
1,173.3VPower Positive (3.3V Input)
2,45VPower Positive (5V Input)
6,9,14,20,25GNDPower Ground
11TP_IRQTouch Panel Interrupt, Outputs Low When Pressed
18LCD_DCCommand/Data Selection, Low for Command, High for Data
19SPI_MOSILCD SPI Data Input
21SPI_MISOTouch Panel SPI Data Output
22RSTReset
23SPI_CLKLCD/Touch Panel Clock Signal
24LCD_CSLCD Chip Select, Active Low
26TP_CSTouch Panel Chip Select, Active Low

Enabling LCD Display

The WalnutPi system already includes the relevant display driver, supported on both desktop and non-desktop versions. Use the following command to enable desktop display (TAB key auto-completion supported):

sudo set-lcd lcd35-st7796 install

Restart the board after configuration:

sudo reboot

Unplug the HDMI cable, wait patiently for the system to start, and you will see the desktop interface on the LCD (terminal for non-desktop system), displayed in the following default orientation:

3.5_lcd1


Note

The above command is applicable to both WalnutPi desktop and non-desktop systems (the non-desktop system will display a terminal). After this configuration, if an HDMI display is connected, the display takes priority. To view on the LCD, be sure to unplug the HDMI cable.

Setting LCD Display Orientation

Use the following command to set the display orientation. Supported angles: 0, 90, 180, 270 degrees. The default is 270 degrees. For desktop systems, 270 or 90 is recommended as portrait orientation may cause content loss.

sudo set-lcd lcd35-st7796 set_rotate 270

Disabling LCD Display

Use the following command to remove the LCD display function and boot from HDMI:

sudo set-lcd lcd35-st7796 remove

Using on Raspberry Pi

The WalnutPi 3.5-inch touch display provides driver software adapted for the Raspberry Pi. Once installed, it can be used on the Raspberry Pi. See the README document in the project for detailed usage instructions:

Project link: https://github.com/walnutpi/rpi-lcd

3.5_lcd2