119 if (x >=
WIDTH) x = 0;
121 uint8_t offset = (uint8_t) pgm_read_byte(&
m_offset[y]);
145 for (uint8_t i = 0; i <
BITMAP_MAX; i++, bitmap++)
146 write(pgm_read_byte(bitmap));
170 for (uint8_t i = 0; i <
WIDTH; i++)
write(
' ');
virtual void display_clear()
uint8_t m_y
Cursor position y.
uint8_t m_x
Cursor position x.
virtual void set_cursor(uint8_t x, uint8_t y)
void set_instruction_mode()
virtual void backlight_on()
const uint8_t HD44780::offset0[] __PROGMEM
void clear(uint8_t &cmd, uint8_t mask)
void set_custom_char(uint8_t id, const uint8_t *bitmap)
static const uint16_t LONG_EXEC_TIME
virtual int putchar(char c)
virtual void display_off()
Increment (right) on write.
virtual void write8n(const void *buf, size_t size)
static const uint16_t INIT1_TIME
static const uint8_t offset0[]
IO * m_io
IO port handler.
uint8_t m_mode
Entry mode.
static const uint16_t POWER_ON_TIME
Sets the interface data length, 4-bit or.
void(* delay)(uint32_t ms)
void get_cursor(uint8_t &x, uint8_t &y) const
const uint8_t * m_offset
Row offset table.
virtual void display_on()
static const uint8_t offset1[]
Clears entrire display and return home.
virtual int write(const void *buf, size_t size)
static const uint16_t INIT0_TIME
Sets interface data length, line and font.
virtual void write4b(uint8_t data)=0
uint8_t m_func
Function set.
virtual void backlight_off()
static const uint8_t BITMAP_MAX
virtual void set_backlight(uint8_t flag)=0
void set_custom_char_P(uint8_t id, const uint8_t *bitmap)
Sets DDRAM 0 in address counter.