pwmFrequency abstract method

Future<int> pwmFrequency(
  1. String pin, {
  2. Map<String, dynamic>? extra,
})

Get the PWM frequency of the given pin of a board.

// Get the PWM frequency of pin 11
var frequency = await myBoard.pwmFrequency('11');

For more information, see Board component.

Implementation

Future<int> pwmFrequency(String pin, {Map<String, dynamic>? extra});