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

a on/off Arduino pin More...

#include <Noiasca_discrete.h>

Inheritance diagram for OnOffPin:
OnOff< DiscretePin >

Public Member Functions

 OnOffPin (byte pin, uint8_t active=HIGH)
 
- Public Member Functions inherited from OnOff< DiscretePin >
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 Arduino pin

wrapper for a simple on/off output on a discrete Arduino pin. This class provides a simple on/off interface for a pin. There is no effect during runtime. The class just provides access to a discrete pin with an unified interface. Inherits from style class and composites DiscretePin.

Constructor & Destructor Documentation

◆ OnOffPin()

OnOffPin::OnOffPin ( byte  pin,
uint8_t  active = HIGH 
)
inline
Parameters
pina discrete pin
activeif the pin should be LOW active, set parameter to LOW. default is HIGH.