|
Treehopper C# API
|
Represents an ADS1115 pin More...
Public Types | |
| enum | GainControlSetting { mV_6144, mV_4096, mV_2048, mV_1024, mV_512, mV_256 } |
| Gain settings More... | |
Public Member Functions | |
| Task | MakeAnalogInAsync () |
| Make the pin an analog input. More... | |
Public Attributes | |
| double | AnalogValue => analogValueFromAdc(AdcValue) |
| The analog value (from 0-1) of the ADC pin More... | |
| double | AnalogVoltage => analogVoltageFromAdc(AdcValue) |
| The analog voltage of the pin More... | |
Protected Attributes | |
| IAdcPeripheral | parent |
Properties | |
| GainControlSetting | GainControl [get, set] |
| Gets or sets the gain used by this pin More... | |
| double | ReferenceVoltage [get, set] |
| The reference voltage used for calculating analog voltage More... | |
| int | AdcValueChangedThreshold [get, set] |
| The amount the ADC value should change before triggering an event More... | |
| int | AdcValue [get, set] |
| The raw ADC value More... | |
| double | AnalogValueChangedThreshold [get, set] |
| The amount that the analog value (0-1) should change before triggering an event More... | |
| double | AnalogVoltageChangedThreshold [get, set] |
| The change in voltage required to trigger an event More... | |
Events | |
| OnAdcValueChanged | AdcValueChanged |
| Fires whenever the ADC value changes by the specified threshold More... | |
| OnAnalogValueChanged | AnalogValueChanged |
| Fires whenever the analog value changes by the specified threshold More... | |
| OnAnalogVoltageChanged | AnalogVoltageChanged |
| Fires whenever the analog voltage changes by the specified threshold More... | |
| PropertyChangedEventHandler | PropertyChanged |
Represents an ADS1115 pin
|
strong |
|
inherited |
|
protectedinherited |
|
inherited |
The analog value (from 0-1) of the ADC pin
|
inherited |
The analog voltage of the pin
|
getset |
Gets or sets the gain used by this pin
|
getsetinherited |
The reference voltage used for calculating analog voltage
|
getsetinherited |
The amount the ADC value should change before triggering an event
|
getsetinherited |
The raw ADC value
|
getsetinherited |
The amount that the analog value (0-1) should change before triggering an event
|
getsetinherited |
The change in voltage required to trigger an event
|
inherited |
Fires whenever the ADC value changes by the specified threshold
|
inherited |
Fires whenever the analog value changes by the specified threshold
|
inherited |
Fires whenever the analog voltage changes by the specified threshold
|
inherited |