26 void setup()
override;
45 uint8_t
print(uint8_t pos, const
char *str);
47 uint8_t
print(const
char *str);
57 void set_led(
int led_pos,
bool led_on_off);
60 void set_7seg_(
int seg_pos, uint8_t seg_bits);
63 void send_commands_(uint8_t const commands[], uint8_t num_commands);
This class simplifies creating components that periodically check a state.
virtual void keys_update(uint8_t keys)
optional< tm1638_writer_t > writer_
void set_7seg_(int seg_pos, uint8_t seg_bits)
float get_setup_priority() const override
std::vector< KeyListener * > listeners_
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.
GPIOPin * clk_pin_
brghtness of the display 0 through 7
void register_listener(KeyListener *listener)
void send_command_leave_open_(uint8_t value)
void set_stb_pin(GPIOPin *pin)
void dump_config() override
void set_clk_pin(GPIOPin *pin)
void send_command_sequence_(uint8_t commands[], uint8_t num_commands, uint8_t starting_address)
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_writer(tm1638_writer_t &&writer)
void set_intensity(uint8_t brightness_level)
uint8_t uint8_t void set_led(int led_pos, bool led_on_off)
void set_dio_pin(GPIOPin *pin)
void send_commands_(uint8_t const commands[], uint8_t num_commands)
void shift_out_(uint8_t value)
void send_command_(uint8_t value)
struct @67::@68 __attribute__
std::function< void(TM1638Component &)> tm1638_writer_t
Providing packet encoding functions for exchanging data with a remote host.
A more user-friendly version of struct tm from time.h.