setLed method

void setLed(
  1. int red,
  2. int green,
  3. int blue, {
  4. int blinkMs = 0,
})

Implementation

void setLed(int red, int green, int blue, {int blinkMs = 0}) {
  if (!connected) return;
  try {
    _api.setLed(red: red, green: green, blue: blue, blinkMs: blinkMs);
  } catch (e) {
    error = 'LED command failed: $e';
    _notify();
  }
}