Arduino Tinker Library
 All Classes Functions Variables
Public Types | Public Member Functions | List of all members
Tinker::CircularDisplayConcept Class Reference

Concept for a circular display. More...

#include <CircularDisplayConcept.h>

Public Types

typedef Vect3d< uint8_t > color_type
 

Public Member Functions

void init ()
 Initialize circular display.
 
void show ()
 Shows current colors on display.
 
void reset ()
 Resets colors.
 
void setBrightness (uint8_t b)
 Sets brightness of the display. More...
 
void setColor (color_type color, bool blend=false)
 Sets color on all circular display. More...
 
void setColor (uint16_t idx, color_type color, bool blend=false)
 Sets color for a circular elements. More...
 
void setColorFp (float rad, color_type color, float sigma, bool blend=false)
 Sets color on ciruclar display. More...
 

Detailed Description

Concept for a circular display.

A class with this signature could be used as a template parameter to any class which display data on a circular indicator

See Also
Vect2dCircularDisplay
Author
Nicola Pezzotti

Member Function Documentation

void Tinker::CircularDisplayConcept::setBrightness ( uint8_t  b)
inline

Sets brightness of the display.

Parameters
bBrightness
void Tinker::CircularDisplayConcept::setColor ( color_type  color,
bool  blend = false 
)
inline

Sets color on all circular display.

Parameters
colorcolor to set
blendcolor with the existing ones
void Tinker::CircularDisplayConcept::setColor ( uint16_t  idx,
color_type  color,
bool  blend = false 
)
inline

Sets color for a circular elements.

Parameters
idxindex of circular element
colorcolor to set
blendcolor with the existing ones
void Tinker::CircularDisplayConcept::setColorFp ( float  rad,
color_type  color,
float  sigma,
bool  blend = false 
)
inline

Sets color on ciruclar display.

Display color with a gaussian distribution

Parameters
radmean value in radians of the gaussian distribution
sigmaof the gaussian distribution
colorcolor to set
blendcolor with the existing ones

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