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

alternate blinking of two PCF8547 pins More...

#include <Noiasca_PCF8574.h>

Inheritance diagram for AlternatingPCF8574:
Alternating< PCF8574_IF >

Public Member Functions

 AlternatingPCF8574 (PCF8574expander &hardware, uint8_t pin)
 
- Public Member Functions inherited from Alternating< PCF8574_IF >
void begin ()
 start hardware More...
 
void setOnInterval (uint16_t onA, uint16_t onB)
 set on/off times More...
 
void setOnInterval (uint16_t onA)
 set on/off times 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

alternate blinking of two PCF8547 pins

wrapper to alternate two PCF8547 pin. Inherits "style" class and composites PCF8547 pin.

Constructor & Destructor Documentation

◆ AlternatingPCF8574()

AlternatingPCF8574::AlternatingPCF8574 ( PCF8574expander hardware,
uint8_t  pin 
)
inline
Parameters
hardwarea reference to your PCF8574 object
pinthe first of two consecutive pixels on the expander to be used (also the next pixel will be used!)