diff --git a/docs/tutorials/getting-started.md b/docs/tutorials/getting-started.md index 3d63075b..4158f9e1 100644 --- a/docs/tutorials/getting-started.md +++ b/docs/tutorials/getting-started.md @@ -31,6 +31,7 @@ and press **A** to scroll your text. ### Step 5 Place more blocks to display a smiley when button **B** is pressed. +Use the dropdown to find ``B``! ```block input.onButtonPressed(Button.B, () => { @@ -59,3 +60,15 @@ input.onGesture(Gesture.Shake, () => { `) }) ``` + +### Step 7 + +Drag more blocks to display a random number when pin ``P0`` is touched. +Hold your right thumb on the ``GND`` metal pin +at press the ``0`` pin with your right hand to trigger this event. + +```block +input.onPinPressed(TouchPin.P0, () => { + basic.showNumber(Math.random(7)) +}) +``` \ No newline at end of file