Add script to programatically control rgb lighting on GPU
This commit is contained in:
parent
56f1468941
commit
3198aeef2c
12
rgb-lighting/rgb.py
Normal file
12
rgb-lighting/rgb.py
Normal file
@ -0,0 +1,12 @@
|
||||
from openrgb import OpenRGBClient
|
||||
from openrgb.utils import RGBColor, DeviceType
|
||||
|
||||
# Ensure OpenRGB is running and the server is enabled.
|
||||
|
||||
client = OpenRGBClient()
|
||||
|
||||
gpu = client.get_devices_by_type(DeviceType.GPU)[0]
|
||||
gpu.zones[0].set_color(RGBColor(20, 20, 20))
|
||||
gpu.set_mode('direct')
|
||||
|
||||
client.save_profile('test')
|
Loading…
Reference in New Issue
Block a user