13 #ifdef USE_BINARY_SENSOR 21 #ifdef USE_BINARY_SENSOR 31 void setup()
override;
48 uint8_t
print(uint8_t pos,
const char *str);
50 uint8_t
print(
const char *str);
58 #ifdef USE_BINARY_SENSOR 86 #ifdef USE_BINARY_SENSOR 91 #ifdef USE_BINARY_SENSOR 97 void process(uint8_t data) { this->publish_state(static_cast<bool>(data == this->key_code_)); }
100 uint8_t key_code_{0};
void set_length(uint8_t length)
bool send_byte_(uint8_t b)
void set_intensity(uint8_t intensity)
float get_setup_priority() const override
void process(uint8_t data)
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)
A more user-friendly version of struct tm from time.h.
uint8_t strftime(uint8_t pos, const char *format, time::ESPTime time) __attribute__((format(strftime
Evaluate the strftime-format and print the result at the given position.
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.
void dump_config() override
Base class for all binary_sensor-type classes.
std::vector< TM1637Key * > tm1637_keys_