This library can be used to control a low-cost Adafruit 358 TFT display. It has basic functionality but is a starting point for others trying to control this type of display using the FRDM-K64F.

Embed: (wiki syntax)

« Back to documentation index

TextDisplay Class Reference

TextDisplay Class Reference

TextDisplay interface. More...

#include <TextDisplay.h>

Inherited by GraphicsDisplay.

Public Member Functions

 TextDisplay (const char *name=NULL)
 Create a TextDisplay interface.
virtual void character (int column, int row, int c)=0
 Output a character at the given position.
virtual int rows ()=0
 Return number if rows on TextDisplay.
virtual int columns ()=0
 Return number if columns on TextDisplay.
virtual bool claim (FILE *stream)
 Redirect output from a stream (stoud, sterr) to display.
virtual void cls ()
 Clear screen.

Detailed Description

TextDisplay interface.

Definition at line 24 of file TextDisplay.h.


Constructor & Destructor Documentation

TextDisplay ( const char *  name = NULL )

Create a TextDisplay interface.

Parameters:
nameThe name used in the path to access the strean through the filesystem

Definition at line 8 of file TextDisplay.cpp.


Member Function Documentation

virtual void character ( int  column,
int  row,
int  c 
) [pure virtual]

Output a character at the given position.

Parameters:
columncolumn where charater must be written
rowwhere character must be written
cthe character to be written to the TextDisplay
bool claim ( FILE *  stream ) [virtual]

Redirect output from a stream (stoud, sterr) to display.

Parameters:
streamstream that shall be redirected to the TextDisplay

Definition at line 65 of file TextDisplay.cpp.

void cls ( void   ) [virtual]

Clear screen.

Definition at line 41 of file TextDisplay.cpp.

virtual int columns (  ) [pure virtual]

Return number if columns on TextDisplay.

Returns:
number of rows
virtual int rows (  ) [pure virtual]

Return number if rows on TextDisplay.

Returns:
number of rows