Module grid

Grid class

Functions

Grid.add (dev) static callback when any grid device is added; user scripts can redefine
Grid.remove (dev) static callback when any grid device is removed; user scripts can redefine
Grid:led (x, y, val) set state of single LED on this grid device.
Grid:all (val) set state of all LEDs on this grid device.
Grid:refresh () update any dirty quads on this grid device.
Grid:intensity (i) intensity
Grid.connect (n) create device, returns object with handler and send.
Grid.cleanup () clear handlers.


Functions

Grid.add (dev)
static callback when any grid device is added; user scripts can redefine

Parameters:

  • dev : a Grid table
Grid.remove (dev)
static callback when any grid device is removed; user scripts can redefine

Parameters:

  • dev : a Grid table
Grid:led (x, y, val)
set state of single LED on this grid device.

Parameters:

  • x integer : column index (1-based!)
  • y integer : row index (1-based!)
  • val integer : LED brightness in [0, 15]
Grid:all (val)
set state of all LEDs on this grid device.

Parameters:

  • val integer : LED brightness in [0, 15]
Grid:refresh ()
update any dirty quads on this grid device.
Grid:intensity (i)
intensity

Parameters:

  • i
Grid.connect (n)
create device, returns object with handler and send.

Parameters:

  • n integer : vport index
Grid.cleanup ()
clear handlers.
generated by LDoc 1.4.6 Last updated 2021-01-11 12:10:11