DigitalInput Class
Definition
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.
DigitalInput class is a generic class to support digital input sensors
public class DigitalInput : Iot.Device.GoPiGo3.Sensors.ISensor
type DigitalInput = class
interface ISensor
Public Class DigitalInput
Implements ISensor
- Inheritance
-
DigitalInput
- Derived
- Implements
Constructors
DigitalInput(GoPiGo, GrovePort) |
Creates an instance of DigitalInput |
Properties
Port |
Grove port |
SensorName |
Get the sensor name "Digital Input" |
SupportedPorts |
List the supported Grove ports for the sensor |
Value |
Get the state of the digital pin |
Methods
ToString() |
Get "High" when reading high, "Low" otherwise |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for