setGpioState abstract method

Future<void> setGpioState(
  1. String pin,
  2. bool high, {
  3. Map<String, dynamic>? extra,
})

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});