We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d36877 commit b88052eCopy full SHA for b88052e
hal/api/PwmOut.h
@@ -67,6 +67,14 @@ class PwmOut {
67
core_util_critical_section_exit();
68
}
69
70
+ /** To Free up pwm pin.
71
+ */
72
+ ~PwmOut() {
73
+ core_util_critical_section_enter();
74
+ pwmout_free(&_pwm);
75
+ core_util_critical_section_exit();
76
+ }
77
+
78
/** Set the ouput duty-cycle, specified as a percentage (float)
79
*
80
* @param value A floating-point value representing the output duty-cycle,
0 commit comments