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

a on/off one Neopixel More...

#include <Noiasca_neopixel.h>

Inheritance diagram for OnOffPixel:
OnOff< NeoPixel >

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ OnOffPixel()

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