gpio method
override
Get the high/low state of the given pin of a board.
// Whether the state of pin 15 is currently high
bool pinStateIsHigh = await myBoard.gpio('15');
For more information, see Board component.
Implementation
@override
Future<bool> gpio(String pin, {Map<String, dynamic>? extra}) async {
final request = GetGPIORequest()
..name = name
..pin = pin
..extra = extra?.toStruct() ?? Struct();
final response = await client.getGPIO(request);
return response.high;
}