Buzzer 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
Buzzer(GoPiGo, GrovePort) |
Constructor for the Buzzer class |
Buzzer(GoPiGo, GrovePort, Byte) |
Creates an instance of the Buzzer class |
Buzzer(GoPiGo, GrovePort)
Constructor for the Buzzer class
public Buzzer (Iot.Device.GoPiGo3.GoPiGo goPiGo, Iot.Device.GoPiGo3.Models.GrovePort port);
new Iot.Device.GoPiGo3.Sensors.Buzzer : Iot.Device.GoPiGo3.GoPiGo * Iot.Device.GoPiGo3.Models.GrovePort -> Iot.Device.GoPiGo3.Sensors.Buzzer
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
Buzzer(GoPiGo, GrovePort, Byte)
Creates an instance of the Buzzer class
public Buzzer (Iot.Device.GoPiGo3.GoPiGo goPiGo, Iot.Device.GoPiGo3.Models.GrovePort port, byte duty);
new Iot.Device.GoPiGo3.Sensors.Buzzer : Iot.Device.GoPiGo3.GoPiGo * Iot.Device.GoPiGo3.Models.GrovePort * byte -> Iot.Device.GoPiGo3.Sensors.Buzzer
Public Sub New (goPiGo As GoPiGo, port As GrovePort, duty As Byte)
Parameters
- goPiGo
- GoPiGo
The GoPiGo3 class
- port
- GrovePort
The Grove Port, need to be in the list of SupportedPorts
- duty
- Byte
The PWM duty to use to generate the sound from 0 to 100
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