gpio abstract method

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

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

Future<bool> gpio(String pin, {Map<String, dynamic>? extra});