jath03 / openrgb-python

A python client for the OpenRGB SDK
GNU General Public License v3.0
112 stars 22 forks source link

Cannot change argb single leds #12

Closed NotLatif closed 3 years ago

NotLatif commented 3 years ago

It could be well an OpenRGB problem, however, this tool made me able to change motherboard LEDs which I cannot do succesfully directly from the OpenRGB GUI.

Motherboard: B450 Aorus elite ARGB header: ARGB Header 1

It is connected to 2 fans through a splitter to a single header, the RGBFusion software was able to detect them and change evert one of the 8 LEDs individually.

I am now able to change the entirety of the fan LEDs without any problem, however I can't figure out any method to individually change them

from openrgb import OpenRGBClient
from openrgb.utils import RGBColor
import time

client = OpenRGBClient()
mobo = client.devices[2]
red = RGBColor(255, 0, 0)

#mobo.leds[7] refers to both the fans attached to the connector
mobo.leds[7].set_color(white)  #"mobo.zones[7].set_color(white)" works as well

I will include something below in case it could be of any help mobo.zones[7].matrix_map returns [[]] mobo.zones[7].leds returns [LED(name=ARGB Header 1, id=7)] mobo.leds returns LED(name=ARGB Header 1, id=7)

jath03 commented 3 years ago

This doesn't look like a problem with openrgb-python, so I'm closing this. I'm guessing that you just haven't resized the argb zone yet in OpenRGB. You can resize from OpenRGB's GUI or from openrgb-python. On the GUI, select the argb header zone, and click resize, then enter the number of leds that are connected to that header. You can also resize zones from within openrgb-python: docs. If this isn't the problem, then it's probably a motherboard specific issue, and you should create an issue on OpenRGB's gitlab.