11class MAX7219Component;
16 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW,
17 spi::CLOCK_PHASE_LEADING, spi::DATA_RATE_1MHZ> {
21 void setup()
override;
41 uint8_t
print(uint8_t pos, const
char *str);
43 uint8_t
print(const
char *str);
52 void send_byte_(uint8_t a_register, uint8_t data);
This class simplifies creating components that periodically check a state.
uint8_t printf(uint8_t pos, const char *format,...) __attribute__((format(printf
Evaluate the printf-format and print the result at the given position.
optional< max7219_writer_t > writer_
void set_intensity(uint8_t intensity)
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 send_to_all_(uint8_t a_register, uint8_t data)
void dump_config() override
void set_writer(max7219_writer_t &&writer)
float get_setup_priority() const override
void send_byte_(uint8_t a_register, uint8_t data)
void set_num_chips(uint8_t num_chips)
void set_reverse(bool reverse)
The SPIDevice is what components using the SPI will create.
struct @67::@68 __attribute__
std::function< void(MAX7219Component &)> max7219_writer_t
Providing packet encoding functions for exchanging data with a remote host.
A more user-friendly version of struct tm from time.h.