updated lessons

This commit is contained in:
Michael Elliot Braun
2016-03-30 15:11:05 -07:00
parent f00491df52
commit 1e77491b16
22 changed files with 422 additions and 159 deletions

View File

@ -13,14 +13,14 @@ Welcome! This tutorial will help you make a smiley face blink. Let's get started
Create an animation with an image displaying a smiley face and the next image with no LEDs lit up. This will make it look like the smiley face is blinking as the display switches between images.
```blocks
basic.showAnimation(`
basic.showLeds(`
. # . # .
. # . # .
. . . . .
# . . . #
. # # # .
`)
basic.showAnimation(`
basic.showLeds(`
. . . . .
. . . . .
. . . . .

View File

@ -8,14 +8,14 @@ Complete the [smiley activity](/microbit/lessons/smiley/activity) and your code
```blocks
basic.showAnimation(`
basic.showLeds(`
. # . # .
. # . # .
. . . . .
# . . . #
. # # # .
`)
basic.showAnimation(`
basic.showLeds(`
. . . . .
. . . . .
. . . . .
@ -33,14 +33,14 @@ Let's make add code that will run when button A is pressed!
```blocks
basic.showAnimation(`
basic.showLeds(`
. # . # .
. # . # .
. . . . .
# . . . #
. # # # .
`)
basic.showAnimation(`
basic.showLeds(`
. . . . .
. . . . .
. . . . .
@ -59,14 +59,14 @@ input.onButtonPressed(Button.A, () => {
Now, we want to show a frowny face when this button is pressed. Let's show the LEDs.
```blocks
basic.showAnimation(`
basic.showLeds(`
. # . # .
. # . # .
. . . . .
# . . . #
. # # # .
`)
basic.showAnimation(`
basic.showLeds(`
. . . . .
. . . . .
. . . . .
@ -74,7 +74,7 @@ basic.showAnimation(`
. . . . .
`)
input.onButtonPressed(Button.A, () => {
basic.showAnimation(`
basic.showLeds(`
. # . # .
. # . # .
. . . . .