10 #ifdef USE_BINARY_SENSOR 18 #ifdef USE_BINARY_SENSOR 28 void setup()
override;
45 uint8_t
print(uint8_t pos,
const char *str);
47 uint8_t
print(
const char *str);
56 #ifdef USE_BINARY_SENSOR 83 #ifdef USE_BINARY_SENSOR 88 #ifdef USE_BINARY_SENSOR 94 void process(uint8_t data) { this->publish_state(static_cast<bool>(data == this->key_code_)); }
void set_length(uint8_t length)
bool send_byte_(uint8_t b)
uint8_t strftime(uint8_t pos, const char *format, ESPTime time) __attribute__((format(strftime
Evaluate the strftime-format and print the result at the given position.
void set_intensity(uint8_t intensity)
float get_setup_priority() const override
void process(uint8_t data)
A more user-friendly version of struct tm from time.h.
optional< tm1637_writer_t > writer_
void set_clk_pin(GPIOPin *pin)
This class simplifies creating components that periodically check a state.
void set_writer(tm1637_writer_t &&writer)
uint8_t printf(uint8_t pos, const char *format,...) __attribute__((format(printf
Evaluate the printf-format and print the result at the given position.
void set_inverted(bool inverted)
void set_keycode(uint8_t key_code)
void set_dio_pin(GPIOPin *pin)
enum esphome::EntityCategory __attribute__
std::function< void(TM1637Display &)> tm1637_writer_t
void add_tm1637_key(TM1637Key *tm1637_key)
uint8_t uint8_t uint8_t print(uint8_t pos, const char *str)
Print str at the given position.
Implementation of SPI Controller mode.
void dump_config() override
Base class for all binary_sensor-type classes.
std::vector< TM1637Key * > tm1637_keys_