aniker/config/display_config.toml

36 lines
692 B
TOML
Raw Normal View History

2025-04-16 21:00:32 +01:00
# Display Configuration
[tft]
# Hardware Configuration
width = 128
height = 160
rotation = 0 # 0, 90, 180, or 270 degrees
# SPI Configuration
spi_clock_speed = 20000000 # 20MHz
spi_mode = 0
# Pin Assignments
mosi_pin = 23
sclk_pin = 18
cs_pin = 5
dc_pin = 22
rst_pin = 21
blk_pin = 4
# Display Settings
default_brightness = 255 # 0-255
refresh_rate = 1000 # ms
timeout = 30000 # Screen timeout in ms, 0 for always on
# UI Settings
font_size = 2
text_color = 0xFFFF # White
background_color = 0x0000 # Black
alert_color = 0xF800 # Red
# Power Management
enable_power_save = false
dim_timeout = 10000 # ms before dimming
power_save_brightness = 64 # 0-255