PwmOutput 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.
PwmOutput class to support hardware PWM on PWM hardware enabled pins
public class PwmOutput
type PwmOutput = class
Public Class PwmOutput
- Inheritance
-
PwmOutput
- Derived
Constructors
PwmOutput(GrovePi, GrovePort) |
PwmOutput constructor |
Properties
Duty |
Get/set the PWM duty to use to generate the sound from 0 to 100 |
SensorName |
Get the name PWM Output |
SupportedPorts |
Only Digital PWM are supported |
Value |
For GrovePi, Value is same as Duty |
ValueAsPercent |
Get the duty cycle as a persentage |
Methods
Start() |
Starts the PWM duty |
Stop() |
Stop the PWM duty |
ToString() |
Returns the duty in a formated string |
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