Plot LEDs

Display an Image on the micro:bit’s LED screen. NOTE: basic -> plot image has been replaced by basic -> show leds.

basic.showLeds(`
. . . . .
. # . # .
. . # . .
# . . . #
. # # # .
`)

Parameters

  • leds - a series of LED on/off states that form an image (see steps below)

Example: smiley

basic.showLeds(`
. . . . .
. # . # .
. . # . .
# . . . #
. # # # .
`)

See also

show animation, image, show image, scroll image