Skip to content

cafedomingo/SKU_RM0004

 
 

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 — it handles both first install and updates. On first run it configures I2C, GPIO shutdown, and installs a systemd service. On subsequent runs it downloads the latest binary and restarts the service.

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

License

Stars

Watchers

Forks

Contributors

Languages

  • Go 95.2%
  • Shell 4.8%