Files
t-embed-insecam-widget/main/display.h
T
Juli 89dfdf09a6 24 favourite slots and a Power off menu entry
Power off drops the peripheral rail (PWR_ON low), sleeps the panel and
puts the chip into deep sleep with ext1 wake armed on the encoder pins,
choosing any-low or any-high from the knob's resting state so a single
detent wakes it. The button (GPIO0) is not a wake source on purpose.
2026-09-17 02:20:48 +02:00

13 lines
307 B
C

#pragma once
#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);