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

alternate blinking of two pins. More...

#include <Noiasca_discrete.h>

Inheritance diagram for AlternatingPin:
Alternating< DiscreteGroup< 2 > >

Public Member Functions

 AlternatingPin (byte pinA, byte pinB)
 
- Public Member Functions inherited from Alternating< DiscreteGroup< 2 > >
void begin ()
 start hardware More...
 
void setOnInterval (uint16_t onA, uint16_t onB)
 set on/off times More...
 
void setOnInterval (uint16_t onA)
 set on/off times More...
 
void setOnStateChange (Callback funcPtr)
 set the callback function onStateChange More...
 
void on ()
 switch output on More...
 
void off ()
 switch output off More...
 
void toggle ()
 switch between on or off state
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

alternate blinking of two pins.

wrapper to alternate blink two discrete Arduino pins. Inherits "style" class and composites DiscretePin

Constructor & Destructor Documentation

◆ AlternatingPin()

AlternatingPin::AlternatingPin ( byte  pinA,
byte  pinB 
)
inline
Parameters
pinAa discrete pin
pinBa discrete pin