modm API documentation
|
#include <modm/driver/display/hd44780_base.hpp>
Public Types | |
enum | LineMode { OneLine = Set1LineDisplay, TwoLines = Set2LineDisplay } |
Static Public Member Functions | |
static void | initialize (LineMode lineMode) |
static bool | clear () |
static bool | resetCursor () |
static bool | writeAddress (uint8_t address) |
static bool | writeCommand (uint8_t command) |
static bool | writeRAM (uint8_t data) |
static bool | readAddress (uint8_t &address) |
static bool | readRAM (uint8_t &data) |
static bool | isBusy () |
static bool | writeCGRAM (uint8_t character, const uint8_t *cg) |
Static Protected Member Functions | |
static void | write (uint8_t data) |
unconditionally write data to the controller | |
static uint8_t | read () |
unconditionally read data from the controller | |
Base driver for one HD447800 compatible display driver.
An HD44780 Character LCD is a de-facto industry standard liquid crystal display (LCD) display device. They can drive up to 80 characters with one driver, and more with additional ones, selected by additional Enable lines.
This driver can handle 4-Bit or 8-Bit bus mode with read back. For either data bus width the class will internally choose the right bus implementation, so the interface remains exactly the same. You also need to connect all the control pins (RW, RS, E).
DATA | A 8bit or 4bit Port. |
RW | Read/Write-Select Pin |
RS | Command/Data-Select Pin |
E | Enable Pin |
|
static |
Clear the display of all Data
true
if operation successful, false
if controller is busy
|
static |
initialize the display to the current bus and line mode
|
inlinestatic |
true
if controller is busy with an internal operation, else false
|
static |
Read the cursor position
true
if operation successful, false
if controller is busy
|
inlinestatic |
Read the character at the current cursor position
true
if operation successful, false
if controller is busy
|
static |
Reset the cursor to (0,0) home position
true
if operation successful, false
if controller is busy
|
inlinestatic |
Set the address of the cursor
true
if operation successful, false
if controller is busy
|
inlinestatic |
Write a command to the controller
true
if operation successful, false
if controller is busy
|
inlinestatic |
Write data to the data RAM at the current cursor position
true
if operation successful, false
if controller is busy