set_led_rgb(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’… 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 because controlid does not exist, ledid is not a valid index, or the device backed by controlid lacks the r,g,b capability. 😭
  • 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