39 lines
772 B
Markdown
Raw Normal View History

2016-03-25 16:47:20 -07:00
# Plot LEDs
2016-04-15 15:02:26 -07:00
Display an [Image](/reference/images/image) on the BBC micro:bit's [LED screen](/device/screen). NOTE: `basic -> plot image` has been replaced by `basic -> show leds`.
2016-03-25 16:47:20 -07:00
```sig
basic.plotLeds(`
. . . . .
. # . # .
. . # . .
# ; . . #
. # # # .
`)
```
### Parameters
* leds - a series of LED on/off states that form an image (see steps below)
### Example: simley
```blocks
basic.plotLeds(`
. . . . .
. # . # .
. . # . .
# ; . . #
. # # # .
`)
```
### Lessons
2016-04-13 08:27:45 -07:00
[smiley](/lessons/smiley), [flashing heart](/lessons/flashing-heart), [magic logo](/lessons/magic-logo)
2016-03-25 16:47:20 -07:00
### See also
2016-04-15 15:02:26 -07:00
[show animation](/reference/basic/show-animation), [image](/reference/images/image), [show image](/reference/images/show-image), [scroll image](/reference/images/scroll-image)
2016-03-25 16:47:20 -07:00