Exemple #1
0
import sys, os

sys.path.append(os.path.realpath('.'))
from openrgb import OpenRGB

client = OpenRGB('localhost', 6742)

print(client.get_version())
Exemple #2
0
import sys
import os

sys.path.append(os.path.realpath('.'))

from openrgb import OpenRGB

client = OpenRGB('localhost', 6742)
devices = [d for d in client.devices()]
print(devices[4].modes[1].active())
Exemple #3
0
import time
import sys, os

sys.path.append(os.path.realpath('.'))
from openrgb import OpenRGB

client = OpenRGB('localhost', 6742)
for device in client.devices():
    print(device)
    device.leds[0].set((255, 0, 255))
# Adding the library to our PYTHONPATH
import sys, os

sys.path.append(os.path.realpath('.'))

from openrgb import OpenRGB

client = OpenRGB('localhost', 6742)

devices = {}
for i in range(client.controller_count()):
    devices[i] = client.controller_data(device_id=i)

print(devices)

for _, device in devices.items():
    print('{} has {} LED(s)'.format(device.name, len(device.leds)))