ESPHome 2025.5.0
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 {
10namespace ft5x06 {
11
18
29
30enum FTMode : uint8_t {
34};
35
36static const size_t MAX_TOUCHES = 5; // max number of possible touches reported
37
39 public:
40 void setup() override;
41 void dump_config() override;
42 void update_touches() override;
43
44 void set_interrupt_pin(InternalGPIOPin *interrupt_pin) { this->interrupt_pin_ = interrupt_pin; }
45
46 protected:
47 void continue_setup_();
48 bool err_check_(i2c::ErrorCode err, const char *msg);
49 bool set_mode_(FTMode mode);
51
53};
54
55} // namespace ft5x06
56} // namespace esphome
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:133
ErrorCode
Error codes returned by I2CBus and I2CDevice methods.
Definition i2c_bus.h:11
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7