Go to the documentation of this file. 1 #ifndef PULSE_GENERATOR_H
2 #define PULSE_GENERATOR_H
void update()
Updates the state of the output pin.
int value
current state of the output pin (HIGH/LOW)
void reset()
Resets the pulse generator.
int pulseCount
number of pulses that have been generated so far
unsigned long time_t
Referring to the data type unsigned long as time_t.
time_t delayLow
delay of the pulse in LOW state
time_t delayHigh
delay of the pulse in HIGH state
time_t timeLastValueChange
time when the state of the pin changed for the last time
PulseGenerator(time_t delayHigh, time_t delayLow, int outputPin)
Creates an instance of the class.
int outputPin
number of the pin where the pulses are generated