setPwmFrequency abstract method
Set the PWM frequency in hertz of the given pin of a board.
// Set the PWM frequency of pin 15 to 1600 Hz
await myBoard.setPwmFrequency('15', 1600);
For more information, see Board component.
Implementation
Future<void> setPwmFrequency(String pin, int frequencyHz, {Map<String, dynamic>? extra});