From ce635ea0e2ff86089d19d15cd77213949ad97fc8 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Fri, 1 Jun 2018 11:49:48 -0700 Subject: [PATCH] Fix tutorial --- docs/tutorials/getting-started.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/getting-started.md b/docs/tutorials/getting-started.md index 03425a49..cbed04a7 100644 --- a/docs/tutorials/getting-started.md +++ b/docs/tutorials/getting-started.md @@ -16,7 +16,7 @@ Connect a USB cable to the @boardname@ and click ``|Download|``. Save the progra Well, 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 +```blocks input.onButtonPressed(Button.A, () => { basic.showString("Micro!") }); @@ -34,7 +34,7 @@ Place some blocks to display a smiley when button **B** is pressed. Use the dropdown to find ``B``! -```block +```blocks input.onButtonPressed(Button.B, () => { basic.showLeds(` # # . # # @@ -56,7 +56,7 @@ in an ``||input:on shake||`` slot to build a dice. When the @boardname@ is shaken, a random number between ``0`` and ``6`` is displayed on the screen. -```block +```blocks input.onGesture(Gesture.Shake, () => { basic.showNumber(Math.randomRange(0, 7)) })