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

bounce 5 LEDs between left and right More...

#include <Noiasca_discrete.h>

Inheritance diagram for Bounce5Pin:
Bounce5< DiscreteGroup< 5 > >

Public Member Functions

 Bounce5Pin (byte pinA, byte pinB, byte pinC, byte pinD, byte pinE)
 
- Public Member Functions inherited from Bounce5< DiscreteGroup< 5 > >
 Bounce5 (DiscreteGroup< 5 > &obj)
 Bounce 5 LEDs between left and right. More...
 
void begin ()
 start hardware 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

bounce 5 LEDs between left and right

wrapper to bounce 5 a discrete Arduino pins in the stile of KITT/Larson scanner. Inherits "style" class and composites DiscretePin

Constructor & Destructor Documentation

◆ Bounce5Pin()

Bounce5Pin::Bounce5Pin ( byte  pinA,
byte  pinB,
byte  pinC,
byte  pinD,
byte  pinE 
)
inline
Parameters
pinAfirst of 5 discrete pin
pinBsecond of 5 discrete pin
pinCthird of 5 discrete pin
pinDfourth of 5 discrete pin
pinEfifth of 5 discrete pin