update instructions to use inline buttons

This commit is contained in:
Peli de Halleux 2017-01-06 14:41:33 -08:00
parent 4681a68ffd
commit 1d82f08668

View File

@ -5,15 +5,12 @@
Place blocks in the workspace to scroll text on the screen. Place blocks in the workspace to scroll text on the screen.
```blocks ```blocks
basic.showString("Hi!") basic.showString("Hello!")
``` ```
### Step 2 ### Step 2
Transfer your code in your @boardname@! Click the **Download** button Click ``|Download|`` to transfer your code in your @boardname@!
and follow the instructions.
ANIMATEDGIF
### Step 3 ### Step 3
@ -22,20 +19,18 @@ Let's make it scroll when button **A** is pressed.
```block ```block
input.onButtonPressed(Button.A, () => { input.onButtonPressed(Button.A, () => {
basic.showString("Hi!") basic.showString("Hello!")
}); });
``` ```
### Step 4 ### Step 4
Transfer your code in your @boardname@ and try pressing **A**. Click ``|Download|`` to transfer your code
and press **A** to scroll your text.
ANIMATEDGIF
### Step 5 ### Step 5
Place more blocks to display a smiley when button **B** is pressed. Place more blocks to display a smiley when button **B** is pressed.
Download your code and try it!
```block ```block
input.onButtonPressed(Button.B, () => { input.onButtonPressed(Button.B, () => {
@ -52,7 +47,6 @@ input.onButtonPressed(Button.B, () => {
### Step 6 ### Step 6
Drag more blocks to display a frownie when @boardname@ is shaken. Drag more blocks to display a frownie when @boardname@ is shaken.
Download your code and try it!
```block ```block
input.onGesture(Gesture.Shake, () => { input.onGesture(Gesture.Shake, () => {