Unplot

Turn off the LED light you say on the LED screen.

led.unplot(0,0)

Use plot to turn on an LED.

Parameters

If a parameter is out of bounds (a value other than 0 to 4), then this function will do nothing.

The LED screen is a solid square of LEDs with five LEDs on each side. To learn more about how you number the LEDs with x and y coordinates, see LED screen.

Example: Center off

This program shows a picture on the LED screen, and then turns off the center LED with unplot.

basic.showLeds(`
. . # . .
. . # . .
# # # # #
. . # . .
. . # . .
`)
basic.pause(500)
led.unplot(2, 2)

Use the point function to find out if an LED is on or off.

See also

plot, point, LED screen

Edit this page on GitHub