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

bounce 5 FastLED pixels between left and right More...

#include <Noiasca_fastled.h>

Inheritance diagram for Bounce5FastLED:
Bounce5< Fastled_IF >

Public Member Functions

 Bounce5FastLED (CFastLED &strip, uint16_t pixel, struct CRGB *leds)
 
- Public Member Functions inherited from Bounce5< Fastled_IF >
 Bounce5 (Fastled_IF &obj)
 Bounce 5 LEDs between left and right. More...
 
void begin ()
 start hardware 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

bounce 5 FastLED pixels between left and right

wrapper to bounce a series of 5 FastLED pixels. Inherits "style" class and composites FastLED

Note
the 5 FastLED pixels must be in sequence (could be changed one day using another fastLED_IFGroup)

Constructor & Destructor Documentation

◆ Bounce5FastLED()

Bounce5FastLED::Bounce5FastLED ( CFastLED &  strip,
uint16_t  pixel,
struct CRGB *  leds 
)
inline
Parameters
stripa reference to your strip object
pixelthe first of 5 pixels on the strip to be used
*ledsa pointer to your leds array