DIY QlockTwo
Perfect DIY version of famous QlockTwo Classic with ESP8266
LedControlModule Class Reference

Control the LEDs resp show the words and minute dots. More...

#include <LedControlModule.h>

Public Member Functions

 LedControlModule (NeoTopology< MyPanelLayout > _topo)
 
 ~LedControlModule ()
 
void setup (NeoPixelBusType *_pixelStrip)
 Setup LEDs in NeoPixel library. More...
 
void disableLeds ()
 Show on all LEDs black. More...
 
void showTime (const SimpleTime &simpleTime, const RgbwColor &ledColor=RgbwColor(0, 0, 0, 255))
 Show Time with LEDs. More...
 
void showConfigWifi (const RgbwColor &ledColor=RgbwColor(0, 0, 0, 255))
 Show that clock is in Wifi configuration mode, in german show Word "Funk". More...
 

Private Member Functions

void enableLedWords (const SimpleTime &simpleTime, const RgbwColor &ledColor)
 Enable time words. More...
 
void enableLedWord (const LedWord *ledWord, const RgbwColor &ledColor)
 Enable single LedWord on LED Matrix. More...
 
void enableMinuteDots (int subMinute, const RgbwColor &ledColor)
 Enable minute dots in edges. More...
 

Private Attributes

NeoPixelBusTypepixelStrip
 
NeoTopology< MyPanelLayouttopo
 

Detailed Description

Control the LEDs resp show the words and minute dots.

Definition at line 25 of file LedControlModule.h.

Constructor & Destructor Documentation

◆ LedControlModule()

LedControlModule::LedControlModule ( NeoTopology< MyPanelLayout _topo)

Definition at line 11 of file LedControlModule.cpp.

◆ ~LedControlModule()

LedControlModule::~LedControlModule ( )

Definition at line 12 of file LedControlModule.cpp.

Member Function Documentation

◆ disableLeds()

void LedControlModule::disableLeds ( )

Show on all LEDs black.

Definition at line 144 of file LedControlModule.cpp.

◆ enableLedWord()

void LedControlModule::enableLedWord ( const LedWord ledWord,
const RgbwColor &  ledColor 
)
private

Enable single LedWord on LED Matrix.

Parameters
ledWord
ledColor

Definition at line 123 of file LedControlModule.cpp.

◆ enableLedWords()

void LedControlModule::enableLedWords ( const SimpleTime simpleTime,
const RgbwColor &  ledColor 
)
private

Enable time words.

Parameters
simpleTimeTime to be shown.
ledColorOptional, set LED color.

Definition at line 53 of file LedControlModule.cpp.

◆ enableMinuteDots()

void LedControlModule::enableMinuteDots ( int  subMinute,
const RgbwColor &  ledColor 
)
private

Enable minute dots in edges.

Parameters
subMinuteStarts from 1.
ledColor

Definition at line 134 of file LedControlModule.cpp.

◆ setup()

void LedControlModule::setup ( NeoPixelBusType _pixelStrip)

Setup LEDs in NeoPixel library.

Parameters
_pixelStripNeoPixelBusType object

Definition at line 18 of file LedControlModule.cpp.

◆ showConfigWifi()

void LedControlModule::showConfigWifi ( const RgbwColor &  ledColor = RgbwColor(0, 0, 0, 255))

Show that clock is in Wifi configuration mode, in german show Word "Funk".

Parameters
ledColorOptional, set LED color.

Definition at line 42 of file LedControlModule.cpp.

◆ showTime()

void LedControlModule::showTime ( const SimpleTime simpleTime,
const RgbwColor &  ledColor = RgbwColor(0, 0, 0, 255) 
)

Show Time with LEDs.

Parameters
simpleTimeTime to be shown.
ledColorOptional, set LED color.

Definition at line 29 of file LedControlModule.cpp.

Member Data Documentation

◆ pixelStrip

NeoPixelBusType* LedControlModule::pixelStrip
private

Definition at line 28 of file LedControlModule.h.

◆ topo

NeoTopology<MyPanelLayout> LedControlModule::topo
private

Definition at line 29 of file LedControlModule.h.


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