Module arc

Arc

Class arc

arc:add (dev) callback executed when arc is plugged in.
arc:connect (n) attempt to connect to the first available arc.
arc:remove (dev) callback executed when arc is unplugged.
arc:led (self, ring, x, val) sets arc led.
arc:all (self, val) set all leds.
arc:refresh (self) update dirty quads.
arc:segment (self, ring, from, to, level) draw a segment.
arc:intensity (self, i) limits led intensity.


Class arc

arc object
arc:add (dev)
callback executed when arc is plugged in. overwrite in user scripts

Parameters:

  • dev arc arc object
arc:connect (n)
attempt to connect to the first available arc.

Parameters:

  • n integer (1-4)

Returns:

    arc
arc:remove (dev)
callback executed when arc is unplugged. overwrite in user scripts

Parameters:

  • dev arc arc object
arc:led (self, ring, x, val)
sets arc led.

Parameters:

  • self arc arc object
  • ring integer arc ring (1-4)
  • x integer arc led (1-based)
  • val integer level (0-15)
arc:all (self, val)
set all leds.

Parameters:

  • self arc arc object
  • val integer level (0-15)
arc:refresh (self)
update dirty quads.

Parameters:

  • self arc arc object
arc:segment (self, ring, from, to, level)
draw a segment. nb: this is calling down to arc:led underneath

Parameters:

  • self arc arc object
  • ring integer (1-4)
  • from integer first led (1-64)
  • to integer second led (1-64)
  • level integer (0-15)
arc:intensity (self, i)
limits led intensity.

Parameters:

  • self arc arc device
  • i integer level (0-15)
generated by LDoc 1.5.0 Last updated 2024-01-13 13:12:10