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

Simulate a flickering light like a fire. More...

#include <Noiasca_discrete.h>

Inheritance diagram for FlickerPin:
Flicker< DiscretePin >

Public Member Functions

 FlickerPin (byte pin)
 
- Public Member Functions inherited from Flicker< DiscretePin >
 Flicker (DiscretePin &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.

wrapper to Flicker a discrete pin. Inherits "style" class and composites DiscretePin

Constructor & Destructor Documentation

◆ FlickerPin()

FlickerPin::FlickerPin ( byte  pin)
inline
Parameters
pina discrete pin (PWM). UNO/NANO PWM pins are 3, 5, 6, 9, 10, 11