setCustomMode method

void setCustomMode(
  1. int deviceId
)

Sets custom mode for given deviceId. Custom mode is a mode that allows you to set the colors of the LEDs individually (Depending on device's capabilities).

Implementation

void setCustomMode(int deviceId) {
  if (deviceId >= _controllerCount) {
    throw Exception('Device index out of range!');
  }
  _send(
    CommandId.setCustomMode,
    Uint8List(0),
    deviceId: deviceId,
  );
}