AnalogSensor Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A generic Analog Sensor class
C#
public class AnalogSensor : Iot.Device.GoPiGo3.Sensors.ISensor
type AnalogSensor = class
interface ISensor
Public Class AnalogSensor
Implements ISensor
- Inheritance
-
AnalogSensor
- Derived
- Implements
Analog |
Constructor for the generic Analog Sensor |
Max |
The maximum ADC value 4095 for GoPiGo3 |
Port |
Get the Grove Port |
Sensor |
Get the sensor name "Analog Sensor" |
Supported |
List the supported Grove ports for the sensor |
Value |
Get the value of the sensor from 0 to MaxAdc |
Value |
Get the read value as a percentage from 0 to 100 |
To |
Get the value as a string |
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |