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

heart beat a PCF8547 pin. More...

#include <Noiasca_PCF8574.h>

Inheritance diagram for HeartbeatPCF8547:
Heartbeat< PCF8574_IF >

Public Member Functions

 HeartbeatPCF8547 (PCF8574expander &hardware, uint8_t pin)
 
- Public Member Functions inherited from Heartbeat< PCF8574_IF >
 Heartbeat (PCF8574_IF &obj)
 heart beat LED More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void setCurrentBrightness (uint8_t brightness)
 set the current brightness More...
 
void setMaxBrightness (uint8_t maxBrightness)
 set the maximum brightness More...
 
void setMinBrightness (uint8_t minBrightness)
 set the minium brightness More...
 
void on () override
 switch on
 
void off () override
 switch off
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

heart beat a PCF8547 pin.

wrapper to heartbeat a PCF8547 pin. Inherits class heartbeat and composites PCF8547 pin

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

Constructor & Destructor Documentation

◆ HeartbeatPCF8547()

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