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

Switch on/off a PCF8547 pin smoothly. More...

#include <Noiasca_PCF8574.h>

Inheritance diagram for SmoothPCF8547:
Smooth< PCF8574_IF >

Public Member Functions

 SmoothPCF8547 (PCF8574expander &hardware, uint8_t pin)
 
- Public Member Functions inherited from Smooth< PCF8574_IF >
 Smooth (PCF8574_IF &obj)
 dim up / down a LED dimms smoothly More...
 
void offForced ()
 force switch off More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void getCurrentBrightness (uint16_t brightness)
 set the current brightness More...
 
void setMaxBrightness (uint16_t newValue)
 set the maximum brightness More...
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

Switch on/off a PCF8547 pin smoothly.

wrapper to smooth 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

◆ SmoothPCF8547()

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