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

a on/off one FastLED More...

#include <Noiasca_fastled.h>

Inheritance diagram for OnOffFastLED:
OnOff< Fastled_IF >

Public Member Functions

 OnOffFastLED (CFastLED &strip, uint16_t pixel, struct CRGB *leds)
 
- Public Member Functions inherited from OnOff< Fastled_IF >
void off () override
 switch output off More...
 
void on () override
 switch output off More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void setMaxBrightness (uint8_t newBrightness)
 set the maximum brightness More...
 
void toggle ()
 switch between on or off state
 

Detailed Description

a on/off one FastLED

wrapper for an simple on/off on a FastLED. This class provides a simple on() off() interface for a FastLED. There is no effect during runtime. Inherits class pulse and composites FastLED

Constructor & Destructor Documentation

◆ OnOffFastLED()

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