21 #ifndef COSA_ST7565_HH 22 #define COSA_ST7565_HH 88 static const uint8_t
WIDTH = 128;
99 #if !defined(BOARD_ATTINY) 112 virtual bool begin();
164 virtual void set_cursor(uint8_t x, uint8_t y);
181 __attribute__((always_inline))
201 void draw_bitmap(uint8_t* bp, uint8_t width, uint8_t height);
211 void draw_bar(uint8_t percent, uint8_t width, uint8_t pattern = 0x55);
266 } __attribute__((packed));
281 void set(uint8_t cmd);
288 void set(uint8_t x, uint8_t y);
295 void fill(uint8_t data, uint16_t count);
virtual int putchar(char c)
Set normal address correspondence.
uint8_t m_line
Display start line.
void draw_bar(uint8_t percent, uint8_t width, uint8_t pattern=0x55)
static const uint8_t WIDTH
static const uint8_t LINES
Set indicator flashing mode off.
void fill(uint8_t data, uint16_t count)
void draw_bitmap(uint8_t *bp, uint8_t width, uint8_t height)
virtual void display_inverse()
static const uint8_t script[]
virtual void display_contrast(uint8_t level)
virtual void display_clear()
Normal output scan direction.
Set reverse address correspondence.
Select internal power supply mode.
OutputPin m_dc
Data(1) or command(0).
void draw_icon(const uint8_t *bp)
Set column address (2x4 bits).
virtual void set_cursor(uint8_t x, uint8_t y)
Select internal resistor ratio.
Font * get_text_font() const
Font * set_text_font(Font *font)
Column address increment.
virtual void display_off()
ST7565(LCD::IO *io, Board::DigitalPin dc=Board::D8, Font *font=&system5x7)
Set output voltage volume register.
static const uint8_t HEIGHT
virtual void display_on()
LCD::IO * m_io
Display adapter.
virtual void display_normal()