Skip to main content

1.54-inch Display

  • Video Tutorial


The Walnut Pi official 1.54-inch display uses the SPI bus with a maximum speed of 60MHz. The backlight is controllable, and the official driver supports system desktop display, PyQt5, and other UI functions.

1.54_lcd

The back features 3 programmable buttons, and GPIO pins are exposed via a patch ribbon cable connector, meaning that even when plugged into the Walnut Pi, you can still connect I2C, serial communication devices, and other modules.

1.54_lcd

Specifications
Resolution240x240 (Pixels)
Interface4-wire SPI (max speed: 60MHz)
Display ICst7789
Operating Temperature-20℃ ~ 60℃
Storage Temperature-30℃ ~ 70℃
Dimensions65x32mm
Weight14g

  • Pinout:
Pin No.LabelDescription
1, 173.3VPower Positive (3.3V Input)
2, 45VPower Positive (5V Input)
6, 9, 14, 20, 25GNDPower Ground
18LCD_DCCommand/Data Select, LOW=Command, HIGH=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

Enabling LCD Display

The Walnut Pi system already includes the relevant display drivers, supported on both Desktop and Server editions. Use the following command to enable desktop display (supports TAB auto-completion):

sudo set-lcd lcd15-st7789 install

After configuration, reboot the board:

sudo reboot
Note:

You can also configure this by modifying the screen parameter in /boot/config.txt: screen=lcd15-st7789. config.txt Display Configuration Tutorial

Unplug the HDMI cable, wait patiently for the system to boot, and you will see the desktop interface on the LCD (Server edition displays the terminal), shown in the default orientation below:

1.54_lcd


Note

The above command works for both the Walnut Pi Desktop edition and Server edition (the Server edition will display the terminal). After making this configuration, if an HDMI display is also connected, the display will take priority. To show on the LCD, you must unplug the HDMI cable.

Setting LCD Display Orientation

Use the following command to set the display orientation, supporting angles of 0, 90, 180, and 270 degrees. The default is 270 degrees. For the Desktop edition, 270 or 90 is recommended, as portrait orientation can cause content to be truncated.

sudo set-lcd lcd15-st7789 set_rotate 270

Disabling LCD Display

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

sudo set-lcd lcd15-st7789 remove

Font Size Adjustment

Due to the small size and resolution of the 1.54-inch LCD, it is mainly used for terminal-based interaction (Server edition) or for PyQt5 experiments.

On the Desktop edition, you can open a terminal and use keyboard shortcuts to scale the terminal font for easier viewing:

  • Ctrl + Shift + + : Increase font size

  • Ctrl + - : Decrease font size

1.54_lcd