Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
NumericDriver Class Reference

#include <numericdriver.h>

Collaboration diagram for NumericDriver:
Collaboration graph

Public Member Functions

 NumericDriver ()
 
void setText (char const *newText, bool alignRight=false, uint8_t drawDot=255, bool doBlink=false, uint8_t *newBlinkMask=NULL, bool blinkImmediately=false, bool shouldBlinkFast=false, int scrollPos=0, uint8_t *blinkAddition=NULL, bool justReplaceBottomLayer=false)
 
void setNextTransitionDirection (int8_t thisDirection)
 
void displayPopup (char const *newText, int8_t numFlashes=3, bool alignRight=false, uint8_t drawDot=255, int blinkSpeed=1)
 
void freezeWithError (char const *text)
 
void cancelPopup ()
 
void displayError (int error)
 
void setTextAsNumber (int16_t number, uint8_t drawDot=255, bool doBlink=false)
 
void setTextAsSlot (int16_t currentSlot, int8_t currentSubSlot, bool currentSlotExists, bool doBlink=false, int blinkPos=-1, bool blinkImmediately=false)
 
void timerRoutine ()
 
void removeTopLayer ()
 
NumericLayerScrollingTextsetScrollingText (char const *newText, int startAtPos=0, int initialDelay=600)
 
int getEncodedPosFromLeft (int textPos, char const *text, bool *andAHalf)
 
void render ()
 
void displayLoadingAnimation (bool delayed=false, bool transparent=false)
 
bool isLayerCurrentlyOnTop (NumericLayer *layer)
 

Public Attributes

bool popupActive
 

Constructor & Destructor Documentation

◆ NumericDriver()

NumericDriver::NumericDriver ( )

Member Function Documentation

◆ cancelPopup()

void NumericDriver::cancelPopup ( )

◆ displayError()

void NumericDriver::displayError ( int  error)

◆ displayLoadingAnimation()

void NumericDriver::displayLoadingAnimation ( bool  delayed = false,
bool  transparent = false 
)

◆ displayPopup()

void NumericDriver::displayPopup ( char const *  newText,
int8_t  numFlashes = 3,
bool  alignRight = false,
uint8_t  drawDot = 255,
int  blinkSpeed = 1 
)

◆ freezeWithError()

void NumericDriver::freezeWithError ( char const *  text)

◆ getEncodedPosFromLeft()

int NumericDriver::getEncodedPosFromLeft ( int  textPos,
char const *  text,
bool *  andAHalf 
)

◆ isLayerCurrentlyOnTop()

bool NumericDriver::isLayerCurrentlyOnTop ( NumericLayer layer)

◆ removeTopLayer()

void NumericDriver::removeTopLayer ( )

◆ render()

void NumericDriver::render ( )

◆ setNextTransitionDirection()

void NumericDriver::setNextTransitionDirection ( int8_t  thisDirection)

◆ setScrollingText()

NumericLayerScrollingText * NumericDriver::setScrollingText ( char const *  newText,
int  startAtPos = 0,
int  initialDelay = 600 
)

◆ setText()

void NumericDriver::setText ( char const *  newText,
bool  alignRight = false,
uint8_t  drawDot = 255,
bool  doBlink = false,
uint8_t *  newBlinkMask = NULL,
bool  blinkImmediately = false,
bool  shouldBlinkFast = false,
int  scrollPos = 0,
uint8_t *  blinkAddition = NULL,
bool  justReplaceBottomLayer = false 
)

◆ setTextAsNumber()

void NumericDriver::setTextAsNumber ( int16_t  number,
uint8_t  drawDot = 255,
bool  doBlink = false 
)

◆ setTextAsSlot()

void NumericDriver::setTextAsSlot ( int16_t  currentSlot,
int8_t  currentSubSlot,
bool  currentSlotExists,
bool  doBlink = false,
int  blinkPos = -1,
bool  blinkImmediately = false 
)

◆ timerRoutine()

void NumericDriver::timerRoutine ( )

Member Data Documentation

◆ popupActive

bool NumericDriver::popupActive

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