Arduino-LCD
LCD library for Arduino
|
#include <HD44780.h>
Classes | |
class | Adapter |
Public Member Functions | |
HD44780 (Adapter &io, uint8_t width=16, uint8_t height=2) | |
virtual bool | begin () |
virtual void | backlight_on () |
virtual void | backlight_off () |
virtual void | display_on () |
virtual void | display_off () |
virtual void | display_clear () |
virtual void | cursor_blink_on () |
virtual void | cursor_blink_off () |
virtual void | cursor_set (uint8_t x, uint8_t y) |
virtual void | cursor_home () |
void | display_scroll_left () |
void | display_scroll_right () |
void | cursor_underline_on () |
void | cursor_underline_off () |
void | text_flow_right_to_left () |
void | text_scroll_left_adjust () |
void | text_scroll_right_adjust () |
void | set_custom_char (uint8_t id, const uint8_t *bitmap) |
void | set_custom_char_P (uint8_t id, const uint8_t *bitmap) |
virtual size_t | write (uint8_t c) |
virtual bool | end () |
virtual void | display_contrast (uint8_t level) |
virtual void | display_normal () |
virtual void | display_inverse () |
void | cursor_get (uint8_t &x, uint8_t &y) const |
virtual void | cursor_update () |
uint8_t | tab_step () const |
void | tab_step (uint8_t step) |
uint8_t | text_mode () const |
void | text_normal_mode () |
void | text_inverted_mode () |
Public Attributes | |
const uint8_t | WIDTH |
const uint8_t | HEIGHT |
Static Public Attributes | |
static const uint8_t | BITMAP_MAX = 8 |
Protected Types | |
enum | { CLEAR_DISPLAY = 0x01, RETURN_HOME = 0x02, ENTRY_MODE_SET = 0x04, CONTROL_SET = 0x08, SHIFT_SET = 0x10, FUNCTION_SET = 0x20, SET_CGRAM_ADDR = 0x40, SET_CGRAM_MASK = 0x3f, SET_DDRAM_ADDR = 0x80, SET_DDRAM_MASK = 0x7f, BIAS_RESISTOR_SET = 0x04, BIAS_RESISTOR_MASK = 0x03, COM_SEG_SET = 0x40, COM_SET_MASK = 0x0f, SET_DDATA_LENGTH = 0x80, SET_DDATA_MASK = 0x7f } |
enum | { DISPLAY_SHIFT = 0x01, INCREMENT = 0x02, DECREMENT = 0x00 } |
enum | { BLINK_ON = 0x01, CURSOR_ON = 0x02, DISPLAY_ON = 0x04 } |
enum | { MOVE_LEFT = 0x00, MOVE_RIGHT = 0x04, CURSOR_MODE = 0x00, DISPLAY_MOVE = 0x08 } |
enum | { DATA_LENGTH_4BITS = 0x00, DATA_LENGTH_8BITS = 0x10, NR_LINES_1 = 0x00, NR_LINES_2 = 0x08, FONT_5X8DOTS = 0x00, FONT_5X10DOTS = 0x04, BASIC_SET = 0x00, EXTENDED_SET = 0x04 } |
Protected Attributes | |
Adapter & | m_io |
IO port adapter. More... | |
uint8_t | m_mode |
Entry mode. More... | |
uint8_t | m_cntl |
Control. More... | |
uint8_t | m_func |
Function set. More... | |
const uint8_t * | m_offset |
Row offset table. More... | |
uint8_t | m_x |
Cursor position x. More... | |
uint8_t | m_y |
Cursor position y. More... | |
uint8_t | m_tab |
Tab step. More... | |
Static Protected Attributes | |
static const uint16_t | LONG_EXEC_TIME = 1600 |
static const uint16_t | POWER_ON_TIME = 48 |
static const uint16_t | INIT0_TIME = 4500 |
static const uint16_t | INIT1_TIME = 150 |
LCD Device Driver for HD44780 (LCD-II) Dot Matix Liquid Crystal Display Controller/Driver. Supports simple text scroll, cursor, and handling of special characters such as carriage-return, form-feed, back-space, horizontal tab and new-line.
|
protected |
FUNCTION_SET attributes.
|
protected |
Instructions (Table 6, pp. 24), RS(0), RW(0).
|
protected |
|
protected |
|
protected |
|
inline |
|
inlinevirtual |
Turn display backlight off.
Reimplemented from LCD::Device.
|
inlinevirtual |
Turn display backlight on.
Reimplemented from LCD::Device.
|
inlinevirtual |
Start display for text output. Returns true(1) if successful otherwise false(0).
Implements LCD::Device.
|
inlinevirtual |
|
inlinevirtual |
|
inlineinherited |
|
inlinevirtual |
Move cursor to home position(0, 0) .
Reimplemented from LCD::Device.
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtualinherited |
|
inlinevirtual |
Clear display and move cursor to home(0, 0).
Implements LCD::Device.
|
inlinevirtualinherited |
Set display contrast level.
[in] | level | to set. |
Reimplemented in PCD8544< SCE_PIN, DC_PIN, SDIN_PIN, SCLK_PIN >, PCD8544< BOARD::D5, BOARD::D4, BOARD::D3, BOARD::D2 >, and MAX72XX< SCE_PIN, SDIN_PIN, SCLK_PIN >.
|
inlinevirtualinherited |
Display inverse mode.
Reimplemented in PCD8544< SCE_PIN, DC_PIN, SDIN_PIN, SCLK_PIN >, and PCD8544< BOARD::D5, BOARD::D4, BOARD::D3, BOARD::D2 >.
|
inlinevirtualinherited |
Display normal mode.
Reimplemented in PCD8544< SCE_PIN, DC_PIN, SDIN_PIN, SCLK_PIN >, and PCD8544< BOARD::D5, BOARD::D4, BOARD::D3, BOARD::D2 >.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtualinherited |
Stop display and power down. Returns true if successful otherwise false.
Reimplemented in PCD8544< SCE_PIN, DC_PIN, SDIN_PIN, SCLK_PIN >, PCD8544< BOARD::D5, BOARD::D4, BOARD::D3, BOARD::D2 >, and MAX72XX< SCE_PIN, SDIN_PIN, SCLK_PIN >.
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inline |
|
inlinevirtual |
Write character to display. Handles carriage-return, line-feed, backspace, alert, horizontal tab and form-feed. Returns number of characters(1) or zero(0) on error.
[in] | c | character to write. |
|
static |
|
staticprotected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
staticprotected |
const uint8_t HD44780::WIDTH |