From cace68acf47e820b3be33543d0744613b06f289e Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 10 Oct 2016 11:20:25 -0700 Subject: [PATCH] updated hello sample --- libs/hello/hello.ts | 13 ++++++------- libs/hello/pxt.json | 3 +-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/libs/hello/hello.ts b/libs/hello/hello.ts index a1c168a9..9788ca83 100644 --- a/libs/hello/hello.ts +++ b/libs/hello/hello.ts @@ -1,7 +1,6 @@ -basic.plotLeds(` -# # . # # -. . # . . -. . # . . -# . . . # -. # # # . -`); +led.plot(0, 0) +basic.pause(1000); +basic.forever(() => { + const a = input.acceleration(Dimension.X); + led.plotBarGraph(a, 1023) +}) diff --git a/libs/hello/pxt.json b/libs/hello/pxt.json index 73eb3d11..468413e1 100644 --- a/libs/hello/pxt.json +++ b/libs/hello/pxt.json @@ -6,7 +6,6 @@ ], "public": true, "dependencies": { - "microbit": "file:../microbit", - "microbit-radio": "file:../microbit-radio" + "microbit": "file:../microbit" } }