write method

void write(
  1. bool value
)

Sets the state of the GPIO to value.

Implementation

void write(bool value) {
  _checkStatus();
  _checkError(_nativeGPIOwrite(_gpioHandle, value ? 1 : 0));
}