GoPiGo.GetGrovePwmFrequency(GrovePort, UInt32) Method

Definition

Set grove PWM frequency

public void GetGrovePwmFrequency (Iot.Device.GoPiGo3.Models.GrovePort port, uint freq = 24000);
member this.GetGrovePwmFrequency : Iot.Device.GoPiGo3.Models.GrovePort * uint32 -> unit
Public Sub GetGrovePwmFrequency (port As GrovePort, Optional freq As UInteger = 24000)

Parameters

port
GrovePort

The grove port(s).GROVE_1 and / or GROVE_2.

freq
UInt32

The PWM frequency.Range is 3 through 48000Hz.Default is 24000(24kHz). Limit to 48000, which is the highest frequency supported for 0.1% resolution.

Applies to