openrgb 0.2.5 copy "openrgb: ^0.2.5" to clipboard
openrgb: ^0.2.5 copied to clipboard

OpenRGB Dart Client to communicate with OpenRGB Server and control RGB LEDs. Protocol Version 3.

OpenRGB #

OpenRGB Client written in pure Dart for the Dart programming language.

Features #

Communicate with the OpenRGB server to control the RGB LEDs.

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
  openrgb: <latest_version>

Usage #

Connect to the OpenRGB server. Default value for the IP address is 127.0.0.1 and for the port is 6742. You can also set a custom client name, which is used to identify the client to the server. Default value for the client name is OpenRGB-dart.

import 'package:openrgb/openrgb.dart';

Future<void> main() async {
  // Async Client
  final asyncClient = await OpenRGBClient.connect();
  // Sync Client
  final syncClient = OpenRGBSyncClient.connect();
}

Get all controllers data


final controllersData = await
oRgb.getAllControllerData();

Or get a specific controller data


final controllerData = await oRgb.getControllerData(controllerId);

Set a single LED's color

await oRgb.updateSingleLed(deviceId,ledID, color);

Or set all LEDs' colors

await oRgb.updateLeds(deviceId, numColors, color);

Set a mode for a device


final deviceId = 0;
final modeId = 2; // Depending on the device you want to set the mode for and available modes
await oRgb.setMode(deviceId, modeId, color);

final deviceId = 0;
await oRgb.setCustomMode(deviceId);
2
likes
130
pub points
9%
popularity

Publisher

unverified uploader

OpenRGB Dart Client to communicate with OpenRGB Server and control RGB LEDs. Protocol Version 3.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

async, color, quiver

More

Packages that depend on openrgb