Relay Constructors
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.
Overloads
Relay(GoPiGo, GrovePort) |
Creates a new instance of Relay. |
Relay(GoPiGo, GrovePort, Boolean) |
Creates a new instance of Relay. |
Relay(GoPiGo, GrovePort)
Creates a new instance of Relay.
public Relay (Iot.Device.GoPiGo3.GoPiGo goPiGo, Iot.Device.GoPiGo3.Models.GrovePort port);
new Iot.Device.GoPiGo3.Sensors.Relay : Iot.Device.GoPiGo3.GoPiGo * Iot.Device.GoPiGo3.Models.GrovePort -> Iot.Device.GoPiGo3.Sensors.Relay
Public Sub New (goPiGo As GoPiGo, port As GrovePort)
Parameters
- goPiGo
- GoPiGo
The GoPiGo3 class
- port
- GrovePort
The Grove Port, need to be in the list of SupportedPorts
Applies to
Relay(GoPiGo, GrovePort, Boolean)
Creates a new instance of Relay.
public Relay (Iot.Device.GoPiGo3.GoPiGo goPiGo, Iot.Device.GoPiGo3.Models.GrovePort port, bool inverted);
new Iot.Device.GoPiGo3.Sensors.Relay : Iot.Device.GoPiGo3.GoPiGo * Iot.Device.GoPiGo3.Models.GrovePort * bool -> Iot.Device.GoPiGo3.Sensors.Relay
Public Sub New (goPiGo As GoPiGo, port As GrovePort, inverted As Boolean)
Parameters
- goPiGo
- GoPiGo
The GoPiGo3 class
- port
- GrovePort
The Grove Port, need to be in the list of SupportedPorts
- inverted
- Boolean
If inverted, the relay is on when output is low and off when output is high
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