31 virtual void makeDigitalInput() = 0;
42 virtual void update(
bool newValue) {
43 if (newValue == _digitalValue)
return;
45 _digitalValue = newValue;
48 digitalValueChanged.invoke(args);
Definition: DigitalIn.h:13
Provides a simple C#-style observer pattern event queue.
Definition: Event.h:68
virtual bool digitalValue()
Get the digital value.
Definition: DigitalIn.h:35
DigitalIn()
Definition: DigitalIn.h:24
bool newValue
Definition: DigitalIn.h:15
digital input pin abstract class.
Definition: DigitalIn.h:22
Event< DigitalIn, PinChangedEventArgs > digitalValueChanged
Fires whenever the digital input changes.
Definition: DigitalIn.h:27
#define TREEHOPPER_API
Definition: Treehopper.h:17