11 class 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);
void send_to_all_(uint8_t a_register, uint8_t data)
uint8_t uint8_t uint8_t print(uint8_t pos, const char *str)
Print str at the given position.
A more user-friendly version of struct tm from time.h.
void set_intensity(uint8_t intensity)
void send_byte_(uint8_t a_register, uint8_t data)
This class simplifies creating components that periodically check a state.
void set_reverse(bool reverse)
The SPIDevice is what components using the SPI will create.
optional< max7219_writer_t > writer_
enum esphome::EntityCategory __attribute__
uint8_t printf(uint8_t pos, const char *format,...) __attribute__((format(printf
Evaluate the printf-format and print the result at the given position.
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.
std::function< void(MAX7219Component &)> max7219_writer_t
float get_setup_priority() const override
void set_writer(max7219_writer_t &&writer)
Implementation of SPI Controller mode.
void set_num_chips(uint8_t num_chips)
void dump_config() override