Fix tutorial authoring for getting started (#885)

* Fix tutorial authoring for getting started

Remove extra new lines

* Fix other tutorials
This commit is contained in:
Sam El-Husseini
2018-06-21 16:02:19 -07:00
committed by GitHub
parent d7f9280dc7
commit 2e9cb3c43b
7 changed files with 35 additions and 38 deletions

View File

@ -4,8 +4,7 @@ Make a love meter, how sweet! The @boardname@ is feeling the love, then sometime
## Step 1
Let's build a **LOVE METER** machine. Place a ``||input:on pin pressed||`` block to run code
when pin ``P0`` is pressed.
Let's build a **LOVE METER** machine. Place a ``||input:on pin pressed||`` block to run code when pin ``P0`` is pressed.
```blocks
input.onPinPressed(TouchPin.P0, () => {
@ -13,8 +12,7 @@ input.onPinPressed(TouchPin.P0, () => {
```
## Step 2
Using ``||basic:show number||`` and ``||Math:pick random||`` blocks,
show a random number from 0 to 100 when pin ``P0`` is pressed.
Using ``||basic:show number||`` and ``||Math:pick random||`` blocks, show a random number from 0 to 100 when pin ``P0`` is pressed.
```blocks
input.onPinPressed(TouchPin.P0, () => {