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

simulate a flickering light like a fire on a PCF8547 pin More...

#include <Noiasca_PCF8574.h>

Inheritance diagram for FlickerPCF8547:
Flicker< PCF8574_IF >

Public Member Functions

 FlickerPCF8547 (PCF8574expander &hardware, uint8_t pin)
 
- Public Member Functions inherited from Flicker< PCF8574_IF >
 Flicker (PCF8574_IF &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 PCF8547 pin

wrapper to flicker a PCF8547 pin. Inherits "style" class and composites PCF8547 pin

Note
the PCF8547 is on/off only - no PWM. The effect will be limited.

Constructor & Destructor Documentation

◆ FlickerPCF8547()

FlickerPCF8547::FlickerPCF8547 ( PCF8574expander hardware,
uint8_t  pin 
)
inline
Parameters
hardwarea reference to your PCF8574 object
pinthe pin on the expander to be used