Plot LEDs

Display an Image on the micro:bit’s LED screen.

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