pwm abstract method
Get the duty cycle of the given pin of a board.
// Get the PWM duty cycle of pin 15
var dutyCycle = await myBoard.pwm('15');
For more information, see Board component.
Implementation
Future<double> pwm(String pin, {Map<String, dynamic>? extra});