23 lines
609 B
C
23 lines
609 B
C
#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
|