Jump to content

microbit.display.getPixelValue

From Compy Docs

Returns the brightness value of one display pixel.

Function

Synopsis

microbit.display.getPixelValue(number, number)

Arguments

  • `x` — A Lua number.
  • `y` — A Lua number.

Returns

A number when the coordinates are valid; otherwise no value is returned.

See Also