From 48c65ae7cf739567b40f46b2c1902211fd10dfbb Mon Sep 17 00:00:00 2001 From: Niels Date: Sun, 1 Apr 2018 16:52:58 +0200 Subject: [PATCH] make example code work with blocks (#723) The example code used javascript that can't be made in blocks. After this change it can be reproduced in blocks. --- docs/reference/input/pin-is-pressed.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/input/pin-is-pressed.md b/docs/reference/input/pin-is-pressed.md index ce3491fd..e5d01f08 100644 --- a/docs/reference/input/pin-is-pressed.md +++ b/docs/reference/input/pin-is-pressed.md @@ -32,9 +32,9 @@ This program shows `1` if `P0` is pressed, and `0` if `P0` is not pressed: ```blocks basic.forever(() => { if (input.pinIsPressed(TouchPin.P0)) { - basic.showNumber(1, 150) + basic.showNumber(1) } else { - basic.showNumber(0, 150) + basic.showNumber(0) } }) ```