Add script to programatically control rgb lighting on GPU

This commit is contained in:
moshferatu 2024-04-05 06:02:20 -07:00
parent 56f1468941
commit 3198aeef2c

12
rgb-lighting/rgb.py Normal file
View 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')