mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-10-17 10:55:06 +00:00
31 lines
702 B
C
31 lines
702 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include <tactility/drivers/gpio.h>
|
|
|
|
struct Ft5x06Config {
|
|
// Devicetree address hint. Unused by the driver: the FT5x06 always sits at a fixed
|
|
// I2C address (0x38, see ESP_LCD_TOUCH_IO_I2C_FT5x06_ADDRESS).
|
|
uint8_t address;
|
|
uint16_t x_max;
|
|
uint16_t y_max;
|
|
bool swap_xy;
|
|
bool mirror_x;
|
|
bool mirror_y;
|
|
struct GpioPinSpec pin_reset;
|
|
struct GpioPinSpec pin_interrupt;
|
|
// When true, disable the controller's monitor/sleep timeout (register 0x87 = 0) after init.
|
|
bool disable_monitor_timeout;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|