Miosix  2.01
miosix::Lcd44780 Class Reference

#include <lcd44780.h>

Public Member Functions

 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
 

Detailed Description

Class to control an HD44780 compatible LCD

Constructor & Destructor Documentation

miosix::Lcd44780::Lcd44780 ( GpioPin  rs,
GpioPin  e,
GpioPin  d4,
GpioPin  d5,
GpioPin  d6,
GpioPin  d7,
int  row,
int  col 
)

Constructor, initializes the display

Parameters
rsa Gpio class specifying the GPIO connected to the rs signal
ea Gpio class specifying the GPIO connected to the e signal
d4a Gpio class specifying the GPIO connected to the d4 signal
d5a Gpio class specifying the GPIO connected to the d5 signal
d6a Gpio class specifying the GPIO connected to the d6 signal
d7a Gpio class specifying the GPIO connected to the d7 signal
rownumber of rows of the display
colnumber of columns of the display

Member Function Documentation

void miosix::Lcd44780::clear ( )

Clear the screen

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
xa value from 0 to col-1
ya value from 0 to row-1
int miosix::Lcd44780::printf ( const char *  fmt,
  ... 
)

Print to the display


The documentation for this class was generated from the following files: