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

a on/off one PCF8547 pin More...

#include <Noiasca_PCF8574.h>

Inheritance diagram for OnOffPCF8547:
OnOff< PCF8574_IF >

Public Member Functions

 OnOffPCF8547 (PCF8574expander &hardware, uint8_t pin)
 
- Public Member Functions inherited from OnOff< PCF8574_IF >
void off () override
 switch output off More...
 
void on () override
 switch output off More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void setMaxBrightness (uint8_t newBrightness)
 set the maximum brightness More...
 
void toggle ()
 switch between on or off state
 

Detailed Description

a on/off one PCF8547 pin

wrapper for an simple on/off on a PCF8547 pin. This class provides a simple on() off() interface for a PCF8547 pin. There is no effect during runtime. Inherits class pulse and composites PCF8547 pin

Constructor & Destructor Documentation

◆ OnOffPCF8547()

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