Rewrote (2nd pass). Changed to .
This commit is contained in:
parent
4e54649ce7
commit
de293be4fc
@ -1,6 +1,6 @@
|
|||||||
# Show LEDs
|
# Show LEDs
|
||||||
|
|
||||||
Display an image on the BBC micro:bit's [LED screen](/device/screen).
|
Shows a picture on the [LED screen](/device/screen).
|
||||||
|
|
||||||
```sig
|
```sig
|
||||||
basic.showLeds(`
|
basic.showLeds(`
|
||||||
@ -15,13 +15,13 @@ basic.showLeds(`
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
* `leds` is a [String](/reference/types/string) that shows which LEDs are on and off.
|
* `leds` is a [string](/reference/types/string) that means which LEDs are on and off.
|
||||||
* `ms` is an optional [Number](/reference/types/number) that shows how many milliseconds to wait after showing a picture.
|
* `interval` is an optional [number](/reference/types/number) that means how many milliseconds to wait after showing a picture.
|
||||||
If you are programming with blocks, `ms` starts out as 400 milliseconds.
|
If you are programming with blocks, `interval` starts out as 400 milliseconds.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
Open the `basic` card in the Block Editor and select the `show leds` blocks.
|
This program shows a picture with the ``show leds`` function.
|
||||||
|
|
||||||
```blocks
|
```blocks
|
||||||
basic.showLeds(`
|
basic.showLeds(`
|
||||||
@ -34,7 +34,12 @@ basic.showLeds(`
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are programming in JavaScript, `#` means an LED that is turned on and `.` means an LED that is turned off.
|
### ~hint
|
||||||
|
|
||||||
|
If you are programming in JavaScript, `#` means an LED that is turned
|
||||||
|
on and `.` means an LED that is turned off.
|
||||||
|
|
||||||
|
### ~
|
||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user