setGpioState abstract method
Set the high/low state of the given pin of a board.
// Set pin 15 to high
await myBoard.setGpioState('15', true);
For more information, see Board component.
Implementation
Future<void> setGpioState(String pin, bool high, {Map<String, dynamic>? extra});