8 namespace st7567_base {
10 static const uint8_t ST7567_BOOSTER_ON = 0x2C;
11 static const uint8_t ST7567_REGULATOR_ON = 0x2E;
12 static const uint8_t ST7567_POWER_ON = 0x2F;
14 static const uint8_t ST7567_DISPLAY_ON = 0xAF;
15 static const uint8_t ST7567_DISPLAY_OFF = 0xAE;
16 static const uint8_t ST7567_SET_START_LINE = 0x40;
17 static const uint8_t ST7567_POWER_CTL = 0x28;
18 static const uint8_t ST7567_SEG_NORMAL = 0xA0;
19 static const uint8_t ST7567_SEG_REVERSE = 0xA1;
20 static const uint8_t ST7567_COM_NORMAL = 0xC0;
21 static const uint8_t ST7567_COM_REMAP = 0xC8;
22 static const uint8_t ST7567_PIXELS_NORMAL = 0xA4;
23 static const uint8_t ST7567_PIXELS_ALL_ON = 0xA5;
24 static const uint8_t ST7567_INVERT_OFF = 0xA6;
25 static const uint8_t ST7567_INVERT_ON = 0xA7;
26 static const uint8_t ST7567_SCAN_START_LINE = 0x40;
27 static const uint8_t ST7567_COL_ADDR_H = 0x10;
28 static const uint8_t ST7567_COL_ADDR_L = 0x00;
29 static const uint8_t ST7567_PAGE_ADDR = 0xB0;
30 static const uint8_t ST7567_BIAS_9 = 0xA2;
31 static const uint8_t ST7567_CONTRAST = 0x80;
32 static const uint8_t ST7567_SET_EV_CMD = 0x81;
33 static const uint8_t ST7567_SET_EV_PARAM = 0x00;
34 static const uint8_t ST7567_RESISTOR_RATIO = 0x20;
35 static const uint8_t ST7567_SW_REFRESH = 0xE2;
39 void setup()
override;
67 virtual void command(uint8_t value) = 0;
void set_invert_colors(bool invert_colors)
void fill(Color color) override
void set_brightness(uint8_t val)
void init_mirror_y(bool mirror_y)
virtual void write_display_data()=0
void set_reset_pin(GPIOPin *reset_pin)
virtual void command(uint8_t value)=0
const char * model_str_()
void display_sw_refresh_()
void init_mirror_x(bool mirror_x)
int get_height_internal() override
void line(int x1, int y1, int x2, int y2, Color color=COLOR_ON)
Draw a straight line from the point [x1,y1] to [x2,y2] with the given color.
size_t get_buffer_length_()
const float PROCESSOR
For components that use data from sensors like displays.
void set_scroll(uint8_t line)
int get_width_internal() override
void init_invert_colors(bool invert_colors)
void draw_absolute_pixel_internal(int x, int y, Color color) override
display::DisplayType get_display_type() override
float get_setup_priority() const override
void set_contrast(uint8_t val)
void display_init_registers_()
Implementation of SPI Controller mode.
void set_all_pixels_on(bool enable)