From 05098252ed2eee8fcdc8ef60d16ba41f2ffdd757 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 21 Jul 2016 15:32:59 -0700 Subject: [PATCH] slightly more impressive about example --- docs/about.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/about.md b/docs/about.md index d5d8242b..99839f62 100644 --- a/docs/about.md +++ b/docs/about.md @@ -38,7 +38,9 @@ Learn about the [hardware components](/device) of the micro:bit to make the most You can program the micro:bit using [Blocks](/blocks) or [JavaScript](/javascript), via the [micro:bit APIs](/reference): ```blocks -basic.showString("Hi!"); +input.onButtonPressed(Button.A, () => { + basic.showString("Hi!"); +}) ``` ## Compile and Flash: Your Program!