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

bounce 5 PCF8547 pin between left and right More...

#include <Noiasca_PCF8574.h>

Inheritance diagram for Bounce5PCF8547:
Bounce5< PCF8574_IF >

Public Member Functions

 Bounce5PCF8547 (PCF8574expander &hardware, uint8_t pin)
 
- Public Member Functions inherited from Bounce5< PCF8574_IF >
 Bounce5 (PCF8574_IF &obj)
 Bounce 5 LEDs between left and right. More...
 
void begin ()
 start hardware More...
 
void setOnStateChange (Callback funcPtr)
 set the callback function onStateChange More...
 
void on ()
 switch output on More...
 
void off ()
 switch output off More...
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

bounce 5 PCF8547 pin between left and right

wrapper to bounce a series of 5 PCF8547 pin. Inherits "style" class and composites PCF8547 pin.

Note
the 5 PCF8547 pins must be in sequence (could be changed one day using a PCF8574_IFGroup<5>)

Constructor & Destructor Documentation

◆ Bounce5PCF8547()

Bounce5PCF8547::Bounce5PCF8547 ( PCF8574expander hardware,
uint8_t  pin 
)
inline
Parameters
hardwarea reference to your PCF8574 object
pinthe first of 5 pins on the expander to be used