Rewrote (2nd pass). Changed to .

This commit is contained in:
Ron Hale-Evans 2016-06-13 14:15:39 -07:00
parent 4e54649ce7
commit de293be4fc
1 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# 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
basic.showLeds(`
@ -15,13 +15,13 @@ basic.showLeds(`
### Parameters
* `leds` is a [String](/reference/types/string) that shows 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.
If you are programming with blocks, `ms` starts out as 400 milliseconds.
* `leds` is a [string](/reference/types/string) that means which LEDs are on and off.
* `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, `interval` starts out as 400 milliseconds.
### 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
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