Git Product home page Git Product logo

openrgb's Introduction

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);

openrgb's People

Contributors

piero512 avatar vonarian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

diogotr7 piero512

openrgb's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.