Use plot to turn on an LED.
Turn off the LED light you say on the LED screen.
led.unplot(0,0)
x
is a number that means the
horizontal spot on the LED screen (from left to right: 0, 1, 2, 3,
or 4)y
is a number that means the vertical
spot on the LED screen (from top to bottom: 0, 1, 2, 3, or 4)If a parameter is out of bounds (a value other than 0 to 4), then this function will do nothing.
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)