quiz update

This commit is contained in:
Michael Elliot Braun
2016-03-29 11:57:50 -07:00
parent a471c2cb1a
commit c43088c099
12 changed files with 141 additions and 46 deletions

View File

@ -12,13 +12,31 @@ This function turns off all the LED lights on the LED screen.
![](/static/mb/blocks/lessons/screen-wipe-4.png)
![](/static/mb/blocks/lessons/screen-wipe-5.png)
```blocks
basic.showLeds(`
. # . # .
. # . # .
. . # . .
# . . . #
. # # # .
`)
```
## 3. Write the condition that will detect on button A pressed
![](/static/mb/blocks/lessons/screen-wipe-6.png)
```blocks
input.onButtonPressed(Button.A, () => {
})
```
## 4. Write the code that will clear show LEDS from the screen after pressing button A
![](/static/mb/blocks/lessons/screen-wipe-7.png)
```blocks
input.onButtonPressed(Button.A, () => {
basic.clearScreen()
})
```