From e863363ed2ae35a18214b01e8460768105f531bd Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Wed, 9 Aug 2017 22:00:53 -0700 Subject: [PATCH] Add respective namespaces to the authoring of inline blocks and buttons (#500) --- docs/projects/flashing-heart.md | 8 ++++---- docs/projects/smiley-buttons.md | 2 +- docs/reference/images/arrow-number.md | 2 +- docs/tutorials/getting-started.md | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/projects/flashing-heart.md b/docs/projects/flashing-heart.md index d169a065..c6429822 100644 --- a/docs/projects/flashing-heart.md +++ b/docs/projects/flashing-heart.md @@ -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(() => { diff --git a/docs/projects/smiley-buttons.md b/docs/projects/smiley-buttons.md index afa63dbf..3ef23694 100644 --- a/docs/projects/smiley-buttons.md +++ b/docs/projects/smiley-buttons.md @@ -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, () => { diff --git a/docs/reference/images/arrow-number.md b/docs/reference/images/arrow-number.md index f3035d6a..710325c5 100644 --- a/docs/reference/images/arrow-number.md +++ b/docs/reference/images/arrow-number.md @@ -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 diff --git a/docs/tutorials/getting-started.md b/docs/tutorials/getting-started.md index 047da085..66e9430c 100644 --- a/docs/tutorials/getting-started.md +++ b/docs/tutorials/getting-started.md @@ -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. ####