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

Imitiate fluorescent lamp with a PCF8547 pin. More...

#include <Noiasca_PCF8574.h>

Inheritance diagram for FluorescentPCF8547:
Fluorescent< PCF8574_IF >

Public Member Functions

 FluorescentPCF8547 (PCF8574expander &hardware, uint8_t pin)
 
- Public Member Functions inherited from Fluorescent< PCF8574_IF >
 Fluorescent (PCF8574_IF &obj)
 simulate a fluroescent lamp or flurescent tube More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void on () override
 switch on
 
void off () override
 switch off
 
void toggle () override
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

Imitiate fluorescent lamp with a PCF8547 pin.

wrapper for a Fluorescent imitating 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

◆ FluorescentPCF8547()

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