set_led(3)

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

πŸ’… 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: πŸ‘‘


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