rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
13
14#pragma once
15
16#include <stdbool.h>
17#include <stdint.h>
18
19#include "driver/i2c_master.h"
20#include "esp_err.h"
21
22#include "board_pins.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
36esp_err_t board_init(void);
37
43i2c_master_bus_handle_t board_i2c_bus(void);
44
51esp_err_t board_backlight_percent(int percent);
52
58esp_err_t board_backlight(bool on);
59
68esp_err_t board_touch_reset_sequence(void);
69
70#ifdef __cplusplus
71}
72#endif
esp_err_t board_backlight_percent(int percent)
Set the backlight brightness.
Definition board.c:96
esp_err_t board_backlight(bool on)
Backlight at 100% or 0%.
Definition board.c:112
esp_err_t board_touch_reset_sequence(void)
Run the GT911 reset on BOARD_TOUCH_PIN_RST: low 20ms, high, then 60ms before the first read....
Definition board.c:117
esp_err_t board_init(void)
Bring up the touch I2C bus and the backlight PWM, the backlight at 0% (dark).
Definition board.c:65
i2c_master_bus_handle_t board_i2c_bus(void)
The touch bus: the GT911 and, in a build with it, the touch injector.
Definition board.c:91
Pin map for the 7-inch ESP32-P4 display board from Waveshare (ESP32-P4-WIFI6-Touch-LCD-7B).