ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
ft5x06_touchscreen.h
Go to the documentation of this file.
1#pragma once
2
6#include "esphome/core/gpio.h"
7#include "esphome/core/hal.h"
8
9namespace esphome::ft5x06 {
10
17
28
29enum FTMode : uint8_t {
33};
34
35static const size_t MAX_TOUCHES = 5; // max number of possible touches reported
36
38 public:
39 void setup() override;
40 void dump_config() override;
41 void update_touches() override;
42
43 void set_interrupt_pin(InternalGPIOPin *interrupt_pin) { this->interrupt_pin_ = interrupt_pin; }
44
45 protected:
46 void continue_setup_();
47 bool err_check_(i2c::ErrorCode err, const char *msg);
48 bool set_mode_(FTMode mode);
50
52};
53
54} // namespace esphome::ft5x06
BedjetMode mode
BedJet operating mode.
void set_interrupt_pin(InternalGPIOPin *interrupt_pin)
bool err_check_(i2c::ErrorCode err, const char *msg)
This Class provides the methods to read/write bytes from/to an i2c device.
Definition i2c.h:132
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
Definition i2c_bus.h:12