From 691da3605f128389caf7b29f932c0303a8eec169 Mon Sep 17 00:00:00 2001 From: Michael Elliot Braun Date: Thu, 31 Mar 2016 17:17:22 -0700 Subject: [PATCH] charting lesson --- docs/lessons/charting/activity.md | 4 ++-- docs/lessons/prank-wifi.md | 2 +- docs/lessons/prank-wifi/quiz-answers.md | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/lessons/charting/activity.md b/docs/lessons/charting/activity.md index 96d3a4b8..0a776b15 100644 --- a/docs/lessons/charting/activity.md +++ b/docs/lessons/charting/activity.md @@ -13,14 +13,14 @@ Welcome! This activity will teach how to use the 1st micro:bit to chart the seco Let's measure `acceleration (mg)` and then `send number`. `Acceleration` is measured in **milli-gravities**, so a value of -1000 is equivalent to -1g or -9.81m/s^2. We will be able to get the acceleration value (g-force), in the specified "x" dimension. `Send number` will broadcast a number data packet to other micro:bits connected via radio. ```blocks -radio.sendNumber(input.acceleration(Dimension.X)) +radio.sendNumber(input.acceleration(Dimension.X)); ``` We want to display the acceleration forever. In order to do so, we need a `forever` loop. A forever loop will repeat code in the background forever. ```blocks basic.forever(() => { - radio.sendNumber(input.acceleration(Dimension.X)) + radio.sendNumber(input.acceleration(Dimension.X)); }) ``` diff --git a/docs/lessons/prank-wifi.md b/docs/lessons/prank-wifi.md index 1afb395e..5c3a59d2 100644 --- a/docs/lessons/prank-wifi.md +++ b/docs/lessons/prank-wifi.md @@ -6,4 +6,4 @@ create a fake wifi app to trick your friends * [activity](/microbit/lessons/prank-wifi/activity) * [quiz](/microbit/lessons/prank-wifi/quiz) -* [quiz](/microbit/lessons/prank-wifi/quiz-answers) +* [quiz answers](/microbit/lessons/prank-wifi/quiz-answers) diff --git a/docs/lessons/prank-wifi/quiz-answers.md b/docs/lessons/prank-wifi/quiz-answers.md index 46ab622b..83b217fb 100644 --- a/docs/lessons/prank-wifi/quiz-answers.md +++ b/docs/lessons/prank-wifi/quiz-answers.md @@ -47,7 +47,7 @@ let yAccel = Math.abs(input.acceleration(Dimension.Y)) let zAccel = Math.abs(input.acceleration(Dimension.Z)) let sum = xAccel + yAccel + zAccel if (sum < 1400) { - basic.showleds(` + basic.showLeds(` . . . . . . . . . . . . # . . @@ -71,7 +71,7 @@ let yAccel = Math.abs(input.acceleration(Dimension.Y)) let zAccel = Math.abs(input.acceleration(Dimension.Z)) let sum = xAccel + yAccel + zAccel if (sum >= 1400 && sum < 1680) { - basic.showleds(` + basic.showLeds(` . . . . . . . . # . . . # # . @@ -95,7 +95,7 @@ let yAccel = Math.abs(input.acceleration(Dimension.Y)) let zAccel = Math.abs(input.acceleration(Dimension.Z)) let sum = xAccel + yAccel + zAccel if (sum >= 1680) { - basic.showleds(` + basic.showLeds(` . . . . . . . . . . . . . . .