#include <lcd44780.h>
|
| Lcd44780 (GpioPin rs, GpioPin e, GpioPin d4, GpioPin d5, GpioPin d6, GpioPin d7, int row, int col) |
|
void | go (int x, int y) |
|
int | printf (const char *fmt,...) |
|
void | clear () |
|
int | getRow () const |
|
int | getCol () const |
|
Class to control an HD44780 compatible LCD
miosix::Lcd44780::Lcd44780 |
( |
GpioPin |
rs, |
|
|
GpioPin |
e, |
|
|
GpioPin |
d4, |
|
|
GpioPin |
d5, |
|
|
GpioPin |
d6, |
|
|
GpioPin |
d7, |
|
|
int |
row, |
|
|
int |
col |
|
) |
| |
Constructor, initializes the display
- Parameters
-
rs | a Gpio class specifying the GPIO connected to the rs signal |
e | a Gpio class specifying the GPIO connected to the e signal |
d4 | a Gpio class specifying the GPIO connected to the d4 signal |
d5 | a Gpio class specifying the GPIO connected to the d5 signal |
d6 | a Gpio class specifying the GPIO connected to the d6 signal |
d7 | a Gpio class specifying the GPIO connected to the d7 signal |
row | number of rows of the display |
col | number of columns of the display |
void miosix::Lcd44780::clear |
( |
| ) |
|
int miosix::Lcd44780::getCol |
( |
| ) |
const |
|
inline |
- Returns
- the number of columns of the display
int miosix::Lcd44780::getRow |
( |
| ) |
const |
|
inline |
- Returns
- the number of rows of the display
void miosix::Lcd44780::go |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Set the display cursor
- Parameters
-
x | a value from 0 to col-1 |
y | a value from 0 to row-1 |
int miosix::Lcd44780::printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
The documentation for this class was generated from the following files: