rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
25
extern
"C"
{
26
#endif
27
36
esp_err_t
board_init
(
void
);
37
43
i2c_master_bus_handle_t
board_i2c_bus
(
void
);
44
51
esp_err_t
board_backlight_percent
(
int
percent);
52
58
esp_err_t
board_backlight
(
bool
on);
59
68
esp_err_t
board_touch_reset_sequence
(
void
);
69
70
#ifdef __cplusplus
71
}
72
#endif
board_backlight_percent
esp_err_t board_backlight_percent(int percent)
Set the backlight brightness.
Definition
board.c:96
board_backlight
esp_err_t board_backlight(bool on)
Backlight at 100% or 0%.
Definition
board.c:112
board_touch_reset_sequence
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
board_init
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
board_i2c_bus
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
board_pins.h
Pin map for the 7-inch ESP32-P4 display board from Waveshare (ESP32-P4-WIFI6-Touch-LCD-7B).
firmware
panel
components
board
include
board.h
Generated by
1.18.0