Arduino-LCD
LCD library for Arduino
|
#include <LCD_Keypad.h>
Public Types | |
enum | { NO_KEY = 0, SELECT_KEY, LEFT_KEY, DOWN_KEY, UP_KEY, RIGHT_KEY } |
Public Member Functions | |
LCD_Keypad () | |
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 Member Functions | |
const uint16_t * | keymap () |
Protected Attributes | |
LCD::PP7W< BOARD::D4, BOARD::D5, BOARD::D6, BOARD::D7, BOARD::D8, BOARD::D9, BOARD::D10 > | m_io |
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 |
Device driver for the LCD_Keypad Shield with HD44780 16x2 display and five keys (SELECT, UP, DOWN, LEFT, and RIGHT).
Definition at line 32 of file LCD_Keypad.h.
|
protectedinherited |
FUNCTION_SET attributes.
anonymous enum |
Enumerator | |
---|---|
NO_KEY | |
SELECT_KEY | |
LEFT_KEY | |
DOWN_KEY | |
UP_KEY | |
RIGHT_KEY |
Definition at line 34 of file LCD_Keypad.h.
|
protectedinherited |
Instructions (Table 6, pp. 24), RS(0), RW(0).
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inline |
Construct shield with device driver and keypad handler.
Definition at line 44 of file LCD_Keypad.h.
|
inlinevirtualinherited |
Turn display backlight off.
Reimplemented from LCD::Device.
|
inlinevirtualinherited |
Turn display backlight on.
Reimplemented from LCD::Device.
|
inlinevirtualinherited |
Start display for text output. Returns true(1) if successful otherwise false(0).
Implements LCD::Device.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Move cursor to home position(0, 0) .
Reimplemented from LCD::Device.
|
inlinevirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
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 >.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
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 >.
|
inlineprotected |
Return key map, program memory vector in descent order.
Definition at line 55 of file LCD_Keypad.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
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. |
|
staticinherited |
|
inherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
protected |
Parallel Port Adapter for shield.
Definition at line 49 of file LCD_Keypad.h.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
staticprotectedinherited |
|
inherited |