Files
Juli 33089b95ab Wheel side setting: rotate the display 180° for left-handed use
Hardware mirror in the ST7789 (rotation 3 <-> rotation 1); the 35-px
window offset is the same both ways. Stored in settings v3.
2026-09-17 15:52:56 +02:00

16 lines
447 B
C

#pragma once
#include <stdbool.h>
#include <stdint.h>
#define LCD_H_RES 320
#define LCD_V_RES 170
// Brings up the ST7789 over SPI, starts the LVGL task. Backlight stays off.
void display_init(void);
// 0..100
void display_set_backlight(uint8_t percent);
// Panel sleep-in (used before powering down).
void display_off(void);
// 180° rotation so the knob can sit on the left; redraws the current screen.
void display_set_flipped(bool flipped);