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

pulse a discrete Arduino pin (monoflop) More...

#include <Noiasca_discrete.h>

Inheritance diagram for PulsePin:
Pulse< DiscretePin >

Public Member Functions

 PulsePin (byte pin, uint8_t active=HIGH)
 
- Public Member Functions inherited from Pulse< DiscretePin >
 Pulse (DiscretePin &obj)
 pulse an output for a period of time and than switches of More...
 
void setOnInterval (uint32_t _onInterval)
 set interval times More...
 
void off () override
 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

pulse a discrete Arduino pin (monoflop)

wrapper to pulse a discrete Arduino pin. Inherits from style class and composites DiscretePin.

Constructor & Destructor Documentation

◆ PulsePin()

PulsePin::PulsePin ( 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.