173 void makePushPullOutput()
override;
176 void makeDigitalInput()
override;
179 void makeAnalogInput();
184 void digitalValue(
bool val)
override;
187 bool digitalValue()
override;
201 double analogValue();
204 double analogVoltage();
219 void SendCommand(uint8_t *data,
size_t length);
225 double _analogVoltage;
227 virtual void updateValue(uint8_t high, uint8_t low);
229 virtual void writeOutputValue()
override;
Provides a simple C#-style observer pattern event queue.
Definition: Event.h:68
AdcReferenceLevel
Definition: Pin.h:17
The core class for communicating with Treehopper USB boards.
Definition: TreehopperUsb.h:59
Event< Pin, AnalogValueChangedEventArgs > analogValueChanged
Fires when the analog value (0.0-1.0) changes.
Definition: Pin.h:210
digital input pin abstract class.
Definition: DigitalIn.h:22
Event< Pin, AdcValueChangedEventArgs > adcValueChanged
Fires when the ADC value (0-4091) changes.
Definition: Pin.h:216
Definition: SpiChipSelectPin.h:7
PinMode
Definition: Pin.h:26
#define TREEHOPPER_API
Definition: Treehopper.h:17
Event< Pin, AnalogVoltageChangedEventArgs > analogVoltageChanged
Fires when the analog voltage (0.0-3.6) changes.
Definition: Pin.h:213
Built-in I/O pins.
Definition: Pin.h:159