set_led(3)
π set_led π
bestie, welcome to the set_led page from the Arcan Lua API manual. this is the little Lua call for changing one LEDβs active state, and it's lowkey iconic. π
π NAME π
set_led β change the active state of a single LED.
β¨ SYNOPSIS β¨
nil
set_led( id, num, state )
the nil up top is the return-value vibe: no return value, it just does the thing. π
π¦ DESCRIPTION π¦
okay so you're setting the state of the specific led (0..n leds) on the led controller (id, > 0) to state (1: on, not1: off). that's the whole assignment. periodt β¨
πΈ EXAMPLE πΈ
function set_led0()
set_led(1, 0, 1);
end
this example is literally set_led(1, 0, 1); inside set_led0() β controller 1, led 0, state 1. slay. π₯
π SEE ALSO: π
led_intensity(3)set_led_rgb(3)controlled_leds(3)
okay bye bestie β this page is from the iodev source/version, dated October 2026, and it's sending you off with a little π«Άπ.
π¦ 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