Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otDisplay Class Reference
[DISPLAY - Display a number as 7 segment or nixie likeDISPLAY - Display a number as 7 segment or nixie like]

Class for display a number as 7 segment or nixie like.

#include <otDisplay.h>


Public Types

enum  DisplayType { D_7SEGMENT = 0x01, D_NIXIE = 0x02 }

Public Member Functions

 otDisplay ()
bool init (U8 displayType, U8 displaySize, const char *specifier, otGraphics *lcdInt)
void display (F32 val, S16 xp, S16 yp)
void display (S32 val, S16 xp, S16 yp)
void display (const char *val, S16 xp, S16 yp)
U32 verSize ()
U32 horSize ()
void close ()


Member Enumeration Documentation

enum otDisplay::DisplayType
 

Enumeration values:
D_7SEGMENT  Seven segment display.
D_NIXIE  Nixie display.


Constructor & Destructor Documentation

otDisplay.otDisplay  ) 
 

Create the class


Member Function Documentation

void otDisplay.close  ) 
 

Free allocate dmemory of the class

void otDisplay.display const char *  val,
S16  xp,
S16  yp
 

Display a numeric string. String can contains digit,space,dot,minus

Parameters:
val Number to display
xp Start horizontal location on display
yp Start vertical location on display

void otDisplay.display S32  val,
S16  xp,
S16  yp
 

Display an integer number

Parameters:
val Number to display
xp Start horizontal location on display
yp Start vertical location on display

void otDisplay.display F32  val,
S16  xp,
S16  yp
 

Display a floating point number

Parameters:
val Number to display
xp Start horizontal location on display
yp Start vertical location on display

U32 otDisplay.horSize  ) 
 

Horizontal pixels

Returns:
Number of horizontal pixels of the pixmap

bool otDisplay.init U8  displayType,
U8  displaySize,
const char *  specifier,
otGraphics lcdInt
 

Init the class

Parameters:
displayType Specify D_7SEGMENT or D_NIXIE
displaySize Size of character, available from 0 to 3
specifier printf specifier used to convert from a number to a string. Use 05d to show 00000 or 7.1f to show ____0.0
lcdInt Class used to write on LCD
Returns:
true on success or false for a memory allocation error or for the absence of at last one character define

U32 otDisplay.verSize  ) 
 

Vertical pixels

Returns:
Number of vertical pixels of the pixmap


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0