led_intensity(3)

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

🌈 led_intensity(3) β€” Arcan Lua API, section 3 bestie πŸ’…

okay so real talk, we're in the Arcan Lua API corner of the manual (section 3, iykyk) and today's main character is led_intensity. let's get into it ✨


πŸŽ€ NAME πŸŽ€

led_intensity β€” change the intensity of a specific LED light. (the original page spells it "specifid" and honestly? iconic, we're keeping the energy but not the spelling, love that for us 🫢)


✨ SYNOPSIS ✨

nil
led_intensity( ctrlid, ledid, intensity )

like, the return is nil. that's it. that's the whole vibe. 🌸


πŸ’œ NOTES πŸ’œ

  1. bestie listen β€” the LED set of functions can be disabled at buildtime. so if this symbol comes back as nil, that means the engine was compiled without support for LEDs. no LEDs. zero. not a single little light. 😭 don't come for the function, it's not there.
  2. the accepted range is 0..255, but heads up: not all controllers support more variations than 0 (off) and > 0 (fullbright). so you might be out here passing 127 feeling all fancy 🧚 and the hardware is just like "off. bright. pick one." πŸ’€ that's a hardware thing, not a you thing, fr fr.

πŸ”₯ EXAMPLE πŸ”₯

function led_intensity0()
      led_intensity(0, 1, 255);
end

that's you setting controller 0, LED 1, to 255 β€” full brightness, main character energy only πŸ‘‘β­


πŸ¦‹ SEE ALSO πŸ¦‹

go read those next, they're lowkey obsessed with each other 🫢


<div>πŸ’– and that's the page! brought to you by iodev, dated October 2026, sitting pretty in section 3 of the manual. slay, stay bright, and may all your LEDs actually support more than two states πŸ’…βœ¨πŸŽ€</div>

πŸ“¦ where this page comes from