AceSegment  0.3.0
An adjustable, configurable, and extensible framework for rendering seven segment LED displays.
Public Member Functions | List of all members
ace_segment::Styler Class Referenceabstract

Interface for classes which apply a style to the given bit pattern and brightness. More...

#include <Styler.h>

Inheritance diagram for ace_segment::Styler:
Inheritance graph
[legend]

Public Member Functions

 Styler ()
 Constructor. More...
 
virtual ~Styler ()
 Destructor. More...
 
virtual void calcForFrame ()=0
 Called once per frame to update the internal variables of the object. More...
 
virtual void apply (uint8_t *pattern, uint8_t *brightness)=0
 Changes updates the brightness for current frame. More...
 
virtual bool requiresBrightness ()=0
 Requires driver support for brightness control if true. More...
 

Detailed Description

Interface for classes which apply a style to the given bit pattern and brightness.

Definition at line 34 of file Styler.h.

Constructor & Destructor Documentation

◆ Styler()

ace_segment::Styler::Styler ( )
inline

Constructor.

Definition at line 37 of file Styler.h.

◆ ~Styler()

virtual ace_segment::Styler::~Styler ( )
inlinevirtual

Destructor.

Definition at line 40 of file Styler.h.

Member Function Documentation

◆ apply()

virtual void ace_segment::Styler::apply ( uint8_t *  pattern,
uint8_t *  brightness 
)
pure virtual

Changes updates the brightness for current frame.

Implemented in ace_segment::PulseStyler, and ace_segment::BlinkStyler.

◆ calcForFrame()

virtual void ace_segment::Styler::calcForFrame ( )
pure virtual

Called once per frame to update the internal variables of the object.

Implemented in ace_segment::PulseStyler, and ace_segment::BlinkStyler.

◆ requiresBrightness()

virtual bool ace_segment::Styler::requiresBrightness ( )
pure virtual

Requires driver support for brightness control if true.

Implemented in ace_segment::PulseStyler, and ace_segment::BlinkStyler.


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