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>
copied to clipboard

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();
}
copied to clipboard

Get all controllers data


final controllersData = await
oRgb.getAllControllerData();
copied to clipboard

Or get a specific controller data


final controllerData = await oRgb.getControllerData(controllerId);

copied to clipboard

Set a single LED's color

await oRgb.updateSingleLed(deviceId,ledID, color);
copied to clipboard

Or set all LEDs' colors

await oRgb.updateLeds(deviceId, numColors, color);
copied to clipboard

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);
copied to clipboard

final deviceId = 0;
await oRgb.setCustomMode(deviceId);
copied to clipboard
2
likes
150
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.29 - 2025.04.13

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

async, color, quiver

More

Packages that depend on openrgb