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

heart beat a Neopixel. More...

#include <Noiasca_neopixel.h>

Inheritance diagram for HeartbeatPixel:
Heartbeat< NeoPixel >

Public Member Functions

 HeartbeatPixel (Adafruit_NeoPixel &strip, uint16_t pixel)
 
- Public Member Functions inherited from Heartbeat< NeoPixel >
 Heartbeat (NeoPixel &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 Neopixel.

wrapper to heartbeat a Neopixel. Inherits class heartbeat and composites NeoPixel

Constructor & Destructor Documentation

◆ HeartbeatPixel()

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