Add respective namespaces to the authoring of inline blocks and buttons (#500)

This commit is contained in:
Sam El-Husseini 2017-08-09 22:00:53 -07:00 committed by GitHub
parent 9d38c61457
commit e863363ed2
4 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
## Step 1 ## Step 1
Place the ``||show leds||`` block and paint a heart. Place the ``||basic:show leds||`` block and paint a heart.
```block ```block
basic.showLeds(` basic.showLeds(`
@ -20,7 +20,7 @@ Click ``|Download|`` to transfer your code in your @boardname@!
## Step 3 ## Step 3
Place another ``||show leds||`` block under the heart to make it blink. Place another ``||basic:show leds||`` block under the heart to make it blink.
```block ```block
basic.showLeds(` basic.showLeds(`
@ -39,7 +39,7 @@ basic.showLeds(`
## Step 4 ## Step 4
Place the blocks inside the ``||forever||`` Place the blocks inside the ``||basic:forever||``
to repeat the animation. to repeat the animation.
```block ```block
@ -66,7 +66,7 @@ Click ``|Download|`` to transfer your code in your @boardname@!
## Step 6 ## Step 6
Place more ``||show leds||`` blocks to create your own animation. Place more ``||basic:show leds||`` blocks to create your own animation.
```block ```block
basic.forever(() => { basic.forever(() => {

View File

@ -70,7 +70,7 @@ Try pressing ``A`` or ``B``!
## Step 4 ## Step 4
You can also have a secret mode where ``A`` and ``B`` are pressed together. You can also have a secret mode where ``A`` and ``B`` are pressed together.
In that case, add multiple ``||show leds||`` blocks to create an animation... In that case, add multiple ``||basic:show leds||`` blocks to create an animation...
```blocks ```blocks
input.onButtonPressed(Button.AB, () => { input.onButtonPressed(Button.AB, () => {

View File

@ -6,7 +6,7 @@ Get the number that matches an arrow image name.
images.arrowNumber(ArrowNames.North) images.arrowNumber(ArrowNames.North)
``` ```
Each arrow image name has a number for it. You can find the number for any arrow name with ``||arrow number||``. Each arrow image name has a number for it. You can find the number for any arrow name with ``||Images:arrow number||``.
## Parameters ## Parameters

View File

@ -2,7 +2,7 @@
### Step 1 ### Step 1
Welcome! Place the ``||show string||`` block in the ``||on start||`` slot to scroll your name. Welcome! Place the ``||basic:show string||`` block in the ``||basic:on start||`` slot to scroll your name.
```blocks ```blocks
basic.showString("Micro!") basic.showString("Micro!")
@ -14,7 +14,7 @@ Click ``|Download|`` to transfer your code in your @boardname@!
### Step 3 ### Step 3
The text stopped. Place the ``||show string||`` block in the ``||on button pressed||`` The text stopped. Place the ``||basic:show string||`` block in the ``||input:on button pressed||``
slot to scroll your name when button **A** is pressed. slot to scroll your name when button **A** is pressed.
```block ```block
@ -50,8 +50,8 @@ input.onButtonPressed(Button.B, () => {
### Step 6 ### Step 6
Place the ``||show number||`` and ``||pick random||`` blocks Place the ``||basic:show number||`` and ``||Math:pick random||`` blocks
in the ``||on shake||`` slot to build a dice. in the ``||input:on shake||`` slot to build a dice.
#### ####