From 7bced604662ace3742cc12ffebd869ecb7daed29 Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Wed, 15 Jun 2016 08:09:40 -0400 Subject: [PATCH] fix more broken links --- docs/lessons.md | 2 -- docs/lessons/headbands.md | 9 ------ docs/reference/input/acceleration.md | 2 +- .../{change-tempo.md => change-tempo-by.md} | 0 docs/reference/music/play-tone.md | 3 +- docs/reference/radio/send-value.md | 29 +++++++++++++++++++ docs/typescript.md | 2 +- 7 files changed, 33 insertions(+), 14 deletions(-) rename docs/reference/music/{change-tempo.md => change-tempo-by.md} (100%) create mode 100644 docs/reference/radio/send-value.md diff --git a/docs/lessons.md b/docs/lessons.md index 586f2224..c63837e4 100644 --- a/docs/lessons.md +++ b/docs/lessons.md @@ -30,7 +30,6 @@ * [Guess the Number](/lessons/guess-the-number), guess a random number with pick number * [Counter](/lessons/counter), display a number with a variable * [Love Meter](/lessons/love-meter), create a love meter with on pin pressed -* [Rock Paper Scissors](/lessons/rock-paper-scissors), create the classic game of rock paper scissors with if statement * [Truth or Dare](/lessons/truth-or-dare), a game that forces each player to reveal a secret or do something funny with if statement * [Spinner](/lessons/spinner), spin the arrow with multiple if statements * [Dice Roll](/lessons/dice-roll), spin with more if statements @@ -43,7 +42,6 @@ * [Zoomer](/lessons/zoomer), measure the force with acceleration * [Glowing Pendulum](/lessons/glowing-pendulum), construct a pendulum that glows using acceleration * [Classic Beatbox](/lessons/classic-beatbox), make a beatbox music player with variables -* [Light Beatbox](/lessons/light-beatbox), make a beatbox music player with light level ### ~ diff --git a/docs/lessons/headbands.md b/docs/lessons/headbands.md index 13f8298e..14c7716d 100644 --- a/docs/lessons/headbands.md +++ b/docs/lessons/headbands.md @@ -114,15 +114,6 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor * [tutorial](/lessons/headbands/activity) * [quiz](/lessons/headbands/quiz) -## Extended Activity - -* time: 20 min. -* [challenges](/lessons/headbands/challenges) - -## Homework - -* Extended Activity: [challenges](/lessons/headbands/challenges) - ## Intended follow on Publish script to the classroom. diff --git a/docs/reference/input/acceleration.md b/docs/reference/input/acceleration.md index 274113df..f4b4e122 100644 --- a/docs/reference/input/acceleration.md +++ b/docs/reference/input/acceleration.md @@ -38,5 +38,5 @@ basic.forever(() => { ### See also -[compass-heading](/reference/input/compass-heading), [lightlevel](/reference/input/lightlevel) +[compass-heading](/reference/input/compass-heading), [lightlevel](/reference/input/light-level) diff --git a/docs/reference/music/change-tempo.md b/docs/reference/music/change-tempo-by.md similarity index 100% rename from docs/reference/music/change-tempo.md rename to docs/reference/music/change-tempo-by.md diff --git a/docs/reference/music/play-tone.md b/docs/reference/music/play-tone.md index 037c8140..f7901f0f 100644 --- a/docs/reference/music/play-tone.md +++ b/docs/reference/music/play-tone.md @@ -27,5 +27,6 @@ music.playTone(freq, 1000) ### See also -[rest](/reference/music/rest), [ring tone](/reference/music/ring-tone) , [tempo](/reference/music/tempo), [set tempo](/reference/music/set-tempo), [change tempo by](/reference/music/change-tempo-by) +[rest](/reference/music/rest), [ring tone](/reference/music/ring-tone) , [tempo](/reference/music/tempo), [set tempo](/reference/music/set-tempo), +[change tempo by](/reference/music/change-tempo-by) diff --git a/docs/reference/radio/send-value.md b/docs/reference/radio/send-value.md new file mode 100644 index 00000000..63a432bc --- /dev/null +++ b/docs/reference/radio/send-value.md @@ -0,0 +1,29 @@ +# Send Number + +Broadcast a (name,number) pair to other micro:bits connected via ``radio``. + +### Parameters + +* name - a string to send +* num - a number to send. + +### Simulator + +This function only works on the micro:bit, not in browsers. + +### Example: Broadcasting acceleration + +This example broadcasts the value of your micro:bit's ``acceleration`` in the `x` direction +(left and right) to other micro:bits. +This kind of program might be useful in a model car or model rocket. + +```blocks +input.onButtonPressed(Button.A, () => { + radio.sendValue("acc",input.acceleration(Dimension.X)) +}) +``` + +### See also + +[receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received) + diff --git a/docs/typescript.md b/docs/typescript.md index 93b192d4..71e06854 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -1,4 +1,4 @@ -# Typescript +# TypeScript You can write micro:bit programs in a subset of [TypeScript](https://www.typescriptlang.org). TypeScript itself is a superset of JavaScript, and many micro:bit programs,