9#ifdef USE_BINARY_SENSOR
25#ifdef USE_BINARY_SENSOR
26 SUB_BINARY_SENSOR(up_direction)
27 SUB_BINARY_SENSOR(right_direction)
28 SUB_BINARY_SENSOR(down_direction)
29 SUB_BINARY_SENSOR(left_direction)
33 void setup()
override;
34 void dump_config()
override;
35 float get_setup_priority()
const override;
36 void update()
override;
39 void set_led_drive(uint8_t level) { this->
led_drive_ = level; }
44 void set_gesture_wait_time(uint8_t wait_time) { this->
gesture_wait_time_ = wait_time; }
virtual void setup()
Where the component's initialization should happen.
This class simplifies creating components that periodically check a state.
bool gesture_right_started_
bool gesture_left_started_
void read_proximity_data_(uint8_t status)
void read_gesture_data_()
bool is_gesture_enabled_() const
void report_gesture_(int gesture)
void read_color_data_(uint8_t status)
bool gesture_down_started_
enum esphome::apds9960::APDS9960::ErrorCode NONE
uint8_t gesture_wait_time_
bool is_color_enabled_() const
uint8_t gesture_led_drive_
void process_dataset_(int up, int down, int left, int right)
bool is_proximity_enabled_() const
This Class provides the methods to read/write bytes from/to an i2c device.
Providing packet encoding functions for exchanging data with a remote host.