write method

void write(
  1. bool value
)

Sets the state of the led to value.

Implementation

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