pwmFrequency method
override
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
@override
Future<int> pwmFrequency(String pin, {Map<String, dynamic>? extra}) async {
final request = PWMFrequencyRequest()
..name = name
..pin = pin
..extra = extra?.toStruct() ?? Struct();
final response = await client.pWMFrequency(request);
return response.frequencyHz.toInt();
}