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; }
bool gesture_right_started_
bool is_color_enabled_() const
bool gesture_left_started_
uint8_t gesture_led_drive_
uint8_t gesture_wait_time_
void read_gesture_data_()
void read_color_data_(uint8_t status)
void process_dataset_(int up, int down, int left, int right)
This class simplifies creating components that periodically check a state.
enum esphome::apds9960::APDS9960::ErrorCode NONE
void read_proximity_data_(uint8_t status)
bool gesture_down_started_
virtual void setup()
Where the component's initialization should happen.
void report_gesture_(int gesture)
Implementation of SPI Controller mode.
This Class provides the methods to read/write bytes from/to an i2c device.
bool is_gesture_enabled_() const
bool is_proximity_enabled_() const