Skip to content

About

Display driver for the UCTRONICS Pi Rack Pro (RM0004) LCD on Raspberry Pi 4/5

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

UCTRONICS LCD Display Driver

Display driver for the UCTRONICS Pi Rack Pro (RM0004) 160x80 ST7735 TFT LCD on Raspberry Pi 4/5. Shows live system metrics: CPU, RAM, temperature, disk, and network.

Dashboard Sparkline
Dashboard Sparkline

Screens

Dashboard — single-page status view with color-coded bars for CPU, RAM, temperature, and disk usage.

Sparkline — scrolling history charts for CPU and RAM, plus live network and disk I/O rates, temperature, frequency, and alert badges.

Diagnostic — multi-page detailed metrics that alternate each refresh cycle: system overview (hostname, IPs, CPU, temperature, RAM) and I/O (disk, network, IOPS, update status).

Installation

curl -sL https://github.com/cafedomingo/SKU_RM0004/releases/latest/download/install.sh | sudo bash

The script is idempotent and handles both first install and updates. It installs the binary and a systemd service, and on later runs downloads a newer release if there is one. It does not edit the boot config: if I2C or the case's power-button overlay is not set up, it prints the exact lines to add to config.txt before rebooting.

Configuration

No configuration is required — sensible defaults are built in. Optional runtime settings in /etc/uctronics-display.conf:

screen=dashboard    # dashboard | diagnostic | sparkline
refresh=5           # 2-30 seconds
temp_unit=C         # C | F

Changes take effect immediately — no restart needed.

Building from source

go build -o display ./cmd/display

Cross-compile for Pi:

GOOS=linux GOARCH=arm64 go build -o display ./cmd/display

Development

Run tests:

go test ./...

Generate font data:

go generate ./internal/font/

Generate screenshots:

go build -o screenshot ./cmd/screenshot && ./screenshot

Credits

For the original C display driver, see UCTRONICS/SKU_RM0004.

Spleen font by Frederic Cambus (BSD 2-Clause).

About

Display driver for the UCTRONICS Pi Rack Pro (RM0004) LCD on Raspberry Pi 4/5

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages