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

simulate a flickering light like a fire on a Neopixel More...

#include <Noiasca_neopixel.h>

Inheritance diagram for FlickerPixel:
Flicker< NeoPixel >

Public Member Functions

 FlickerPixel (Adafruit_NeoPixel &strip, uint16_t pixel)
 
- Public Member Functions inherited from Flicker< NeoPixel >
 Flicker (NeoPixel &obj)
 simulate a flickering light like a fire More...
 
void off () override
 switch off
 
void setMaxBrightness (uint8_t _maxBrightness)
 set the maximum brightness More...
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

simulate a flickering light like a fire on a Neopixel

wrapper to flicker a Neopixel. Inherits "style" class and composites NeoPixel

Constructor & Destructor Documentation

◆ FlickerPixel()

FlickerPixel::FlickerPixel ( Adafruit_NeoPixel &  strip,
uint16_t  pixel 
)
inline
Parameters
stripa reference to your strip object
pixelthe pixel on the strip to be used