26 void setup()
override;
27 void dump_config()
override;
28 void update()
override;
29 float get_setup_priority()
const override;
30 void set_intensity(uint8_t brightness_level);
40 uint8_t printf(uint8_t pos,
const char *format, ...)
__attribute__((format(printf, 3, 4)));
42 uint8_t printf(
const char *format, ...)
__attribute__((format(printf, 2, 3)));
45 uint8_t print(uint8_t pos,
const char *str);
47 uint8_t print(
const char *str);
53 uint8_t strftime(uint8_t pos,
const char *format,
ESPTime time)
__attribute__((format(strftime, 3, 0)));
57 void set_led(
int led_pos,
bool led_on_off);
60 void set_7seg_(
int seg_pos, uint8_t seg_bits);
61 void send_command_(uint8_t value);
62 void send_command_leave_open_(uint8_t value);
63 void send_commands_(uint8_t
const commands[], uint8_t num_commands);
64 void send_command_sequence_(uint8_t commands[], uint8_t num_commands, uint8_t starting_address);
65 void shift_out_(uint8_t value);
72 uint8_t *buffer_ =
new uint8_t[8];
74 std::vector<KeyListener *> listeners_{};
GPIOPin * clk_pin_
brghtness of the display 0 through 7
std::function< void(TM1638Component &)> tm1638_writer_t
A more user-friendly version of struct tm from time.h.
void set_clk_pin(GPIOPin *pin)
This class simplifies creating components that periodically check a state.
void set_stb_pin(GPIOPin *pin)
enum esphome::EntityCategory __attribute__
void set_writer(tm1638_writer_t &&writer)
Implementation of SPI Controller mode.
void register_listener(KeyListener *listener)
void set_dio_pin(GPIOPin *pin)
virtual void keys_update(uint8_t keys)