first commit

This commit is contained in:
matt committed 2026-08-03 20:31:28 -07:00
commit 0ef2017d18
28 files changed
+1882

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#ifndef BACKLIGHT_H
#define BACKLIGHT_H
#include <stdbool.h>
#include <stdint.h>
#include "esp_err.h"
/*
* STC8H1K28 board controller (I2C 0x30) on the CrowPanel 7" Advance.
*
* It owns more than the backlight: its init sequence also drives the GT911
* reset line, so this must run before the touch controller will answer on
* the bus at all. Requires i2c_bus_init() first.
*/
esp_err_t backlight_init(void);
/* 0 = off, 255 = full. The v1.3 wire protocol is inverted; that is handled
* internally so callers can use the intuitive direction. */
esp_err_t backlight_set(uint8_t brightness);
#endif