29 lines
571 B
C
29 lines
571 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;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|