openrgb

Last updated:

0 purchases

openrgb Image
openrgb Images
Add to Cart

Description:

openrgb

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.