21 #ifndef COSA_PCD8544_HH 22 #define COSA_PCD8544_HH 74 static const uint8_t
WIDTH = 84;
85 #if !defined(BOARD_ATTINY) 150 virtual void set_cursor(uint8_t x, uint8_t y);
167 __attribute__((always_inline))
187 void draw_bitmap(uint8_t* bp, uint8_t width, uint8_t height);
197 void draw_bar(uint8_t percent, uint8_t width, uint8_t pattern = 0x55);
236 } __attribute__((packed));
250 void set(uint8_t cmd);
257 void set(uint8_t x, uint8_t y);
264 void fill(uint8_t data, uint16_t count);
virtual void display_on()
Sets X-address of RAM (0..83).
void fill(uint8_t data, uint16_t count)
PCD8544(LCD::IO *io, Board::DigitalPin dc=Board::D8, Font *font=&system5x7)
Set temperature coefficient (0..3).
virtual int putchar(char c)
OutputPin m_dc
Data/command output pin.
Extended instruction set control.
void draw_bitmap(uint8_t *bp, uint8_t width, uint8_t height)
virtual void display_contrast(uint8_t level)
static const uint8_t HEIGHT
Font * get_text_font() const
LCD::IO * m_io
Display adapter.
static const uint8_t LINES
void draw_icon(const uint8_t *bp)
virtual void display_normal()
Sets Y-address of RAM (0..5).
virtual void display_inverse()
static const uint8_t WIDTH
static const uint8_t script[]
virtual void set_cursor(uint8_t x, uint8_t y)
Font * set_text_font(Font *font)
virtual void display_off()
void draw_bar(uint8_t percent, uint8_t width, uint8_t pattern=0x55)
virtual void display_clear()