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

heart beat a FastLED. More...

#include <Noiasca_fastled.h>

Inheritance diagram for HeartbeatFastLED:
Heartbeat< Fastled_IF >

Public Member Functions

 HeartbeatFastLED (CFastLED &strip, uint16_t pixel, struct CRGB *leds)
 
- Public Member Functions inherited from Heartbeat< Fastled_IF >
 Heartbeat (Fastled_IF &obj)
 heart beat LED More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void setCurrentBrightness (uint8_t brightness)
 set the current brightness More...
 
void setMaxBrightness (uint8_t maxBrightness)
 set the maximum brightness More...
 
void setMinBrightness (uint8_t minBrightness)
 set the minium brightness More...
 
void on () override
 switch on
 
void off () override
 switch off
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

heart beat a FastLED.

wrapper to heartbeat a FastLED. Inherits class heartbeat and composites FastLED

Constructor & Destructor Documentation

◆ HeartbeatFastLED()

HeartbeatFastLED::HeartbeatFastLED ( 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