Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
Public Member Functions | List of all members
AlternatingFastLED Class Reference

alternate blinking of two FastLED pixels. More...

#include <Noiasca_fastled.h>

Inheritance diagram for AlternatingFastLED:
Alternating< Fastled_IF >

Public Member Functions

 AlternatingFastLED (CFastLED &strip, uint16_t pixel, struct CRGB *leds)
 
- Public Member Functions inherited from Alternating< Fastled_IF >
void begin ()
 start hardware More...
 
void setOnInterval (uint16_t onA, uint16_t onB)
 set on/off times More...
 
void setOnInterval (uint16_t onA)
 set on/off times More...
 
void setOnStateChange (Callback funcPtr)
 set the callback function onStateChange More...
 
void on ()
 switch output on More...
 
void off ()
 switch output off More...
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

alternate blinking of two FastLED pixels.

wrapper to alternate two FastLED pixel. Inherits "style" class and composites FastLED_IF.

Constructor & Destructor Documentation

◆ AlternatingFastLED()

AlternatingFastLED::AlternatingFastLED ( CFastLED &  strip,
uint16_t  pixel,
struct CRGB *  leds 
)
inline
Parameters
stripa reference to your strip object
pixelthe first of two pixels on the strip to be used (also the next pixel will be used!)
*ledsa pointer to your leds array