7 static const char *
const TAG =
"st7567_spi";
10 ESP_LOGCONFIG(TAG,
"Setting up SPI ST7567 display...");
21 LOG_DISPLAY(
"",
"SPI ST7567",
this);
22 ESP_LOGCONFIG(TAG,
" Model: %s", this->
model_str_());
23 LOG_PIN(
" CS Pin: ", this->
cs_);
24 LOG_PIN(
" DC Pin: ", this->
dc_pin_);
26 ESP_LOGCONFIG(TAG,
" Mirror X: %s", YESNO(this->
mirror_x_));
27 ESP_LOGCONFIG(TAG,
" Mirror Y: %s", YESNO(this->
mirror_y_));
28 ESP_LOGCONFIG(TAG,
" Invert Colors: %s", YESNO(this->
invert_colors_));
29 LOG_UPDATE_INTERVAL(
this);
54 this->
command(esphome::st7567_base::ST7567_PAGE_ADDR +
y);
55 this->
command(esphome::st7567_base::ST7567_COL_ADDR_H);
virtual void digital_write(bool value)=0
void spi_setup() override
void write_byte(uint8_t data)
const char * model_str_()
void write_display_data() override
void command(uint8_t value) override
int get_height_internal() override
int get_width_internal() override
void dump_config() override
void write_array(const uint8_t *data, size_t length)
Implementation of SPI Controller mode.
void IRAM_ATTR HOT delay(uint32_t ms)