7static const char *
const TAG =
"st7567";
15 ESP_LOGD(TAG,
"Initializing display");
19 this->
command(ST7567_DISPLAY_ON);
26 this->
command(ST7567_POWER_CTL | 0x4);
27 this->
command(ST7567_POWER_CTL | 0x6);
28 this->
command(ST7567_POWER_CTL | 0x7);
35 this->
command(ST7567_BOOSTER_ON);
36 this->
command(ST7567_REGULATOR_ON);
39 this->
command(ST7567_SCAN_START_LINE);
44 ESP_LOGD(TAG,
"Performing refresh sequence");
45 this->
command(ST7567_SW_REFRESH);
81 this->
command(ST7567_SET_EV_CMD);
99 this->
command(ST7567_DISPLAY_ON);
104 this->
command(ST7567_DISPLAY_OFF);
125 uint8_t subpos =
y & 0x07;
136 Display::fill(color);
140 uint8_t
fill = color.
is_on() ? 0xFF : 0x00;
virtual void digital_write(bool value)=0
void init_internal_(uint32_t buffer_length)
virtual void clear()
Clear the entire screen by filling it with OFF pixels.
Rect get_clipping() const
Get the current the clipping rectangle.
void draw_absolute_pixel_internal(int x, int y, Color color) override
void display_sw_refresh_()
void set_invert_colors(bool invert_colors)
void set_scroll(uint8_t line)
const char * model_str_()
void set_all_pixels_on(bool enable)
int get_height_internal() override
virtual void command(uint8_t value)=0
void fill(Color color) override
void set_brightness(uint8_t val)
void set_contrast(uint8_t val)
void display_init_registers_()
virtual void write_display_data()=0
size_t get_buffer_length_()
int get_width_internal() override
void HOT delay(uint32_t ms)
bool is_on() ESPHOME_ALWAYS_INLINE