set_led_rgb(3)
π NAME π
okay bestie, welcome to the set_led_rgb(3) page from the Arcan Lua API β this one is all about setting the specific R,G,B values for an individual LED on a specific controller. no cap. β¨
π SYNOPSIS π
here's the whole call, bestie β don't lose the bool:
bool
set_led_rgb( controlid, ledid, r, g, b, buffer )
π DESCRIPTION π
so this function sets the color value of an individual LED on a known LED controller. cute. π
but like⦠it has receipts, and the return value matters:
-1β the vibe check failed becausecontroliddoes not exist,ledidis not a valid index, or the device backed bycontrolidlacks ther,g,bcapability. π- a negative
ledidβ not me setting the value for all LEDs associated with the device. literally all of them. π 0β the update failed because it would block the device. this can happen when many LED update queries are being pushed to a slow device. π no cap.- the optional boolean
bufferβ if you set it, the request may be queued, and that queue will not dispatch until a non-buffered update is called. periodt. π¦
bestie, the buffer thing is real: queued requests just sit there until a non-buffered update shows up. don't forget that part. π«Ά
mwah π that's the whole page. it's from iodev and dated October 2026 β go make those LEDs iconic. ππ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms