Display text on LCD displays (even on multiple ones). Allow to create windows (frames) on display, and to combine them (split, add, duplicate, scroll). See http://mbed.org/users/hlipka/notebook/lcdwindow/ for more information.
TextLCDBase Class Reference
base class for all (text based) LCD displays More...
#include <lcd.h>
Inherits Window.
Inherited by HD44780LCD8bit, KS0108LCD8bit, SED1335TextLCD, and SPILCDBase.
Public Member Functions | |
virtual void | init ()=0 |
this is the only function added to the Window interface it must be called from the outside, and initializes the display. | |
virtual int | getRows () |
virtual int | getColumns () |
virtual void | writeText (const unsigned int column, const unsigned int row, const char text[])=0 |
write text into the window, at the given position. | |
virtual void | clear ()=0 |
clears the window | |
virtual void | locate (int column, int row) |
set (internal) cursor to a screen column and row | |
virtual void | character (int column, int row, int c)=0 |
writes a character to the specified position must be public because it is used during delegation | |
int | putc (int c) |
Write a character to the LCD, on the position specified by the cursor sets the cursor to the next position, and wraps (from right to left, next line, and from bottom back to top) | |
int | printf (const char *format,...) |
Write a formated string to the LCD, on the position specified by the cursor does wrap around (as specified by putc) |
Detailed Description
base class for all (text based) LCD displays
Definition at line 32 of file lcd.h.
Member Function Documentation
virtual void character | ( | int | column, |
int | row, | ||
int | c | ||
) | [pure virtual, inherited] |
writes a character to the specified position must be public because it is used during delegation
- Parameters:
-
column The horizontal position from the left, indexed from 0 row The vertical position from the top, indexed from 0 c the character
Implemented in DogmLCDSPI, HD44780LCD8bit, KS0108LCD8bit, MultiWindow, SED1335TextLCD, SubWindow, TeeWindow, Terminal, and TextLCDAdapter.
virtual void clear | ( | ) | [pure virtual, inherited] |
clears the window
Implemented in DogmLCDSPI, HD44780LCD8bit, KS0108LCD8bit, MultiWindow, SED1335TextLCD, SubWindow, TeeWindow, Terminal, and TextLCDAdapter.
virtual int getColumns | ( | ) | [virtual] |
virtual int getRows | ( | ) | [virtual] |
virtual void init | ( | ) | [pure virtual] |
this is the only function added to the Window interface it must be called from the outside, and initializes the display.
Implemented in DogmLCDSPI, HD44780LCD8bit, KS0108LCD8bit, and SED1335TextLCD.
void locate | ( | int | column, |
int | row | ||
) | [virtual, inherited] |
set (internal) cursor to a screen column and row
- Parameters:
-
column The horizontal position from the left, indexed from 0 row The vertical position from the top, indexed from 0
Definition at line 26 of file window.cpp.
int printf | ( | const char * | format, |
... | |||
) | [inherited] |
Write a formated string to the LCD, on the position specified by the cursor does wrap around (as specified by putc)
- Parameters:
-
format A printf-style format string, followed by the variables to use in formating the string.
Reimplemented in TextLCDAdapter.
int putc | ( | int | c ) | [inherited] |
Write a character to the LCD, on the position specified by the cursor sets the cursor to the next position, and wraps (from right to left, next line, and from bottom back to top)
- Parameters:
-
c The character to write to the display
Reimplemented in TextLCDAdapter.
virtual void writeText | ( | const unsigned int | column, |
const unsigned int | row, | ||
const char | text[] | ||
) | [pure virtual, inherited] |
write text into the window, at the given position.
this doesn't change the internal cursor position Implementations should check for the length of the text and shorten it accordingly. columns the column where to write row the line where to write text the text to write
Implemented in DogmLCDSPI, HD44780LCD8bit, KS0108LCD8bit, MultiWindow, SED1335TextLCD, SubWindow, TeeWindow, and Terminal.
Generated on Tue Jul 12 2022 20:45:22 by 1.7.2