Add respective namespaces to the authoring of inline blocks and buttons (#500)
This commit is contained in:
parent
9d38c61457
commit
e863363ed2
@ -2,7 +2,7 @@
|
||||
|
||||
## Step 1
|
||||
|
||||
Place the ``||show leds||`` block and paint a heart.
|
||||
Place the ``||basic:show leds||`` block and paint a heart.
|
||||
|
||||
```block
|
||||
basic.showLeds(`
|
||||
@ -20,7 +20,7 @@ Click ``|Download|`` to transfer your code in your @boardname@!
|
||||
|
||||
## 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
|
||||
basic.showLeds(`
|
||||
@ -39,7 +39,7 @@ basic.showLeds(`
|
||||
|
||||
## Step 4
|
||||
|
||||
Place the blocks inside the ``||forever||``
|
||||
Place the blocks inside the ``||basic:forever||``
|
||||
to repeat the animation.
|
||||
|
||||
```block
|
||||
@ -66,7 +66,7 @@ Click ``|Download|`` to transfer your code in your @boardname@!
|
||||
|
||||
## Step 6
|
||||
|
||||
Place more ``||show leds||`` blocks to create your own animation.
|
||||
Place more ``||basic:show leds||`` blocks to create your own animation.
|
||||
|
||||
```block
|
||||
basic.forever(() => {
|
||||
|
@ -70,7 +70,7 @@ Try pressing ``A`` or ``B``!
|
||||
## Step 4
|
||||
|
||||
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
|
||||
input.onButtonPressed(Button.AB, () => {
|
||||
|
@ -6,7 +6,7 @@ Get the number that matches an arrow image name.
|
||||
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
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
### 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
|
||||
basic.showString("Micro!")
|
||||
@ -14,7 +14,7 @@ Click ``|Download|`` to transfer your code in your @boardname@!
|
||||
|
||||
### 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.
|
||||
|
||||
```block
|
||||
@ -50,8 +50,8 @@ input.onButtonPressed(Button.B, () => {
|
||||
|
||||
### Step 6
|
||||
|
||||
Place the ``||show number||`` and ``||pick random||`` blocks
|
||||
in the ``||on shake||`` slot to build a dice.
|
||||
Place the ``||basic:show number||`` and ``||Math:pick random||`` blocks
|
||||
in the ``||input:on shake||`` slot to build a dice.
|
||||
|
||||
####
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user