2016-03-26 00:47:20 +01:00
|
|
|
# Plot LEDs
|
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
Display an [Image](/reference/images/image) on the @boardname@'s [LED screen](/device/screen).
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
```sig
|
2016-07-25 12:00:34 +02:00
|
|
|
basic.showLeds(`
|
2016-03-26 00:47:20 +01:00
|
|
|
. . . . .
|
|
|
|
. # . # .
|
|
|
|
. . # . .
|
2016-07-25 12:00:34 +02:00
|
|
|
# . . . #
|
2016-03-26 00:47:20 +01:00
|
|
|
. # # # .
|
|
|
|
`)
|
|
|
|
```
|
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
## Parameters
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
* leds - a series of LED on/off states that form an image (see steps below)
|
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
## Example: smiley
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
```blocks
|
2016-07-25 12:00:34 +02:00
|
|
|
basic.showLeds(`
|
2016-03-26 00:47:20 +01:00
|
|
|
. . . . .
|
|
|
|
. # . # .
|
|
|
|
. . # . .
|
2016-07-25 12:00:34 +02:00
|
|
|
# . . . #
|
2016-03-26 00:47:20 +01:00
|
|
|
. # # # .
|
|
|
|
`)
|
|
|
|
```
|
|
|
|
|
2019-12-02 05:58:26 +01:00
|
|
|
## See also
|
2016-03-26 00:47:20 +01:00
|
|
|
|
2016-04-16 00:02:26 +02: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-26 00:47:20 +01:00
|
|
|
|