-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/pwm freq #350
Feature/pwm freq #350
Conversation
Retargeting to develop |
@@ -168,9 +168,9 @@ public bool IsOn | |||
Voltage blueLedForwardVoltage, | |||
CommonType commonType = CommonType.CommonCathode) : | |||
this( | |||
device.CreatePwmPort(redPwmPin), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of defining DefaultFrequency in every peripheral driver could we just create a CreatePwmPort overload that just takes a single param?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see you have different values for each peripheral .... that makes sense
@@ -41,11 +53,11 @@ public PiezoSpeaker(IPwmPort port) | |||
/// </summary> | |||
/// <param name="frequency">The frequency in hertz of the tone to be played</param> | |||
/// <param name="duration">How long the note is played in milliseconds, if durration is 0, tone plays indefinitely</param> | |||
public async Task PlayTone(float frequency, int duration = 0) | |||
public async Task PlayTone(Frequency frequency, int duration = 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should unitize PiezoSpeaker as well - I'll file an issue :)
No description provided.