DigitalOutput 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.
DigitalOutput class to control a digital output
public class DigitalOutput : Iot.Device.GoPiGo3.Sensors.ISensor
type DigitalOutput = class
interface ISensor
Public Class DigitalOutput
Implements ISensor
- Inheritance
-
DigitalOutput
- Derived
- Implements
Constructors
DigitalOutput(GoPiGo, GrovePort) |
Create a new instance of DigitalOutput. |
Properties
Port |
Grove port |
SensorName |
Get the sensor name "Digital Output" |
SupportedPorts |
List the supported Grove ports for the sensor |
Value |
Get/set the output. 0 for low, 1 for high. Anything else than 0 will set the high state |
Methods
ToString() |
Get "High" when output is set to high, "Low" if set to low state |
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