diff --git a/docs/device.md b/docs/device.md index 0022f333..48f52856 100644 --- a/docs/device.md +++ b/docs/device.md @@ -6,7 +6,7 @@ All the bits and pieces that make up your BBC micro:bit ### LED Screen and Status LED -The red lights are [LEDs](/microbit/device/screen) (light emitting diodes) and form a 5 x 5 LED Screen. +The red lights are [LEDs](/device/screen) (light emitting diodes) and form a 5 x 5 LED Screen. They can be set to on/off and the brightness can be controlled. The yellow light on the back of the micro:bit is the status LED. @@ -51,15 +51,15 @@ Output is in milli-g. The device will also detect a small number of standard act The pins can be a form of input or output. There are labels for the input/output pins P0, P1, P2, which you can attach external sensors to such as thermometers or moisture detectors. -You can read more about large and small pins [here](/microbit/device/pins). +You can read more about large and small pins [here](/device/pins). ### How do I connect the micro:bit to my computer? Your micro:bit can be connected to your computer via a micro USB cable. Data can be sent and received between the micro:bit and the computer so programs can be downloaded from Windows, Macs and Chromebooks onto the micro:bit via this USB data connection. -You can read more information on how to run scripts on your micro:bit [here](/microbit/device/usb), -and about the error messages you might get [here](/microbit/device/error-codes). +You can read more information on how to run scripts on your micro:bit [here](/device/usb), +and about the error messages you might get [here](/device/error-codes). ### Powering your micro:bit diff --git a/docs/device/contents.md b/docs/device/contents.md index e1fd0f66..008b1820 100644 --- a/docs/device/contents.md +++ b/docs/device/contents.md @@ -4,18 +4,18 @@ The micro:bit device #docs The micro:bit is a very capable device with many components: -* [the USB connector](/microbit/device/usb) -* [the LED screen](/microbit/device/screen) +* [the USB connector](/device/usb) +* [the LED screen](/device/screen) * [the buttons] * [the accelerometer] * [the compass] -* [the pins](/microbit/device/pins) +* [the pins](/device/pins) * [the battery plug] The micro:bit embodies many fundamental concepts in computer science. To learn more, read: -* [the micro:bit - a reactive system](/microbit/device/reactive) +* [the micro:bit - a reactive system](/device/reactive) Sometimes, your micro:bit may display an error code. For more information, see: -* [the error codes](/microbit/device/error-codes) +* [the error codes](/device/error-codes) diff --git a/docs/device/crocodile-clips.md b/docs/device/crocodile-clips.md index 631273d6..c30b2898 100644 --- a/docs/device/crocodile-clips.md +++ b/docs/device/crocodile-clips.md @@ -2,7 +2,7 @@ The on pin pressed accessories. -Register an [event handler](/microbit/reference/event-handler) that will execute whenever the user attaches one side of the crocodile clip to the `GND` pin, then connects and disconnects the unattached side of the crocodile clip to pin `0`, `1`, or `2`. +Register an [event handler](/reference/event-handler) that will execute whenever the user attaches one side of the crocodile clip to the `GND` pin, then connects and disconnects the unattached side of the crocodile clip to pin `0`, `1`, or `2`. ### Example: on pin pressed with random numbers @@ -18,9 +18,9 @@ This example displays a random number every time the crocodile clip holds `GND` ### Lessons -[love meter](/microbit/lessons/love-meter) +[love meter](/lessons/love-meter) ### See also -[micro:bit pins](/microbit/device/pins), [pin is pressed](/microbit/reference/input/pin-is-pressed), [analog read pin](/microbit/reference/pins/analog-read-pin), [analog write pin](/microbit/reference/pins/analog-write-pin), [digital read pin](/microbit/reference/pins/digital-read-pin), [digital write pin](/microbit/reference/pins/digital-write-pin) +[micro:bit pins](/device/pins), [pin is pressed](/reference/input/pin-is-pressed), [analog read pin](/reference/pins/analog-read-pin), [analog write pin](/reference/pins/analog-write-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin) diff --git a/docs/device/error-codes.md b/docs/device/error-codes.md index 564b9a53..d640d2b8 100644 --- a/docs/device/error-codes.md +++ b/docs/device/error-codes.md @@ -13,5 +13,5 @@ Below is a list of error numbers and what they mean: ### See also -[Run scripts on your micro:bit](/microbit/device/usb) +[Run scripts on your micro:bit](/device/usb) diff --git a/docs/device/reactive.md b/docs/device/reactive.md index e6280bca..6a71076c 100644 --- a/docs/device/reactive.md +++ b/docs/device/reactive.md @@ -18,7 +18,7 @@ The micro:bit is a *reactive system* – it reacts continuously to external even We want reactive systems to be responsive, which means to react in a timely manner to events. For example, when you play a computer game, it’s frustrating if you press a button to make a character jump, but it doesn’t immediately jump. A delay in reacting, or lack of responsiveness , can be the difference between life and death, both in the real and virtual worlds. -Let’s consider a simple example: you want to program your micro:bit to accurately count the number of times the A button has been pressed and continuously display the current count on the 5x5 [LED screen](/microbit/device/screen). Because the LED screen is small, we can only display one digit of a number at a time on it. The [show number](/microbit/reference/basic/show-number) function will scroll the digits of a number across the screen so you can read it. +Let’s consider a simple example: you want to program your micro:bit to accurately count the number of times the A button has been pressed and continuously display the current count on the 5x5 [LED screen](/device/screen). Because the LED screen is small, we can only display one digit of a number at a time on it. The [show number](/reference/basic/show-number) function will scroll the digits of a number across the screen so you can read it. Let’s say that the current count is 42 and the number 42 is scrolling across the LED screen. This means there is some code executing to perform the scroll. So, what should happen if you press the A button during the scroll? It would be a bad idea to ignore the button press, so some code should record the occurrence of the button press. But we just said there already is code running in order to scroll the number 42! If we wait until the code scrolling the 42 has finished to look for a button press, we will miss the button press. We want to avoid this sort of unresponsiveness. diff --git a/docs/device/screen.md b/docs/device/screen.md index 3d088d2c..29f9aee8 100644 --- a/docs/device/screen.md +++ b/docs/device/screen.md @@ -30,15 +30,15 @@ Since the row and column numbers start at 0, an easy way to figure out the x, y ### Turn a LED on/off -Use [plot](/microbit/led/plot) and [unplot](/microbit/led/unplot) to turn a LED on or off +Use [plot](/led/plot) and [unplot](/led/unplot) to turn a LED on or off ### Is a LED on/off? -Use the [point](/microbit/led/point) function to find out if a LED is on or off. +Use the [point](/led/point) function to find out if a LED is on or off. ### Display images, strings and numbers -Instead of turning individual LEDs on or off, as above, you can display an [image](/microbit/reference/image/image) directly to the screen or show text/numbers on screen using the [show number](/microbit/reference/basic/show-number)/[show string](/microbit/reference/basic/show-string) function. +Instead of turning individual LEDs on or off, as above, you can display an [image](/reference/image/image) directly to the screen or show text/numbers on screen using the [show number](/reference/basic/show-number)/[show string](/reference/basic/show-string) function. ### The display buffer diff --git a/docs/device/usb.md b/docs/device/usb.md index e6755143..2bbf84c4 100644 --- a/docs/device/usb.md +++ b/docs/device/usb.md @@ -2,7 +2,7 @@ How to compile, transfer, and run a script on your micro:bit. -While you're writing and testing your Block Editor or Touch Develop scripts, you'll mostly be running scripts in your browser by clicking the `Run` button (see [run code in your browser](/microbit/js/simulator) for info about this). +While you're writing and testing your Block Editor or Touch Develop scripts, you'll mostly be running scripts in your browser by clicking the `Run` button (see [run code in your browser](/js/simulator) for info about this). Once your masterpiece is complete, you can compile your script and run it on your micro:bit. @@ -33,7 +33,7 @@ WARN: unknown picture: bvabdbco:5x3 ### ~hide -If your computer doesn't recognise your micro:bit, please see [troubleshooting USB problems](/microbit/diagnosing-usb). +If your computer doesn't recognise your micro:bit, please see [troubleshooting USB problems](/diagnosing-usb). ### ~ @@ -133,5 +133,5 @@ Or it may appear that there are two hex files on your micro:bit so the micro:bit ### See also -[Run code in a browser](/microbit/js/simulator) +[Run code in a browser](/js/simulator) diff --git a/docs/docs.md b/docs/docs.md index 52597e2e..5d5a4c01 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -2,6 +2,6 @@ Welcome to the documentation. -* Browse the [reference](/microbit/reference) -* Learn more about the [device](/microbit/device) -* Get started with [lessons](/microbit/lessons) +* Browse the [reference](/reference) +* Learn more about the [device](/device) +* Get started with [lessons](/lessons) diff --git a/docs/lessons.md b/docs/lessons.md index 4b39ba75..8459bd7d 100644 --- a/docs/lessons.md +++ b/docs/lessons.md @@ -7,19 +7,19 @@ ## Beginner -* [Beautiful Image](/microbit/lessons/beautiful-image), show a beautiful image with show LEDs -* [Lucky 7](/microbit/lessons/lucky-7), show a number on the LED screen with show number -* [Answering Machine](/microbit/lessons/answering-machine), show a text message with show string -* [Game of Chance](/microbit/lessons/game-of-chance), show a text message with game over -* [Smiley,](/microbit/lessons/smiley) smiley and frowney faces that transition on button pressed -* [Magic Logo,](/microbit/lessons/magic-logo) show an image on logo up -* [Snowflake Fall](/microbit/lessons/snowflake-fall), repeat a series of images with forever -* [Screen Wipe](/microbit/lessons/screen-wipe), turn off the LEDs with clear screen -* [Flashing Heart](/microbit/lessons/flashing-heart), display images with a pause -* [Blink](/microbit/lessons/blink), turn an LED on and off with plot -* [Night Light](/microbit/lessons/night-light), dim the LEDs with set brightness -* [Game Counter](/microbit/lessons/game-counter), displays the player's score with score and add points to score -* [Happy Birthday](/microbit/lessons/happy-birthday), create a popular song +* [Beautiful Image](/lessons/beautiful-image), show a beautiful image with show LEDs +* [Lucky 7](/lessons/lucky-7), show a number on the LED screen with show number +* [Answering Machine](/lessons/answering-machine), show a text message with show string +* [Game of Chance](/lessons/game-of-chance), show a text message with game over +* [Smiley,](/lessons/smiley) smiley and frowney faces that transition on button pressed +* [Magic Logo,](/lessons/magic-logo) show an image on logo up +* [Snowflake Fall](/lessons/snowflake-fall), repeat a series of images with forever +* [Screen Wipe](/lessons/screen-wipe), turn off the LEDs with clear screen +* [Flashing Heart](/lessons/flashing-heart), display images with a pause +* [Blink](/lessons/blink), turn an LED on and off with plot +* [Night Light](/lessons/night-light), dim the LEDs with set brightness +* [Game Counter](/lessons/game-counter), displays the player's score with score and add points to score +* [Happy Birthday](/lessons/happy-birthday), create a popular song ### ~ @@ -27,46 +27,46 @@ ## Intermediate -* [Magic 8](/microbit/lessons/magic-8), a fortune teller game with the BBC micro:bit -* [Guess the Number](/microbit/lessons/guess-the-number), guess a random number with pick number -* [Counter](/microbit/lessons/counter), display a number with a variable -* [Love Meter](/microbit/lessons/love-meter), create a love meter with on pin pressed -* [Rock Paper Scissors](/microbit/lessons/rock-paper-scissors), create the classic game of rock paper scissors with if statement -* [Truth or Dare](/microbit/lessons/truth-or-dare), a game that forces each player to reveal a secret or do something funny with if statement -* [Spinner](/microbit/lessons/spinner), spin the arrow with multiple if statements -* [Die Roll](/microbit/lessons/die-roll), spin with more if statements -* [Looper](/microbit/lessons/looper), display a series of numbers with a for loop index -* [Strobe Light](/microbit/lessons/strobe-light), develop shapes with a nested for loops -* [Temperature](/microbit/lessons/temperature), get the ambient temperature (degree Celsius °C) -* [Digi Yoyo](/microbit/lessons/digi-yoyo), create a counter with a while loop -* [Rotation Animation](/microbit/lessons/rotation-animation), control an animation with a boolean variable -* [Compass](/microbit/lessons/compass), displays the direction the BBC micro:bit is pointing with compass -* [Zoomer](/microbit/lessons/zoomer), measure the force with acceleration -* [Glowing Pendulum](/microbit/lessons/glowing-pendulum), construct a pendulum that glows using acceleration -* [Classic Beatbox](/microbit/lessons/classic-beatbox), make a beatbox music player with variables -* [Light Beatbox](/microbit/lessons/light-beatbox), make a beatbox music player with light level +* [Magic 8](/lessons/magic-8), a fortune teller game with the BBC micro:bit +* [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 +* [Die Roll](/lessons/die-roll), spin with more if statements +* [Looper](/lessons/looper), display a series of numbers with a for loop index +* [Strobe Light](/lessons/strobe-light), develop shapes with a nested for loops +* [Temperature](/lessons/temperature), get the ambient temperature (degree Celsius °C) +* [Digi Yoyo](/lessons/digi-yoyo), create a counter with a while loop +* [Rotation Animation](/lessons/rotation-animation), control an animation with a boolean variable +* [Compass](/lessons/compass), displays the direction the BBC micro:bit is pointing with compass +* [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 ### ~ ### ~column ## Maker -* [The Watch](/microbit/lessons/the-watch), design and create The Watch -* [Hack your Headphones](/microbit/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones -* [Banana Keyboard](/microbit/lessons/banana-keyboard), create music with fruits -* [Telegraph](/microbit/lessons/telegraph), play the telegraph game between two BBC micro:bits -* [Pogo](/microbit/lessons/pogo), create a pogo game to test your jumping abilities +* [The Watch](/lessons/the-watch), design and create The Watch +* [Hack your Headphones](/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones +* [Banana Keyboard](/lessons/banana-keyboard), create music with fruits +* [Telegraph](/lessons/telegraph), play the telegraph game between two BBC micro:bits +* [Pogo](/lessons/pogo), create a pogo game to test your jumping abilities ## Advanced -* [Charting](/microbit/lessons/charting), create a charting app between 2 BBC micro:bits -* [Prank WiFi](/microbit/lessons/prank-wifi), create fake WiFi to trick your friends -* [Speed Button](/microbit/lessons/speed-button), code a speed game with running time -* [Headbands](/microbit/lessons/headbands), create a charades game with a collection of strings that hold the words -* [Hero](/microbit/lessons/hero), reconstruct the classic arcade game pac man with the BBC micro:bit -* [Catch the Egg](/microbit/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller +* [Charting](/lessons/charting), create a charting app between 2 BBC micro:bits +* [Prank WiFi](/lessons/prank-wifi), create fake WiFi to trick your friends +* [Speed Button](/lessons/speed-button), code a speed game with running time +* [Headbands](/lessons/headbands), create a charades game with a collection of strings that hold the words +* [Hero](/lessons/hero), reconstruct the classic arcade game pac man with the BBC micro:bit +* [Catch the Egg](/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller ### ~ ### @section full -The lessons promote computational thinking and computer science literacy[ read more...](/microbit/lessons/teach) +The lessons promote computational thinking and computer science literacy[ read more...](/lessons/teach) diff --git a/docs/lessons/answering-machine.md b/docs/lessons/answering-machine.md index 0719b610..9a520b44 100644 --- a/docs/lessons/answering-machine.md +++ b/docs/lessons/answering-machine.md @@ -10,10 +10,10 @@ Show String ## Quick Links -* [activity](/microbit/lessons/answering-machine/activity) -* [quiz](/microbit/lessons/answering-machine/quiz) -* [quiz answers](/microbit/lessons/answering-machine/quiz-answers) -* [challenges](/microbit/lessons/answering-machine/challenges) +* [activity](/lessons/answering-machine/activity) +* [quiz](/lessons/answering-machine/quiz) +* [quiz answers](/lessons/answering-machine/quiz-answers) +* [challenges](/lessons/answering-machine/challenges) ## Prior learning / place of lesson in scheme of work @@ -29,7 +29,7 @@ input.onButtonPressed(Button.A, () => {}) ``` -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) ## Objectives diff --git a/docs/lessons/answering-machine/activity.md b/docs/lessons/answering-machine/activity.md index 2fad9620..a40e1241 100644 --- a/docs/lessons/answering-machine/activity.md +++ b/docs/lessons/answering-machine/activity.md @@ -18,7 +18,7 @@ basic.showString("ASK ME A QUESTION") ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/answering-machine/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/answering-machine/challenges)! ### ~ diff --git a/docs/lessons/answering-machine/challenges.md b/docs/lessons/answering-machine/challenges.md index 8956c74c..0c047f8d 100644 --- a/docs/lessons/answering-machine/challenges.md +++ b/docs/lessons/answering-machine/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the answering machine tutorial. ## Before we get started -Complete the [answering machine](/microbit/lessons/answering-machine/activity) activity and your code will look like this: +Complete the [answering machine](/lessons/answering-machine/activity) activity and your code will look like this: ```blocks basic.showString("ASK ME A QUESTION") diff --git a/docs/lessons/answering-machine/quiz-answers.md b/docs/lessons/answering-machine/quiz-answers.md index 76029729..f37f04ae 100644 --- a/docs/lessons/answering-machine/quiz-answers.md +++ b/docs/lessons/answering-machine/quiz-answers.md @@ -2,7 +2,7 @@ Create an answering machine on the micro:bit. -This is the answer key for the [answering machine quiz](/microbit/lessons/answering-machine/quiz). +This is the answer key for the [answering machine quiz](/lessons/answering-machine/quiz). ## 1. Define what `show string` does? diff --git a/docs/lessons/answering-machine/quiz.md b/docs/lessons/answering-machine/quiz.md index 4c69eb7c..e44e1cb4 100644 --- a/docs/lessons/answering-machine/quiz.md +++ b/docs/lessons/answering-machine/quiz.md @@ -6,7 +6,7 @@ Create an answering machine on the micro:bit. ## Directions -Use this activity document to guide your work in the [answering machine activity](/microbit/lessons/answering-machine/activity). +Use this activity document to guide your work in the [answering machine activity](/lessons/answering-machine/activity). Answer the questions while completing the activity. Pay attention to the dialogues! diff --git a/docs/lessons/banana-keyboard.md b/docs/lessons/banana-keyboard.md index 54e27d9b..230052f8 100644 --- a/docs/lessons/banana-keyboard.md +++ b/docs/lessons/banana-keyboard.md @@ -8,7 +8,7 @@ Music ## Quick Links -* [activity](/microbit/lessons/banana-keyboard/activity) +* [activity](/lessons/banana-keyboard/activity) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/banana-keyboard/activity.md b/docs/lessons/banana-keyboard/activity.md index 17f47cf1..833e139e 100644 --- a/docs/lessons/banana-keyboard/activity.md +++ b/docs/lessons/banana-keyboard/activity.md @@ -79,11 +79,11 @@ Your banana keyboard is ready! ### Step 10 -Connect your micro:bit to your computer using your USB cable and run the [banana keyboard](/microbit/lhpkbr) script on it. Tap your banana instrument to play sound against... the fruit! +Connect your micro:bit to your computer using your USB cable and run the [banana keyboard](/lhpkbr) script on it. Tap your banana instrument to play sound against... the fruit! ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/banana-keyboard/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/banana-keyboard/challenges)! ### ~ diff --git a/docs/lessons/banana-keyboard/challenges.md b/docs/lessons/banana-keyboard/challenges.md index 3589d4b6..65b3ef20 100644 --- a/docs/lessons/banana-keyboard/challenges.md +++ b/docs/lessons/banana-keyboard/challenges.md @@ -6,7 +6,7 @@ control images with variables. Control images with variables. -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*. Have you ever tried to making beat box sounds? Let's try making a beatbox with code! diff --git a/docs/lessons/beatbox.md b/docs/lessons/beatbox.md index 8b919f0e..43a7ccef 100644 --- a/docs/lessons/beatbox.md +++ b/docs/lessons/beatbox.md @@ -8,8 +8,8 @@ Music ## Quick Links -* [activity](/microbit/lessons/beatbox/activity) -* [challenges](/microbit/lessons/beatbox/challenges) +* [activity](/lessons/beatbox/activity) +* [challenges](/lessons/beatbox/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/beautiful-image.md b/docs/lessons/beautiful-image.md index 8ac75837..27973d03 100644 --- a/docs/lessons/beautiful-image.md +++ b/docs/lessons/beautiful-image.md @@ -10,8 +10,8 @@ Show LEDs ## Quick Links -* [activity](/microbit/lessons/beautiful-image/activity) -* [challenges](/microbit/lessons/beautiful-image/challenges) +* [activity](/lessons/beautiful-image/activity) +* [challenges](/lessons/beautiful-image/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/beautiful-image/activity.md b/docs/lessons/beautiful-image/activity.md index 28aa3153..6735578a 100644 --- a/docs/lessons/beautiful-image/activity.md +++ b/docs/lessons/beautiful-image/activity.md @@ -10,7 +10,7 @@ Let's learn how to show an image on the LED screen. ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under the *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under the *Block Editor*. We will use *show LEDs* to draw an image on the LED screen. This function immediately writes on the screen. @@ -26,7 +26,7 @@ basic.showLeds(` ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/beautiful-image/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/beautiful-image/challenges)! ### ~ diff --git a/docs/lessons/beautiful-image/challenges.md b/docs/lessons/beautiful-image/challenges.md index 2c0de484..e96a4736 100644 --- a/docs/lessons/beautiful-image/challenges.md +++ b/docs/lessons/beautiful-image/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the beautiful image tutorial. ## Before we get started -Complete the [beautiful image](/microbit/lessons/beautiful-image/activity) activity and your code will look like this: +Complete the [beautiful image](/lessons/beautiful-image/activity) activity and your code will look like this: ```blocks basic.showLeds(` diff --git a/docs/lessons/blink.md b/docs/lessons/blink.md index 02103dc7..74a96e27 100644 --- a/docs/lessons/blink.md +++ b/docs/lessons/blink.md @@ -10,10 +10,10 @@ Plot ## Quick links -* [activity](/microbit/lessons/blink/activity) -* [quiz](/microbit/lessons/blink/quiz) -* [quiz answers](/microbit/lessons/blink/quiz-answers) -* [challenges](/microbit/lessons/blink/challenges) +* [activity](/lessons/blink/activity) +* [quiz](/lessons/blink/quiz) +* [quiz answers](/lessons/blink/quiz-answers) +* [challenges](/lessons/blink/challenges) ## Prior learning / place of lesson in scheme of work diff --git a/docs/lessons/blink/activity.md b/docs/lessons/blink/activity.md index a13cee4b..4cedee1a 100644 --- a/docs/lessons/blink/activity.md +++ b/docs/lessons/blink/activity.md @@ -6,7 +6,7 @@ Turn an LED on and off with forever ### @video td/videos/blink-0 -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*. ### ~ @@ -50,7 +50,7 @@ basic.forever(() => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/blink/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/blink/challenges)! ### ~ diff --git a/docs/lessons/blink/challenges.md b/docs/lessons/blink/challenges.md index d25259bc..3baf3151 100644 --- a/docs/lessons/blink/challenges.md +++ b/docs/lessons/blink/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the blink tutorial ## Before we get started -Complete the [blink](/microbit/lessons/blink/activity) activity and your code will look like this: +Complete the [blink](/lessons/blink/activity) activity and your code will look like this: ```blocks basic.forever(() => { diff --git a/docs/lessons/blink/quiz-answers.md b/docs/lessons/blink/quiz-answers.md index cd36f16e..706d3f5e 100644 --- a/docs/lessons/blink/quiz-answers.md +++ b/docs/lessons/blink/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create a blinking LED script. -This is the answer key for the [blink quiz](/microbit/lessons/blink/quiz). +This is the answer key for the [blink quiz](/lessons/blink/quiz). ## 1. Describe what `plot` does? diff --git a/docs/lessons/blink/quiz.md b/docs/lessons/blink/quiz.md index 3336395e..d0998f75 100644 --- a/docs/lessons/blink/quiz.md +++ b/docs/lessons/blink/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking LED script. ## Directions -Use this activity document to guide your work in the [blink activity](/microbit/lessons/blink/activity). +Use this activity document to guide your work in the [blink activity](/lessons/blink/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/bop-it/quiz-answers.md b/docs/lessons/bop-it/quiz-answers.md index 65807933..971e7455 100644 --- a/docs/lessons/bop-it/quiz-answers.md +++ b/docs/lessons/bop-it/quiz-answers.md @@ -6,7 +6,7 @@ a game where you have to keep up with the commands. ## Directions -Use this activity document to guide your work in the [bop it tutorial](/microbit/lessons/bop-it/tutorial). +Use this activity document to guide your work in the [bop it tutorial](/lessons/bop-it/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/bop-it/quiz.md b/docs/lessons/bop-it/quiz.md index 4fa0e515..7b072e38 100644 --- a/docs/lessons/bop-it/quiz.md +++ b/docs/lessons/bop-it/quiz.md @@ -6,7 +6,7 @@ a game where you have to keep up with the commands. ## Directions -Use this activity document to guide your work in the [bop it tutorial](/microbit/lessons/bop-it/tutorial). +Use this activity document to guide your work in the [bop it tutorial](/lessons/bop-it/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/buzzer.md b/docs/lessons/buzzer.md index d019c4f3..a84b962e 100644 --- a/docs/lessons/buzzer.md +++ b/docs/lessons/buzzer.md @@ -8,8 +8,8 @@ Ring ## Quick Links -* [activity](/microbit/lessons/buzzer/activity) -* [challenges](/microbit/lessons/buzzer/challenges) +* [activity](/lessons/buzzer/activity) +* [challenges](/lessons/buzzer/challenges) ## Class @@ -21,9 +21,9 @@ Learn how to **ring** the buzzer to turn on the sound. We will be learning basic ## Documentation -* **ring** : [read more...](/microbit/reference/music/ring) -* **clear screen** : [read more...](/microbit/reference/basic/clear-screen) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) +* **ring** : [read more...](/reference/music/ring) +* **clear screen** : [read more...](/reference/basic/clear-screen) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) ## Objectives @@ -68,14 +68,14 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/buzzer/activity) +* [activity](/lessons/buzzer/activity) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/buzzer/challenges) +* [challenges](/lessons/buzzer/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/buzzer/challenges) +* Extended Activity: [challenges](/lessons/buzzer/challenges) diff --git a/docs/lessons/catch-the-egg-game.md b/docs/lessons/catch-the-egg-game.md index 102f0ff6..7a166741 100644 --- a/docs/lessons/catch-the-egg-game.md +++ b/docs/lessons/catch-the-egg-game.md @@ -10,9 +10,9 @@ Variables ## Quick Links -* [activity](/microbit/lessons/catch-the-egg-game/activity) -* [quiz](/microbit/lessons/catch-the-egg-game/quiz) -* [quiz answers](/microbit/lessons/catch-the-egg-game/quiz-answers) +* [activity](/lessons/catch-the-egg-game/activity) +* [quiz](/lessons/catch-the-egg-game/quiz) +* [quiz answers](/lessons/catch-the-egg-game/quiz-answers) ## Prior learning/place of lesson in scheme of work @@ -20,18 +20,18 @@ Learn how to create a catch the egg game game with **plot**, `led->plot` , **unp ## Documentation -* **variables** : [read more...](/microbit/reference/variables/var) -* **forever** : [read more...](/microbit/reference/basic/forever) -* **unplot** : [read more...](/microbit/reference/led/unplot) -* **plot** : [read more...](/microbit/reference/led/plot) -* **if** : [read more...](/microbit/reference/logic/if) -* **acceleration** : [read more...](/microbit/reference/input/acceleration) -* **math minimum number** : [read more...](/microbit/js/math) -* **math maximum number** : [read more...](/microbit/js/math) -* **math random number** : [read more...](/microbit/js/math) -* **math modulus** : [read more...](/microbit/js/math) -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **variables** : [read more...](/reference/variables/var) +* **forever** : [read more...](/reference/basic/forever) +* **unplot** : [read more...](/reference/led/unplot) +* **plot** : [read more...](/reference/led/plot) +* **if** : [read more...](/reference/logic/if) +* **acceleration** : [read more...](/reference/input/acceleration) +* **math minimum number** : [read more...](/js/math) +* **math maximum number** : [read more...](/js/math) +* **math random number** : [read more...](/js/math) +* **math modulus** : [read more...](/js/math) +* **show number** : [read more...](/reference/basic/show-number) +* **pause** : [read more...](/reference/basic/pause) ## Objectives diff --git a/docs/lessons/catch-the-egg-game/quiz-answers.md b/docs/lessons/catch-the-egg-game/quiz-answers.md index 7af3169d..4751aa36 100644 --- a/docs/lessons/catch-the-egg-game/quiz-answers.md +++ b/docs/lessons/catch-the-egg-game/quiz-answers.md @@ -6,7 +6,7 @@ Programming a game of catch the egg using the accelerometer ## Directions -Use this activity document to guide your work in the [catch the egg tutorial](/microbit/lessons/catch-the-egg-game/tutorial) +Use this activity document to guide your work in the [catch the egg tutorial](/lessons/catch-the-egg-game/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/catch-the-egg-game/quiz.md b/docs/lessons/catch-the-egg-game/quiz.md index 6965c32a..b4939c20 100644 --- a/docs/lessons/catch-the-egg-game/quiz.md +++ b/docs/lessons/catch-the-egg-game/quiz.md @@ -6,7 +6,7 @@ Programming a game of catch the egg using the accelerometer. ## Directions -Use this activity document to guide your work in the [catch the egg challenges](/microbit/lessons/catch-the-egg-game/activity) +Use this activity document to guide your work in the [catch the egg challenges](/lessons/catch-the-egg-game/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/challenges.md b/docs/lessons/challenges.md index 77b43e72..27fd0519 100644 --- a/docs/lessons/challenges.md +++ b/docs/lessons/challenges.md @@ -22,7 +22,7 @@ Create a timer that runs out after a certain amount of time (using the *count* l ## Graphics Challenges [3] -Using the knowledge you have learnt from the [rendering graphics](/microbit/lessons/graphics) section, try creating an algorithm to draw these shapes. Before you write the code try to figure out how the BBC micro:bit will be thinking to plot these points. For example, with our diagonal line – “count up from 0 to 4 by 1, and plot points x=i and y=i”. +Using the knowledge you have learnt from the [rendering graphics](/lessons/graphics) section, try creating an algorithm to draw these shapes. Before you write the code try to figure out how the BBC micro:bit will be thinking to plot these points. For example, with our diagonal line – “count up from 0 to 4 by 1, and plot points x=i and y=i”. * Another diagonal line * A square going around the board diff --git a/docs/lessons/charting.md b/docs/lessons/charting.md index 9723f9a5..28162c00 100644 --- a/docs/lessons/charting.md +++ b/docs/lessons/charting.md @@ -8,7 +8,7 @@ Acceleration ## Quick Links -* [activity](/microbit/lessons/charting/activity) +* [activity](/lessons/charting/activity) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/charting/activity.md b/docs/lessons/charting/activity.md index 70805abe..cbb41cf5 100644 --- a/docs/lessons/charting/activity.md +++ b/docs/lessons/charting/activity.md @@ -4,7 +4,7 @@ Measure the acceleration on the micro:bit in the "z" direction. ### ~avatar avatar -To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`. +To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`. ### ~ diff --git a/docs/lessons/classic-beatbox.md b/docs/lessons/classic-beatbox.md index 29b8bdbf..7edf6526 100644 --- a/docs/lessons/classic-beatbox.md +++ b/docs/lessons/classic-beatbox.md @@ -8,8 +8,8 @@ Music ## Quick Links -* [activity](/microbit/lessons/classic-beatbox/activity) -* [challenges](/microbit/lessons/classic-beatbox/challenges) +* [activity](/lessons/classic-beatbox/activity) +* [challenges](/lessons/classic-beatbox/challenges) diff --git a/docs/lessons/classic-beatbox/activity.md b/docs/lessons/classic-beatbox/activity.md index 300a3f6d..07d2cce3 100644 --- a/docs/lessons/classic-beatbox/activity.md +++ b/docs/lessons/classic-beatbox/activity.md @@ -2,7 +2,7 @@ Control images with variables. -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*. Have you ever tried to making beat box sounds? Let's try making a beatbox with code! @@ -51,6 +51,6 @@ input.onPinPressed(TouchPin.P1, () => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/classic-beatbox/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/classic-beatbox/challenges)! ### ~ \ No newline at end of file diff --git a/docs/lessons/classic-beatbox/challenges.md b/docs/lessons/classic-beatbox/challenges.md index 2a7380bb..0f98c02e 100644 --- a/docs/lessons/classic-beatbox/challenges.md +++ b/docs/lessons/classic-beatbox/challenges.md @@ -4,7 +4,7 @@ Create sounds with variables. ## Before we get started -Complete the [beatbox](/microbit/lessons/beatbox/activity) activity and your code will look like this: +Complete the [beatbox](/lessons/beatbox/activity) activity and your code will look like this: ```blocks diff --git a/docs/lessons/compass.md b/docs/lessons/compass.md index f55fae7a..2278e2f6 100644 --- a/docs/lessons/compass.md +++ b/docs/lessons/compass.md @@ -10,10 +10,10 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/compass/activity) -* [challenges](/microbit/lessons/compass/challenges) -* [quiz](/microbit/lessons/compass/quiz) -* [quiz answers](/microbit/lessons/compass/quiz-answers) +* [activity](/lessons/compass/activity) +* [challenges](/lessons/compass/challenges) +* [quiz](/lessons/compass/quiz) +* [quiz answers](/lessons/compass/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/compass/activity.md b/docs/lessons/compass/activity.md index c4031140..281ac64f 100644 --- a/docs/lessons/compass/activity.md +++ b/docs/lessons/compass/activity.md @@ -96,7 +96,7 @@ basic.forever(() => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/compass/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/compass/challenges)! ### ~ diff --git a/docs/lessons/compass/challenges.md b/docs/lessons/compass/challenges.md index 4603b7b9..172d4986 100644 --- a/docs/lessons/compass/challenges.md +++ b/docs/lessons/compass/challenges.md @@ -4,7 +4,7 @@ Display the direction that the micro:bit is facing using the compass ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/compass/activity), your code should look like this: +Complete the following [guided tutorial](/lessons/compass/activity), your code should look like this: ```blocks let degrees = 0; diff --git a/docs/lessons/compass/quiz-answers.md b/docs/lessons/compass/quiz-answers.md index 489251e1..ca1f9067 100644 --- a/docs/lessons/compass/quiz-answers.md +++ b/docs/lessons/compass/quiz-answers.md @@ -6,7 +6,7 @@ Create an actual compass to show your direction: North, South, East, or West ## Directions -Use this activity document to guide your work in the [compass tutorial](/microbit/lessons/compass/activity). +Use this activity document to guide your work in the [compass tutorial](/lessons/compass/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/compass/quiz.md b/docs/lessons/compass/quiz.md index 47452e6d..180e9b81 100644 --- a/docs/lessons/compass/quiz.md +++ b/docs/lessons/compass/quiz.md @@ -6,7 +6,7 @@ Create an actual compass to show your direction: North, South, East, or West ## Directions -Use this activity document to guide your work in the [compass activity](/microbit/lessons/compass/activity). +Use this activity document to guide your work in the [compass activity](/lessons/compass/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/counter.md b/docs/lessons/counter.md index 0938c1b3..18afef28 100644 --- a/docs/lessons/counter.md +++ b/docs/lessons/counter.md @@ -10,10 +10,10 @@ Variables ## Quick Links -* [activity](/microbit/lessons/counter/activity) -* [challenges](/microbit/lessons/counter/challenges) -* [quiz](/microbit/lessons/counter/quiz) -* [quiz answers](/microbit/lessons/counter/quiz-answers) +* [activity](/lessons/counter/activity) +* [challenges](/lessons/counter/challenges) +* [quiz](/lessons/counter/quiz) +* [quiz answers](/lessons/counter/quiz-answers) ## Prior learning/place of lesson in scheme of work @@ -36,10 +36,10 @@ basic.showLeds(` `) ``` -* **variable**: [read more...](/microbit/reference/variables/var) -* **arithmetic operators**: [read more...](/microbit/reference/types/number) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **variable**: [read more...](/reference/variables/var) +* **arithmetic operators**: [read more...](/reference/types/number) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **show number** : [read more...](/reference/basic/show-number) ## Objectives diff --git a/docs/lessons/counter/activity.md b/docs/lessons/counter/activity.md index 2667b33e..50725090 100644 --- a/docs/lessons/counter/activity.md +++ b/docs/lessons/counter/activity.md @@ -39,7 +39,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/counter/challenges) +Excellent, you're ready to continue with the [challenges](/lessons/counter/challenges) ### ~ diff --git a/docs/lessons/counter/challenges.md b/docs/lessons/counter/challenges.md index 29bd79b9..5dc0acab 100644 --- a/docs/lessons/counter/challenges.md +++ b/docs/lessons/counter/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the counter. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/counter/activity) At the end of the tutorial, click **keep editing**. Your code should look like this: +Complete the following [guided tutorial](/lessons/counter/activity) At the end of the tutorial, click **keep editing**. Your code should look like this: ```blocks let count = 0 diff --git a/docs/lessons/counter/quiz-answers.md b/docs/lessons/counter/quiz-answers.md index f109ca7c..c281afd0 100644 --- a/docs/lessons/counter/quiz-answers.md +++ b/docs/lessons/counter/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create a counter with the BBC micro:bit button. -This is the answer key for the [counter quiz](/microbit/lessons/counter/quiz). +This is the answer key for the [counter quiz](/lessons/counter/quiz). ## 1. What is a variable? diff --git a/docs/lessons/counter/quiz.md b/docs/lessons/counter/quiz.md index bd8f9d4b..745d81f0 100644 --- a/docs/lessons/counter/quiz.md +++ b/docs/lessons/counter/quiz.md @@ -6,7 +6,7 @@ Learn how to create a counter with the BBC micro:bit button. ## Directions -Use this activity document to guide your work in the [counter tutorial](/microbit/lessons/counter/activity). +Use this activity document to guide your work in the [counter tutorial](/lessons/counter/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/crocodile-clip/activity.md b/docs/lessons/crocodile-clip/activity.md index f547d156..cbc78f17 100644 --- a/docs/lessons/crocodile-clip/activity.md +++ b/docs/lessons/crocodile-clip/activity.md @@ -37,5 +37,5 @@ Your circuit is complete! ### Step 10 -Connect your micro:bit to your computer using your USB cable and run the [guess the number](/microbit/lhpkbr) script on it. +Connect your micro:bit to your computer using your USB cable and run the [guess the number](/lhpkbr) script on it. diff --git a/docs/lessons/die-roll.md b/docs/lessons/die-roll.md index f7f740ce..622292ea 100644 --- a/docs/lessons/die-roll.md +++ b/docs/lessons/die-roll.md @@ -10,10 +10,10 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/die-roll/activity) -* [challenges](/microbit/lessons/die-roll/challenges) -* [quiz](/microbit/lessons/die-roll/quiz) -* [quiz answers](/microbit/lessons/die-roll/quiz-answers) +* [activity](/lessons/die-roll/activity) +* [challenges](/lessons/die-roll/challenges) +* [quiz](/lessons/die-roll/quiz) +* [quiz answers](/lessons/die-roll/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/die-roll/activity.md b/docs/lessons/die-roll/activity.md index 2a9c380d..3f6940fc 100644 --- a/docs/lessons/die-roll/activity.md +++ b/docs/lessons/die-roll/activity.md @@ -165,7 +165,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/die-roll/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/die-roll/challenges)! ### ~ diff --git a/docs/lessons/die-roll/challenges.md b/docs/lessons/die-roll/challenges.md index 4b1dc900..8e29ba66 100644 --- a/docs/lessons/die-roll/challenges.md +++ b/docs/lessons/die-roll/challenges.md @@ -4,7 +4,7 @@ Create a die on the micro:bit. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/die-roll/activity), your code should look like this: +Complete the following [guided tutorial](/lessons/die-roll/activity), your code should look like this: ```blocks input.onGesture(Gesture.Shake, () => { diff --git a/docs/lessons/die-roll/quiz-answers.md b/docs/lessons/die-roll/quiz-answers.md index b94306eb..758359dc 100644 --- a/docs/lessons/die-roll/quiz-answers.md +++ b/docs/lessons/die-roll/quiz-answers.md @@ -2,7 +2,7 @@ Create a die when the BBC micro:bit is shaken -These are the answers to the [die roll quiz](/microbit/lessons/die-roll/quiz). +These are the answers to the [die roll quiz](/lessons/die-roll/quiz). ## 1. Create a variable named 'roll' that will be randomly assigned to a number between 0 and 5. diff --git a/docs/lessons/die-roll/quiz.md b/docs/lessons/die-roll/quiz.md index e97e7364..bf796902 100644 --- a/docs/lessons/die-roll/quiz.md +++ b/docs/lessons/die-roll/quiz.md @@ -6,7 +6,7 @@ Create a die when the BBC micro:bit is shaken ## Directions -Use this activity document to guide your work in the [die roll tutorial](/microbit/lessons/die-roll/activity). +Use this activity document to guide your work in the [die roll tutorial](/lessons/die-roll/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/digi-yoyo.md b/docs/lessons/digi-yoyo.md index f2adaaa6..7a4ecb80 100644 --- a/docs/lessons/digi-yoyo.md +++ b/docs/lessons/digi-yoyo.md @@ -10,10 +10,10 @@ While Loop ## Quick Links -* [activity](/microbit/lessons/digi-yoyo/activity) -* [challenges](/microbit/lessons/digi-yoyo/challenges) -* [quiz](/microbit/lessons/digi-yoyo/quiz) -* [quiz answers](/microbit/lessons/digi-yoyo/quiz-answers) +* [activity](/lessons/digi-yoyo/activity) +* [challenges](/lessons/digi-yoyo/challenges) +* [quiz](/lessons/digi-yoyo/quiz) +* [quiz answers](/lessons/digi-yoyo/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/digi-yoyo/activity.md b/docs/lessons/digi-yoyo/activity.md index f15e6177..d503a605 100644 --- a/docs/lessons/digi-yoyo/activity.md +++ b/docs/lessons/digi-yoyo/activity.md @@ -54,7 +54,7 @@ while (count < 10) { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/digi-yoyo/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/digi-yoyo/challenges)! ### ~ diff --git a/docs/lessons/digi-yoyo/challenges.md b/docs/lessons/digi-yoyo/challenges.md index 24dee263..4665babf 100644 --- a/docs/lessons/digi-yoyo/challenges.md +++ b/docs/lessons/digi-yoyo/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the digi yoyo. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/digi-yoyo/activity), your code should look like this: +Complete the following [guided tutorial](/lessons/digi-yoyo/activity), your code should look like this: ```blocks diff --git a/docs/lessons/digi-yoyo/quiz-answers.md b/docs/lessons/digi-yoyo/quiz-answers.md index 4a281b20..0949854f 100644 --- a/docs/lessons/digi-yoyo/quiz-answers.md +++ b/docs/lessons/digi-yoyo/quiz-answers.md @@ -2,7 +2,7 @@ Answers for digi yoyo quiz. -This is the answer key for the [digi yoyo quiz](/microbit/lessons/digi-yoyo/quiz). +This is the answer key for the [digi yoyo quiz](/lessons/digi-yoyo/quiz). ## 1. Describe what a "while loop" does? diff --git a/docs/lessons/digi-yoyo/quiz.md b/docs/lessons/digi-yoyo/quiz.md index 0f97309c..474b3bf1 100644 --- a/docs/lessons/digi-yoyo/quiz.md +++ b/docs/lessons/digi-yoyo/quiz.md @@ -6,7 +6,7 @@ Create a counter with a while loop ## Directions -Use this activity document to guide your work in the [digi yoyo tutorial](/microbit/lessons/digi-yoyo/activity) +Use this activity document to guide your work in the [digi yoyo tutorial](/lessons/digi-yoyo/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/flashing-heart.md b/docs/lessons/flashing-heart.md index 1a274fee..eb711aae 100644 --- a/docs/lessons/flashing-heart.md +++ b/docs/lessons/flashing-heart.md @@ -10,10 +10,10 @@ Pause ## Quick links -* [activity](/microbit/lessons/flashing-heart/activity) -* [quiz](/microbit/lessons/flashing-heart/quiz) -* [quiz answers](/microbit/lessons/flashing-heart/quiz-answers) -* [challenges](/microbit/lessons/flashing-heart/challenges) +* [activity](/lessons/flashing-heart/activity) +* [quiz](/lessons/flashing-heart/quiz) +* [quiz answers](/lessons/flashing-heart/quiz-answers) +* [challenges](/lessons/flashing-heart/challenges) ## Prior learning/place of lesson in scheme of work Learn how to `show LEDs` by showing an image on the LED screen. We will be learning how to create a blinking app using a forever loop as well as simple commands, such as show LEDs, pause, and clear screen. diff --git a/docs/lessons/flashing-heart/activity.md b/docs/lessons/flashing-heart/activity.md index ab7cdc69..b846302b 100644 --- a/docs/lessons/flashing-heart/activity.md +++ b/docs/lessons/flashing-heart/activity.md @@ -10,7 +10,7 @@ In this activity, you will learn how to blink an image on the LED screen. ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*. Let's start by adding code that plots a heart image on the screen using `show LEDs`. Once you are done coding, don't forget to run your code in the simulator or the micro:bit. @@ -69,7 +69,7 @@ basic.forever(() => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/flashing-heart/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/flashing-heart/challenges)! ### ~ diff --git a/docs/lessons/flashing-heart/challenges.md b/docs/lessons/flashing-heart/challenges.md index 3119823e..dab0bc4d 100644 --- a/docs/lessons/flashing-heart/challenges.md +++ b/docs/lessons/flashing-heart/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the flashing heart tutorial. ## Before we get started -Complete the [flashing heart](/microbit/lessons/flashing-heart/activity) activity and your code will look like this: +Complete the [flashing heart](/lessons/flashing-heart/activity) activity and your code will look like this: ```blocks basic.forever(() => { diff --git a/docs/lessons/flashing-heart/quiz-answers.md b/docs/lessons/flashing-heart/quiz-answers.md index 99ea40de..d946be68 100644 --- a/docs/lessons/flashing-heart/quiz-answers.md +++ b/docs/lessons/flashing-heart/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create an image with a variable. -This is the answer key for the [flashing heart quiz](/microbit/lessons/flashing-heart/quiz). +This is the answer key for the [flashing heart quiz](/lessons/flashing-heart/quiz). ## 1. Describe what pause does diff --git a/docs/lessons/flashing-heart/quiz.md b/docs/lessons/flashing-heart/quiz.md index 50386b96..07991a0b 100644 --- a/docs/lessons/flashing-heart/quiz.md +++ b/docs/lessons/flashing-heart/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking image with a variable. ## Directions -Use this activity document to guide your work in the [flashing heart activity](/microbit/lessons/flashing-heart/activity). +Use this activity document to guide your work in the [flashing heart activity](/lessons/flashing-heart/activity). Answer the questions while completing the activity. Pay attention to the dialogues! diff --git a/docs/lessons/game-counter.md b/docs/lessons/game-counter.md index 4687c137..29ea361a 100644 --- a/docs/lessons/game-counter.md +++ b/docs/lessons/game-counter.md @@ -10,8 +10,8 @@ Game Library ## Quick Links -* [activity](/microbit/lessons/game-counter/activity) -* [challenges](/microbit/lessons/game-counter/challenges) +* [activity](/lessons/game-counter/activity) +* [challenges](/lessons/game-counter/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/game-counter/activity.md b/docs/lessons/game-counter/activity.md index e4a542da..946a9c84 100644 --- a/docs/lessons/game-counter/activity.md +++ b/docs/lessons/game-counter/activity.md @@ -6,7 +6,7 @@ Turn an LED on and off with forever loop ### @video td/videos/counter-0 -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*. ### ~ @@ -36,7 +36,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/game-counter/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/game-counter/challenges)! ### ~ diff --git a/docs/lessons/game-counter/challenges.md b/docs/lessons/game-counter/challenges.md index 2bb689e2..b472721d 100644 --- a/docs/lessons/game-counter/challenges.md +++ b/docs/lessons/game-counter/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the game counter. ## Before we get started -Complete the following [activity](/microbit/lessons/game-counter/activity) . Your code should look like this: +Complete the following [activity](/lessons/game-counter/activity) . Your code should look like this: ```blocks input.onButtonPressed(Button.A, () => { diff --git a/docs/lessons/game-of-chance.md b/docs/lessons/game-of-chance.md index afae310f..b16c57a3 100644 --- a/docs/lessons/game-of-chance.md +++ b/docs/lessons/game-of-chance.md @@ -8,8 +8,8 @@ Game Library ## Quick Links -* [activity](/microbit/lessons/game-of-chance/activity) -* [challenges](/microbit/lessons/game-of-chance/challenges) +* [activity](/lessons/game-of-chance/activity) +* [challenges](/lessons/game-of-chance/challenges) ## Prior learning / place of lesson in scheme of work diff --git a/docs/lessons/game-of-chance/activity.md b/docs/lessons/game-of-chance/activity.md index bb35e056..0f4d12ed 100644 --- a/docs/lessons/game-of-chance/activity.md +++ b/docs/lessons/game-of-chance/activity.md @@ -10,7 +10,7 @@ basic.showString("SELECT A BUTTON") ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/game-of-chance/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/game-of-chance/challenges)! ### ~ diff --git a/docs/lessons/game-of-chance/challenges.md b/docs/lessons/game-of-chance/challenges.md index 7840075c..d0d39033 100644 --- a/docs/lessons/game-of-chance/challenges.md +++ b/docs/lessons/game-of-chance/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the answering machine tutorial. ## Before we get started -Complete the [game of chance](/microbit/lessons/game-of-chance/activity) activity and your code will look like this: +Complete the [game of chance](/lessons/game-of-chance/activity) activity and your code will look like this: ```blocks basic.showString("SELECT A BUTTON") diff --git a/docs/lessons/glowing-pendulum.md b/docs/lessons/glowing-pendulum.md index edf40047..9fdcaccd 100644 --- a/docs/lessons/glowing-pendulum.md +++ b/docs/lessons/glowing-pendulum.md @@ -8,10 +8,10 @@ Acceleration ## Quick Links -* [activity](/microbit/lessons/glowing-pendulum/activity) -* [challenges](/microbit/lessons/glowing-pendulum/challenges) -* [quiz](/microbit/lessons/glowing-pendulum/quiz) -* [quiz answers](/microbit/lessons/glowing-pendulum/quiz-answers) +* [activity](/lessons/glowing-pendulum/activity) +* [challenges](/lessons/glowing-pendulum/challenges) +* [quiz](/lessons/glowing-pendulum/quiz) +* [quiz answers](/lessons/glowing-pendulum/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/glowing-pendulum/activity.md b/docs/lessons/glowing-pendulum/activity.md index 097cca37..c9208178 100644 --- a/docs/lessons/glowing-pendulum/activity.md +++ b/docs/lessons/glowing-pendulum/activity.md @@ -2,7 +2,7 @@ Construct a pendulum that glows using acceleration. -To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`. +To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`. Welcome! This activity will teach how to construct a pendulum that glows using acceleration. Let's get started! @@ -51,7 +51,7 @@ Let's show what the brightness of the micro:bit is by turning all the LEDs on! ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/glowing-pendulum/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/glowing-pendulum/challenges)! ### ~ diff --git a/docs/lessons/glowing-pendulum/challenges.md b/docs/lessons/glowing-pendulum/challenges.md index e582e559..8e2dba99 100644 --- a/docs/lessons/glowing-pendulum/challenges.md +++ b/docs/lessons/glowing-pendulum/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the glowing pendulum tutorial. ## Before we get started -Complete the following [glowing pendulum activity](/microbit/lessons/glowing-pendulum/activity) and your code should look like this: +Complete the following [glowing pendulum activity](/lessons/glowing-pendulum/activity) and your code should look like this: ![](/static/mb/blocks/lessons/glowing-pendulum-5.png) diff --git a/docs/lessons/glowing-pendulum/quiz-answers.md b/docs/lessons/glowing-pendulum/quiz-answers.md index 2148ce34..eb178400 100644 --- a/docs/lessons/glowing-pendulum/quiz-answers.md +++ b/docs/lessons/glowing-pendulum/quiz-answers.md @@ -6,7 +6,7 @@ construct a pendulum that glows using acceleration. ## Directions -Use this activity document to guide your work in the [glowing pendulum tutorial](/microbit/lessons/glowing-pendulum/tutorial) +Use this activity document to guide your work in the [glowing pendulum tutorial](/lessons/glowing-pendulum/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/glowing-pendulum/quiz.md b/docs/lessons/glowing-pendulum/quiz.md index 00f29a81..4b9bebeb 100644 --- a/docs/lessons/glowing-pendulum/quiz.md +++ b/docs/lessons/glowing-pendulum/quiz.md @@ -6,7 +6,7 @@ construct a pendulum that glows using acceleration. ## Directions -Use this activity document to guide your work in the [glowing pendulum tutorial](/microbit/lessons/glowing-pendulum/activity) +Use this activity document to guide your work in the [glowing pendulum tutorial](/lessons/glowing-pendulum/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/glowing-sword.md b/docs/lessons/glowing-sword.md index 19978225..7c701b78 100644 --- a/docs/lessons/glowing-sword.md +++ b/docs/lessons/glowing-sword.md @@ -10,10 +10,10 @@ Fade Out ## Quick Links -* [activity](/microbit/lessons/glowing-sword/activity) -* [quiz](/microbit/lessons/glowing-sword/quiz) -* [quiz answers](/microbit/lessons/glowing-sword/quiz-answers) -* [challenges](/microbit/lessons/glowing-sword/challenges) +* [activity](/lessons/glowing-sword/activity) +* [quiz](/lessons/glowing-sword/quiz) +* [quiz answers](/lessons/glowing-sword/quiz-answers) +* [challenges](/lessons/glowing-sword/challenges) ## Prior learning/place of lesson in scheme of work @@ -21,10 +21,10 @@ Learn how to manipulate an image through **fade out**, `fade out` to gradually d ## Documentation -* **create image** : [read more...](/microbit/reference/images/create-image) -* **show image** : [read more...](/microbit/reference/images/show-image) -* **fade out** : [read more...](/microbit/reference/led/fade-out) -* **pause** : [read more...](/microbit/reference/basic/pause) -* **fade in** : [read more...](/microbit/reference/led/fade-in) +* **create image** : [read more...](/reference/images/create-image) +* **show image** : [read more...](/reference/images/show-image) +* **fade out** : [read more...](/reference/led/fade-out) +* **pause** : [read more...](/reference/basic/pause) +* **fade in** : [read more...](/reference/led/fade-in) diff --git a/docs/lessons/graphics.md b/docs/lessons/graphics.md index a61ae480..035e938e 100644 --- a/docs/lessons/graphics.md +++ b/docs/lessons/graphics.md @@ -44,7 +44,7 @@ Try devising an algorithm for a diagonal line using the code above and the varia ![](/static/mb/blocks/lessons/graphics-3.png) -We can create more complex algorithms for more complex shapes, too. See the [challenges](/microbit/lessons/challenges) section for additional graphical challenges and solutions. +We can create more complex algorithms for more complex shapes, too. See the [challenges](/lessons/challenges) section for additional graphical challenges and solutions. ### Animations @@ -52,7 +52,7 @@ Animations are changes happening at a certain rate. For example, we could add th We could create more complex animations, for example we could make our BBC micro:bit display an explosion or fireworks. -See the [challenges](/microbit/lessons/challenges) section for some animation tasks. +See the [challenges](/lessons/challenges) section for some animation tasks. ### Image variables diff --git a/docs/lessons/guess-the-number.md b/docs/lessons/guess-the-number.md index 6fb60ed4..611bd482 100644 --- a/docs/lessons/guess-the-number.md +++ b/docs/lessons/guess-the-number.md @@ -10,10 +10,10 @@ Math - Pick Random ## Quick links -* [activity](/microbit/lessons/guess-the-number/activity) -* [challenges](/microbit/lessons/guess-the-number/challenges) -* [quiz](/microbit/lessons/guess-the-number/quiz) -* [quiz answers](/microbit/lessons/guess-the-number/quiz-answers) +* [activity](/lessons/guess-the-number/activity) +* [challenges](/lessons/guess-the-number/challenges) +* [quiz](/lessons/guess-the-number/quiz) +* [quiz answers](/lessons/guess-the-number/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/guess-the-number/activity.md b/docs/lessons/guess-the-number/activity.md index 12fbe368..a7e2fb4c 100644 --- a/docs/lessons/guess-the-number/activity.md +++ b/docs/lessons/guess-the-number/activity.md @@ -42,7 +42,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/guess-the-number/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/guess-the-number/challenges)! ### ~ diff --git a/docs/lessons/guess-the-number/challenges.md b/docs/lessons/guess-the-number/challenges.md index c713757c..3c6ec6af 100644 --- a/docs/lessons/guess-the-number/challenges.md +++ b/docs/lessons/guess-the-number/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the guess the number tutorial. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/guess-the-number/activity), and your code should look like this: +Complete the following [guided tutorial](/lessons/guess-the-number/activity), and your code should look like this: ```blocks input.onButtonPressed(Button.A, () => { diff --git a/docs/lessons/guess-the-number/quiz-answers.md b/docs/lessons/guess-the-number/quiz-answers.md index 01492412..a417ea02 100644 --- a/docs/lessons/guess-the-number/quiz-answers.md +++ b/docs/lessons/guess-the-number/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to generate a random number on the micro:bit. -This is the answer key for the [guess the number quiz](/microbit/lessons/guess-the-number/quiz). +This is the answer key for the [guess the number quiz](/lessons/guess-the-number/quiz). ## 1. What is on button pressed? diff --git a/docs/lessons/guess-the-number/quiz.md b/docs/lessons/guess-the-number/quiz.md index d593dfc6..81184c2a 100644 --- a/docs/lessons/guess-the-number/quiz.md +++ b/docs/lessons/guess-the-number/quiz.md @@ -6,7 +6,7 @@ Learn how to generate a random number on the micro:bit. ## Directions -Use this activity document to guide your work in the [guess the number tutorial](/microbit/lessons/guess-the-number/activity). +Use this activity document to guide your work in the [guess the number tutorial](/lessons/guess-the-number/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/hack-your-headphones.md b/docs/lessons/hack-your-headphones.md index d634d9cf..5df72299 100644 --- a/docs/lessons/hack-your-headphones.md +++ b/docs/lessons/hack-your-headphones.md @@ -8,7 +8,7 @@ Hack your headphone ## Quick Links -* [activity](/microbit/lessons/hack-your-headphones/activity) +* [activity](/lessons/hack-your-headphones/activity) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/hack-your-headphones/activity.md b/docs/lessons/hack-your-headphones/activity.md index 3e4ca08a..42ce3ea8 100644 --- a/docs/lessons/hack-your-headphones/activity.md +++ b/docs/lessons/hack-your-headphones/activity.md @@ -52,10 +52,10 @@ You hacked your headphones! ### Step 6 -Connect your micro:bit to your computer using your USB cable and program [light beatbox](/microbit/lessons/light-beatbox/activity) music on it. Press the reset button to restart your music player! +Connect your micro:bit to your computer using your USB cable and program [light beatbox](/lessons/light-beatbox/activity) music on it. Press the reset button to restart your music player! ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/light-beatbox/activity)! +Excellent, you're ready to continue with the [challenges](/lessons/light-beatbox/activity)! ### ~ diff --git a/docs/lessons/happy-birthday.md b/docs/lessons/happy-birthday.md index 5dbb60ab..bc002cff 100644 --- a/docs/lessons/happy-birthday.md +++ b/docs/lessons/happy-birthday.md @@ -8,8 +8,8 @@ Music ## Quick Links -* [activity](/microbit/lessons/happy-birthday/activity) -* [challenges](/microbit/lessons/happy-birthday/challenges) +* [activity](/lessons/happy-birthday/activity) +* [challenges](/lessons/happy-birthday/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/happy-birthday/activity.md b/docs/lessons/happy-birthday/activity.md index b65ca17c..6d927bcb 100644 --- a/docs/lessons/happy-birthday/activity.md +++ b/docs/lessons/happy-birthday/activity.md @@ -2,7 +2,7 @@ Play sounds with music blocks. -To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`. +To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`. Have you ever tried to play a song on an instrument? Let's try coding the song "Happy Birthday" on the micro:bit ! @@ -52,7 +52,7 @@ basic.pause(100); ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/happy-birthday/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/happy-birthday/challenges)! ### ~ diff --git a/docs/lessons/happy-birthday/challenges.md b/docs/lessons/happy-birthday/challenges.md index ec919ad3..d07a613e 100644 --- a/docs/lessons/happy-birthday/challenges.md +++ b/docs/lessons/happy-birthday/challenges.md @@ -4,7 +4,7 @@ Coding challenges for finishing the song, happy birthday. ## Before we get started -Complete the [happy birthday](/microbit/lessons/happy-birthday/activity) activity and your code will look like this: +Complete the [happy birthday](/lessons/happy-birthday/activity) activity and your code will look like this: ```blocks diff --git a/docs/lessons/headbands.md b/docs/lessons/headbands.md index 4b5312e5..32fb634f 100644 --- a/docs/lessons/headbands.md +++ b/docs/lessons/headbands.md @@ -8,9 +8,9 @@ Collection ## Quick Links -* [activity](/microbit/lessons/headbands/activity) -* [quiz](/microbit/lessons/headbands/quiz) -* [quiz answers](/microbit/lessons/headbands/quiz-answers) +* [activity](/lessons/headbands/activity) +* [quiz](/lessons/headbands/quiz) +* [quiz answers](/lessons/headbands/quiz-answers) ## Class @@ -42,19 +42,19 @@ Learn how to create a charades game with **collections**, ` create -> Collection ## Documentation * **collection** -* **global variables** : [read more...](/microbit/js/data) -* **Boolean** : [read more...](/microbit/reference/types/boolean) -* **on logo up** [read more...](/microbit/functions/on-logo-up) -* **on screen down** [read more...](/microbit/functions/on-screen-down) -* **on screen up** [read more...](/microbit/functions/on-screen-up) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **game library** : [read more...](/microbit/js/game-library) +* **global variables** : [read more...](/js/data) +* **Boolean** : [read more...](/reference/types/boolean) +* **on logo up** [read more...](/functions/on-logo-up) +* **on screen down** [read more...](/functions/on-screen-down) +* **on screen up** [read more...](/functions/on-screen-up) +* **show string** : [read more...](/reference/basic/show-string) +* **game library** : [read more...](/js/game-library) ## Resources -* Activity: [tutorial](/microbit/lessons/headbands/tutorial) -* Activity: [quiz](/microbit/lessons/headbands/quiz) -* Extended Activity: [challenges](/microbit/lessons/headbands/challenges) +* Activity: [tutorial](/lessons/headbands/tutorial) +* Activity: [quiz](/lessons/headbands/quiz) +* Extended Activity: [challenges](/lessons/headbands/challenges) ## Objectives @@ -112,17 +112,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/headbands/tutorial) -* [quiz](/microbit/lessons/headbands/quiz) +* [tutorial](/lessons/headbands/tutorial) +* [quiz](/lessons/headbands/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/headbands/challenges) +* [challenges](/lessons/headbands/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/headbands/challenges) +* Extended Activity: [challenges](/lessons/headbands/challenges) ## Intended follow on diff --git a/docs/lessons/headbands/quiz-answers.md b/docs/lessons/headbands/quiz-answers.md index 8702b87d..d7c3c7b7 100644 --- a/docs/lessons/headbands/quiz-answers.md +++ b/docs/lessons/headbands/quiz-answers.md @@ -6,7 +6,7 @@ create a charades game with a collection of strings. ## Directions -Use this activity document to guide your work in the [headbands tutorial](/microbit/lessons/headbands/activity). +Use this activity document to guide your work in the [headbands tutorial](/lessons/headbands/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/headbands/quiz.md b/docs/lessons/headbands/quiz.md index 8718e092..93cad018 100644 --- a/docs/lessons/headbands/quiz.md +++ b/docs/lessons/headbands/quiz.md @@ -6,7 +6,7 @@ create a charades game with a collection of strings. ## Directions -Use this activity document to guide your work in the [headbands tutorial](/microbit/lessons/headbands/activity). +Use this activity document to guide your work in the [headbands tutorial](/lessons/headbands/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/hero.md b/docs/lessons/hero.md index 612b2b96..b0593311 100644 --- a/docs/lessons/hero.md +++ b/docs/lessons/hero.md @@ -4,4 +4,4 @@ make a game to test hand-eye coordination. Make a game to test hand-eye coordination -* [activity](/microbit/lessons/hero/activity) +* [activity](/lessons/hero/activity) diff --git a/docs/lessons/light-beatbox.md b/docs/lessons/light-beatbox.md index 2b98ff82..b359799b 100644 --- a/docs/lessons/light-beatbox.md +++ b/docs/lessons/light-beatbox.md @@ -8,7 +8,7 @@ Music ## Quick Links -* [activity](/microbit/lessons/light-beatbox/activity) +* [activity](/lessons/light-beatbox/activity) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/light-beatbox/activity.md b/docs/lessons/light-beatbox/activity.md index 2e6e988e..ac84b1e3 100644 --- a/docs/lessons/light-beatbox/activity.md +++ b/docs/lessons/light-beatbox/activity.md @@ -8,7 +8,7 @@ Have you ever tried to making beat box sounds based on the light level? Let's tr ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*. Let's start by adding a variable where you can store data. Then rename the variable to "light". Then set the value of the variable to the block `light level` from the Input drawer. This will gets the `light level` from 0 (dark) to 255 (bright). The light is measured by using various LEDs from the screen. Modify your code so that your code looks like this. diff --git a/docs/lessons/looper.md b/docs/lessons/looper.md index 3f4f39e8..95ae0284 100644 --- a/docs/lessons/looper.md +++ b/docs/lessons/looper.md @@ -10,10 +10,10 @@ For Loop ## Quick links -* [activity](/microbit/lessons/looper/activity) -* [challenges](/microbit/lessons/looper/challenges) -* [quiz](/microbit/lessons/looper/quiz) -* [quiz answers](/microbit/lessons/looper/quiz-answers) +* [activity](/lessons/looper/activity) +* [challenges](/lessons/looper/challenges) +* [quiz](/lessons/looper/quiz) +* [quiz answers](/lessons/looper/quiz-answers) ## Class diff --git a/docs/lessons/looper/activity.md b/docs/lessons/looper/activity.md index 1d4f85bc..eb973f8f 100644 --- a/docs/lessons/looper/activity.md +++ b/docs/lessons/looper/activity.md @@ -38,7 +38,7 @@ for (let i = 0; i < 6; i++) { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/looper/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/looper/challenges)! ### ~ diff --git a/docs/lessons/looper/challenges.md b/docs/lessons/looper/challenges.md index 88bb8a97..7559e2d9 100644 --- a/docs/lessons/looper/challenges.md +++ b/docs/lessons/looper/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the looper. Complete the following guided activity: -* [activity](/microbit/lessons/looper/activity) +* [activity](/lessons/looper/activity) At the end of the activity, your code should look like this: diff --git a/docs/lessons/looper/quiz-answers.md b/docs/lessons/looper/quiz-answers.md index 5417ac8d..aa4fa1b8 100644 --- a/docs/lessons/looper/quiz-answers.md +++ b/docs/lessons/looper/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create a series of numbers with a for loop. -This is the answer key for the [looper quiz](/microbit/lessons/looper/quiz). +This is the answer key for the [looper quiz](/lessons/looper/quiz). ## 1. What is a for loop? diff --git a/docs/lessons/looper/quiz.md b/docs/lessons/looper/quiz.md index 5d0fbc5c..d58949ad 100644 --- a/docs/lessons/looper/quiz.md +++ b/docs/lessons/looper/quiz.md @@ -6,7 +6,7 @@ Learn how to create a series of numbers with a for loop. ## Directions -Use this activity document to guide your work in the [looper tutorial](/microbit/lessons/looper/activity) +Use this activity document to guide your work in the [looper tutorial](/lessons/looper/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/love-meter.md b/docs/lessons/love-meter.md index e6fbefdc..c24a770d 100644 --- a/docs/lessons/love-meter.md +++ b/docs/lessons/love-meter.md @@ -10,10 +10,10 @@ On Pin Pressed ## Quick Links -* [activity](/microbit/lessons/love-meter/activity) -* [quiz](/microbit/lessons/love-meter/quiz) -* [quiz answers](/microbit/lessons/love-meter/quiz-answers) -* [challenges](/microbit/lessons/love-meter/challenges) +* [activity](/lessons/love-meter/activity) +* [quiz](/lessons/love-meter/quiz) +* [quiz answers](/lessons/love-meter/quiz-answers) +* [challenges](/lessons/love-meter/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/love-meter/activity.md b/docs/lessons/love-meter/activity.md index 91ccf1ae..4b0b05bc 100644 --- a/docs/lessons/love-meter/activity.md +++ b/docs/lessons/love-meter/activity.md @@ -8,7 +8,7 @@ Create a love meter with the micro:bit Welcome! This activity will help you create a love meter with the micro:bit. Let's get started! -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under *Block Editor*. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under *Block Editor*. ### ~ @@ -45,7 +45,7 @@ input.onPinPressed(TouchPin.P0, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/love-meter/challenges) +Excellent, you're ready to continue with the [challenges](/lessons/love-meter/challenges) ### ~ diff --git a/docs/lessons/love-meter/challenges.md b/docs/lessons/love-meter/challenges.md index 5a41b1a1..f2a4d7c0 100644 --- a/docs/lessons/love-meter/challenges.md +++ b/docs/lessons/love-meter/challenges.md @@ -4,7 +4,7 @@ Create a love meter with the micro:bit ## Before we get started -You should work on these challenges after the following the [love meter activity](/microbit/lessons/love-meter/activity) +You should work on these challenges after the following the [love meter activity](/lessons/love-meter/activity) ```blocks input.onPinPressed(TouchPin.P0, () => { diff --git a/docs/lessons/love-meter/quiz-answers.md b/docs/lessons/love-meter/quiz-answers.md index 4c95d526..c0cd572f 100644 --- a/docs/lessons/love-meter/quiz-answers.md +++ b/docs/lessons/love-meter/quiz-answers.md @@ -2,7 +2,7 @@ The answers to the love meter quiz. -This is the answer key for the [love meter quiz](/microbit/lessons/love-meter/quiz). +This is the answer key for the [love meter quiz](/lessons/love-meter/quiz). ## 1. What does `on pin pressed(P0)` do? diff --git a/docs/lessons/love-meter/quiz.md b/docs/lessons/love-meter/quiz.md index b197570b..92460062 100644 --- a/docs/lessons/love-meter/quiz.md +++ b/docs/lessons/love-meter/quiz.md @@ -6,7 +6,7 @@ Learn how to make a love meter that you can try with someone. ## Directions -Use this activity document to guide your work in the [love meter activity](/microbit/lessons/love-meter/activity). +Use this activity document to guide your work in the [love meter activity](/lessons/love-meter/activity). Answer the questions below while completing the activity. Pay attention to the dialogues! diff --git a/docs/lessons/lucky-7.md b/docs/lessons/lucky-7.md index fb682e65..83074c6c 100644 --- a/docs/lessons/lucky-7.md +++ b/docs/lessons/lucky-7.md @@ -10,10 +10,10 @@ Show Number ## Quick Links -* [activity](/microbit/lessons/lucky-7/activity) -* [quiz](/microbit/lessons/lucky-7/quiz) -* [quiz answers](/microbit/lessons/lucky-7/quiz-answers) -* [challenges](/microbit/lessons/lucky-7/challenges) +* [activity](/lessons/lucky-7/activity) +* [quiz](/lessons/lucky-7/quiz) +* [quiz answers](/lessons/lucky-7/quiz-answers) +* [challenges](/lessons/lucky-7/challenges) ## Prior learning / place of lesson in scheme of work diff --git a/docs/lessons/lucky-7/activity.md b/docs/lessons/lucky-7/activity.md index 69b65931..6c111b50 100644 --- a/docs/lessons/lucky-7/activity.md +++ b/docs/lessons/lucky-7/activity.md @@ -20,7 +20,7 @@ basic.showNumber(7) ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/lucky-7/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/lucky-7/challenges)! ### ~ diff --git a/docs/lessons/lucky-7/challenges.md b/docs/lessons/lucky-7/challenges.md index dd955586..ec3e0eb2 100644 --- a/docs/lessons/lucky-7/challenges.md +++ b/docs/lessons/lucky-7/challenges.md @@ -4,7 +4,7 @@ Coding challenges for lucky 7. ## Before we get started -Complete the [lucky 7 activity](/microbit/lessons/lucky-7/activity) and your code will look like this: +Complete the [lucky 7 activity](/lessons/lucky-7/activity) and your code will look like this: ```blocks basic.showNumber(7) diff --git a/docs/lessons/lucky-7/quiz-answers.md b/docs/lessons/lucky-7/quiz-answers.md index 0dbc3ca0..dcc3be0b 100644 --- a/docs/lessons/lucky-7/quiz-answers.md +++ b/docs/lessons/lucky-7/quiz-answers.md @@ -2,7 +2,7 @@ Show a number on the micro:bit. -This is the answer key for the [lucky 7 quiz](/microbit/lessons/lucky-7/quiz). +This is the answer key for the [lucky 7 quiz](/lessons/lucky-7/quiz). ## 1. Describe what `show number` does? diff --git a/docs/lessons/lucky-7/quiz.md b/docs/lessons/lucky-7/quiz.md index 1f844891..c1658da8 100644 --- a/docs/lessons/lucky-7/quiz.md +++ b/docs/lessons/lucky-7/quiz.md @@ -6,7 +6,7 @@ Show a number on the micro:bit ## Directions -Use this activity document to guide your work in the [lucky 7 activity](/microbit/lessons/lucky-7/activity). +Use this activity document to guide your work in the [lucky 7 activity](/lessons/lucky-7/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/magic-8.md b/docs/lessons/magic-8.md index d46aa9da..6a8430c1 100644 --- a/docs/lessons/magic-8.md +++ b/docs/lessons/magic-8.md @@ -8,10 +8,10 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/magic-8/activity) -* [challenges](/microbit/lessons/magic-8/challenges) -* [quiz](/microbit/lessons/magic-8/quiz) -* [quiz answers](/microbit/lessons/magic-8/quiz-answers) +* [activity](/lessons/magic-8/activity) +* [challenges](/lessons/magic-8/challenges) +* [quiz](/lessons/magic-8/quiz) +* [quiz answers](/lessons/magic-8/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/magic-8/activity.md b/docs/lessons/magic-8/activity.md index 696f26ea..e087821e 100644 --- a/docs/lessons/magic-8/activity.md +++ b/docs/lessons/magic-8/activity.md @@ -122,7 +122,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/magic-8/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/magic-8/challenges)! ### ~ diff --git a/docs/lessons/magic-8/challenges.md b/docs/lessons/magic-8/challenges.md index d3f053af..be4d71a2 100644 --- a/docs/lessons/magic-8/challenges.md +++ b/docs/lessons/magic-8/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the magic 8 tutorial ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/magic-8/activity), and your code should look like this: +Complete the following [guided tutorial](/lessons/magic-8/activity), and your code should look like this: ```blocks basic.showString("ASK A QUESTION") diff --git a/docs/lessons/magic-8/quiz-answers.md b/docs/lessons/magic-8/quiz-answers.md index 18496014..cb0dc753 100644 --- a/docs/lessons/magic-8/quiz-answers.md +++ b/docs/lessons/magic-8/quiz-answers.md @@ -6,7 +6,7 @@ create a magic 8 ball on the BBC micro:bit. ## Directions -Use this activity document to guide your work in the [magic 8 tutorial](/microbit/lessons/magic-8/tutorial). +Use this activity document to guide your work in the [magic 8 tutorial](/lessons/magic-8/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/magic-8/quiz.md b/docs/lessons/magic-8/quiz.md index 38fd13b7..64a99c9c 100644 --- a/docs/lessons/magic-8/quiz.md +++ b/docs/lessons/magic-8/quiz.md @@ -6,7 +6,7 @@ create a magic 8 ball on the BBC micro:bit. ## Directions -Use this activity document to guide your work in the [magic 8 tutorial](/microbit/lessons/magic-8/activity). +Use this activity document to guide your work in the [magic 8 tutorial](/lessons/magic-8/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/magic-logo.md b/docs/lessons/magic-logo.md index bd5b8d23..9100e302 100644 --- a/docs/lessons/magic-logo.md +++ b/docs/lessons/magic-logo.md @@ -10,10 +10,10 @@ On Logo Up ## Quick Links -* [activity](/microbit/lessons/magic-logo/activity) -* [challenges](/microbit/lessons/magic-logo/challenges) -* [quiz](/microbit/lessons/magic-logo/challenges) -* [quiz answers](/microbit/lessons/magic-logo/challenges) +* [activity](/lessons/magic-logo/activity) +* [challenges](/lessons/magic-logo/challenges) +* [quiz](/lessons/magic-logo/challenges) +* [quiz answers](/lessons/magic-logo/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/magic-logo/activity.md b/docs/lessons/magic-logo/activity.md index 603e4f88..273ddd24 100644 --- a/docs/lessons/magic-logo/activity.md +++ b/docs/lessons/magic-logo/activity.md @@ -38,7 +38,7 @@ Run your code and try to turn around the micro:bit to see the **logo up** event ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/magic-logo/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/magic-logo/challenges)! ### ~ diff --git a/docs/lessons/magic-logo/challenges.md b/docs/lessons/magic-logo/challenges.md index 6ce04b0e..dff322f0 100644 --- a/docs/lessons/magic-logo/challenges.md +++ b/docs/lessons/magic-logo/challenges.md @@ -4,7 +4,7 @@ Coding challenges for magic logo. ## Before we get started -Complete the [magic logo](/microbit/lessons/magic-logo/activity) activity and your code will look like this: +Complete the [magic logo](/lessons/magic-logo/activity) activity and your code will look like this: ```blocks input.onLogoUp(() => { diff --git a/docs/lessons/magic-logo/quiz-answers.md b/docs/lessons/magic-logo/quiz-answers.md index 12409b0e..16e5f2bf 100644 --- a/docs/lessons/magic-logo/quiz-answers.md +++ b/docs/lessons/magic-logo/quiz-answers.md @@ -6,7 +6,7 @@ show an image that points up when the logo is up. ## Directions -This is the answer key for the [magic logo quiz](/microbit/lessons/magic-logo/quiz) +This is the answer key for the [magic logo quiz](/lessons/magic-logo/quiz) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/magic-logo/quiz.md b/docs/lessons/magic-logo/quiz.md index b07f2748..9f96d248 100644 --- a/docs/lessons/magic-logo/quiz.md +++ b/docs/lessons/magic-logo/quiz.md @@ -6,7 +6,7 @@ show an image that points up when the logo is up. ## Directions -Use the hints from the [magic logo activity](/microbit/lessons/magic-logo/activity) to answer this quiz! +Use the hints from the [magic logo activity](/lessons/magic-logo/activity) to answer this quiz! ## 1. Define what `input->on logo up` does diff --git a/docs/lessons/night-light.md b/docs/lessons/night-light.md index 191b349c..556cb205 100644 --- a/docs/lessons/night-light.md +++ b/docs/lessons/night-light.md @@ -10,10 +10,10 @@ Set Brightness ## Quick Links -* [activity](/microbit/lessons/night-light/activity) -* [challenges](/microbit/lessons/night-light/challenges) -* [quiz](/microbit/lessons/night-light/quiz) -* [quiz answers](/microbit/lessons/night-light/quiz-answers) +* [activity](/lessons/night-light/activity) +* [challenges](/lessons/night-light/challenges) +* [quiz](/lessons/night-light/quiz) +* [quiz answers](/lessons/night-light/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/night-light/activity.md b/docs/lessons/night-light/activity.md index d9915c7f..30f049ae 100644 --- a/docs/lessons/night-light/activity.md +++ b/docs/lessons/night-light/activity.md @@ -61,7 +61,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/night-light/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/night-light/challenges)! ### ~ diff --git a/docs/lessons/night-light/challenges.md b/docs/lessons/night-light/challenges.md index 8658f4e5..81917863 100644 --- a/docs/lessons/night-light/challenges.md +++ b/docs/lessons/night-light/challenges.md @@ -4,7 +4,7 @@ Coding challenges for night light. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/night-light/activity), your code should look like this: +Complete the following [guided tutorial](/lessons/night-light/activity), your code should look like this: ```blocks diff --git a/docs/lessons/night-light/quiz-answers.md b/docs/lessons/night-light/quiz-answers.md index 1b187b86..ac517a4e 100644 --- a/docs/lessons/night-light/quiz-answers.md +++ b/docs/lessons/night-light/quiz-answers.md @@ -2,7 +2,7 @@ Answers to the night light quiz. -This is the answer key for the [night light quiz](/microbit/lessons/night-light/quiz). +This is the answer key for the [night light quiz](/lessons/night-light/quiz). ## 1. Define the function "set brightness" diff --git a/docs/lessons/night-light/quiz.md b/docs/lessons/night-light/quiz.md index e58bbe0e..04546039 100644 --- a/docs/lessons/night-light/quiz.md +++ b/docs/lessons/night-light/quiz.md @@ -6,7 +6,7 @@ change the brightness of the BBC micro:bit. ## Directions -Use this activity document to guide your work in the [night light tutorial](/microbit/lessons/night-light/activity) +Use this activity document to guide your work in the [night light tutorial](/lessons/night-light/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/offset-image/quiz-answers.md b/docs/lessons/offset-image/quiz-answers.md index 9d408b11..d9b00e48 100644 --- a/docs/lessons/offset-image/quiz-answers.md +++ b/docs/lessons/offset-image/quiz-answers.md @@ -2,7 +2,7 @@ shift an image horizontally across the display with offset. -This is the answer key for the [offset image quiz](/microbit/lessons/offset-image/quiz). +This is the answer key for the [offset image quiz](/lessons/offset-image/quiz). ## 1. What is a 'if, then, else statement' ? diff --git a/docs/lessons/offset-image/quiz.md b/docs/lessons/offset-image/quiz.md index 85718d6b..ea11e72e 100644 --- a/docs/lessons/offset-image/quiz.md +++ b/docs/lessons/offset-image/quiz.md @@ -6,7 +6,7 @@ shift an image horizontally across the display with offset. ## Directions -Use this activity document to guide your work in the [offset image tutorial](/microbit/lessons/offset-image/tutorial). +Use this activity document to guide your work in the [offset image tutorial](/lessons/offset-image/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/pogo.md b/docs/lessons/pogo.md index d817b6b9..ddd50a58 100644 --- a/docs/lessons/pogo.md +++ b/docs/lessons/pogo.md @@ -8,7 +8,7 @@ Running Time ## Quick Links -* [activity](/microbit/lessons/pogo/activity) +* [activity](/lessons/pogo/activity) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/pogo/activity.md b/docs/lessons/pogo/activity.md index 32c33d90..d1b566e5 100644 --- a/docs/lessons/pogo/activity.md +++ b/docs/lessons/pogo/activity.md @@ -2,7 +2,7 @@ Construct a counter that uses acceleration. -To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`. +To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`. Welcome! This activity will teach how to construct a pendulum that glows using acceleration. Let's get started! diff --git a/docs/lessons/prank-wifi.md b/docs/lessons/prank-wifi.md index 7048a868..174786f6 100644 --- a/docs/lessons/prank-wifi.md +++ b/docs/lessons/prank-wifi.md @@ -4,6 +4,6 @@ create a fake wifi app to trick your friends. create a fake wifi app to trick your friends -* [activity](/microbit/lessons/prank-wifi/activity) -* [quiz](/microbit/lessons/prank-wifi/quiz) -* [quiz answers](/microbit/lessons/prank-wifi/quiz-answers) +* [activity](/lessons/prank-wifi/activity) +* [quiz](/lessons/prank-wifi/quiz) +* [quiz answers](/lessons/prank-wifi/quiz-answers) diff --git a/docs/lessons/prank-wifi/quiz-answers.md b/docs/lessons/prank-wifi/quiz-answers.md index 01bf3746..74ab86ef 100644 --- a/docs/lessons/prank-wifi/quiz-answers.md +++ b/docs/lessons/prank-wifi/quiz-answers.md @@ -6,7 +6,7 @@ create a fake wifi app to trick your friends. ## Directions -Use this activity document to guide your work in the [prank WiFi tutorial](/microbit/lessons/prank-wifi/tutorial) +Use this activity document to guide your work in the [prank WiFi tutorial](/lessons/prank-wifi/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/prank-wifi/quiz.md b/docs/lessons/prank-wifi/quiz.md index 6e6d5dd0..a6ed1f6a 100644 --- a/docs/lessons/prank-wifi/quiz.md +++ b/docs/lessons/prank-wifi/quiz.md @@ -6,7 +6,7 @@ create a fake wifi app to trick your friends. ## Directions -Use this activity document to guide your work in the [prank WiFi tutorial](/microbit/lessons/prank-wifi/activity) +Use this activity document to guide your work in the [prank WiFi tutorial](/lessons/prank-wifi/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/rock-paper-scissors.md b/docs/lessons/rock-paper-scissors.md index c65a83de..c3f8e03f 100644 --- a/docs/lessons/rock-paper-scissors.md +++ b/docs/lessons/rock-paper-scissors.md @@ -10,8 +10,8 @@ Local Variables ## Quick Links -* [activity](/microbit/lessons/rock-paper-scissors/activity) -* [challenges](/microbit/lessons/rock-paper-scissors/challenges) +* [activity](/lessons/rock-paper-scissors/activity) +* [challenges](/lessons/rock-paper-scissors/challenges) ## Class diff --git a/docs/lessons/rock-paper-scissors/activity.md b/docs/lessons/rock-paper-scissors/activity.md index 07e2d1b7..ca97fb21 100644 --- a/docs/lessons/rock-paper-scissors/activity.md +++ b/docs/lessons/rock-paper-scissors/activity.md @@ -10,7 +10,7 @@ Welcome! This tutorial will help you create a game of rock paper scissors with t ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. We want the micro:bit to choose rock, paper, or scissors when it is shaken. Let's begin by creating an on shake condition so the micro:bit will run code when it is shaken. @@ -117,7 +117,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/rock-paper-scissors/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/rock-paper-scissors/challenges)! ### ~ diff --git a/docs/lessons/rock-paper-scissors/challenges.md b/docs/lessons/rock-paper-scissors/challenges.md index 95e572e6..21fdd52f 100644 --- a/docs/lessons/rock-paper-scissors/challenges.md +++ b/docs/lessons/rock-paper-scissors/challenges.md @@ -4,7 +4,7 @@ Coding challenges for rock paper scissors. ## Before we get started -Complete the following [guided activity](/microbit/lessons/rock-paper-scissors/activity) , your code should look like this: +Complete the following [guided activity](/lessons/rock-paper-scissors/activity) , your code should look like this: ```blocks input.onGesture(Gesture.Shake, () => { diff --git a/docs/lessons/rock-paper-scissors/quiz.md b/docs/lessons/rock-paper-scissors/quiz.md index d1f51ad8..9a97b328 100644 --- a/docs/lessons/rock-paper-scissors/quiz.md +++ b/docs/lessons/rock-paper-scissors/quiz.md @@ -6,7 +6,7 @@ shift an image horizontally across the display with offset. ## Directions -Use this activity document to guide your work in the [rock paper scissors tutorial](/microbit/lessons/rock-paper-scissors/activity). +Use this activity document to guide your work in the [rock paper scissors tutorial](/lessons/rock-paper-scissors/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/rotation-animation.md b/docs/lessons/rotation-animation.md index 3ce3176d..cad2b6b3 100644 --- a/docs/lessons/rotation-animation.md +++ b/docs/lessons/rotation-animation.md @@ -8,10 +8,10 @@ While Loop ## Quick links -* [activity](/microbit/lessons/rotation-animation/activity) -* [challenges](/microbit/lessons/rotation-animation/challenges) -* [quiz](/microbit/lessons/rotation-animation/quiz) -* [quiz answers](/microbit/lessons/rotation-animation/quiz-answers) +* [activity](/lessons/rotation-animation/activity) +* [challenges](/lessons/rotation-animation/challenges) +* [quiz](/lessons/rotation-animation/quiz) +* [quiz answers](/lessons/rotation-animation/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/rotation-animation/activity.md b/docs/lessons/rotation-animation/activity.md index 96bd2e45..9c06315e 100644 --- a/docs/lessons/rotation-animation/activity.md +++ b/docs/lessons/rotation-animation/activity.md @@ -63,7 +63,7 @@ while (rotating) { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/rotation-animation/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/rotation-animation/challenges)! ### ~ diff --git a/docs/lessons/rotation-animation/challenges.md b/docs/lessons/rotation-animation/challenges.md index b58cbc3f..7a8eec24 100644 --- a/docs/lessons/rotation-animation/challenges.md +++ b/docs/lessons/rotation-animation/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the rotation animation. Complete the following guided activity: -* [activity](/microbit/lessons/rotation-animation/activity) +* [activity](/lessons/rotation-animation/activity) At the end of the activity, your code should look like this: diff --git a/docs/lessons/rotation-animation/quiz-answers.md b/docs/lessons/rotation-animation/quiz-answers.md index a7a18a65..3bccc6eb 100644 --- a/docs/lessons/rotation-animation/quiz-answers.md +++ b/docs/lessons/rotation-animation/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create a rotating image with a while loop. -This is the answer key for the [rotation animation quiz](/microbit/lessons/rotation-animation/quiz). +This is the answer key for the [rotation animation quiz](/lessons/rotation-animation/quiz). ## 1. What is a " variable"? diff --git a/docs/lessons/rotation-animation/quiz.md b/docs/lessons/rotation-animation/quiz.md index 08da5a14..9ad7bd46 100644 --- a/docs/lessons/rotation-animation/quiz.md +++ b/docs/lessons/rotation-animation/quiz.md @@ -6,7 +6,7 @@ Learn how to create a rotating image with a while loop. ## Directions -Use this activity document to guide your work in the [rotation animation tutorial](/microbit/lessons/rotation-animation/activity). +Use this activity document to guide your work in the [rotation animation tutorial](/lessons/rotation-animation/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/screen-wipe.md b/docs/lessons/screen-wipe.md index 2031ef78..7e847bcc 100644 --- a/docs/lessons/screen-wipe.md +++ b/docs/lessons/screen-wipe.md @@ -10,10 +10,10 @@ Clear Screen ## Quick Links -* [activity](/microbit/lessons/screen-wipe/activity) -* [quiz](/microbit/lessons/screen-wipe/quiz) -* [quiz answers](/microbit/lessons/screen-wipe/quiz-answers) -* [challenges](/microbit/lessons/screen-wipe/challenges) +* [activity](/lessons/screen-wipe/activity) +* [quiz](/lessons/screen-wipe/quiz) +* [quiz answers](/lessons/screen-wipe/quiz-answers) +* [challenges](/lessons/screen-wipe/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/screen-wipe/activity.md b/docs/lessons/screen-wipe/activity.md index 6f8ba91f..9eea22ee 100644 --- a/docs/lessons/screen-wipe/activity.md +++ b/docs/lessons/screen-wipe/activity.md @@ -84,7 +84,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/screen-wipe/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/screen-wipe/challenges)! ### ~ diff --git a/docs/lessons/screen-wipe/challenges.md b/docs/lessons/screen-wipe/challenges.md index 647ee579..7e5252a7 100644 --- a/docs/lessons/screen-wipe/challenges.md +++ b/docs/lessons/screen-wipe/challenges.md @@ -4,7 +4,7 @@ Coding challenges for screen wipe. ## Before we get started -Complete the [screen wipe](/microbit/lessons/screen-wipe) activity and your code will look like this: +Complete the [screen wipe](/lessons/screen-wipe) activity and your code will look like this: ```blocks basic.showLeds(` diff --git a/docs/lessons/screen-wipe/quiz-answers.md b/docs/lessons/screen-wipe/quiz-answers.md index cdc56e24..23753624 100644 --- a/docs/lessons/screen-wipe/quiz-answers.md +++ b/docs/lessons/screen-wipe/quiz-answers.md @@ -2,7 +2,7 @@ Clear the screen by pressing the "A" button after an animation has been played -This is the answer key for the [screen wipe quiz](/microbit/lessons/screen-wipe/quiz). +This is the answer key for the [screen wipe quiz](/lessons/screen-wipe/quiz). ## 1. What does the function "clear screen" do on the micro:bit? diff --git a/docs/lessons/screen-wipe/quiz.md b/docs/lessons/screen-wipe/quiz.md index 31c9d0f4..b08d225a 100644 --- a/docs/lessons/screen-wipe/quiz.md +++ b/docs/lessons/screen-wipe/quiz.md @@ -6,7 +6,7 @@ Clear the screen by pressing the "A" button after an animation has been played ## Directions -Use this activity document to guide your work in the [screen wipe activity](/microbit/lessons/screen-wipe/activity) +Use this activity document to guide your work in the [screen wipe activity](/lessons/screen-wipe/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/smiley.md b/docs/lessons/smiley.md index 740aaaea..981f322a 100644 --- a/docs/lessons/smiley.md +++ b/docs/lessons/smiley.md @@ -10,10 +10,10 @@ Show LEDs ## Quick Links -* [activity](/microbit/lessons/smiley/activity) -* [quiz](/microbit/lessons/smiley/quiz) -* [quiz answers](/microbit/lessons/smiley/quiz-answers) -* [challenges](/microbit/lessons/smiley/challenges) +* [activity](/lessons/smiley/activity) +* [quiz](/lessons/smiley/quiz) +* [quiz answers](/lessons/smiley/quiz-answers) +* [challenges](/lessons/smiley/challenges) ## Prior learning/place of lesson in scheme of work @@ -21,8 +21,8 @@ Learn how to **show LEDs** to turn on a LED light pattern on the LED screen. We ## Documentation -* **show LEDs** : [read more...](/microbit/reference/basic/show-leds) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) +* **show LEDs** : [read more...](/reference/basic/show-leds) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) ```cards input.onButtonPressed(Button.A, () => {}) diff --git a/docs/lessons/smiley/activity.md b/docs/lessons/smiley/activity.md index 87b7b1a9..c1c43e7b 100644 --- a/docs/lessons/smiley/activity.md +++ b/docs/lessons/smiley/activity.md @@ -31,7 +31,7 @@ basic.showLeds(` ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/smiley/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/smiley/challenges)! ### ~ diff --git a/docs/lessons/smiley/challenges.md b/docs/lessons/smiley/challenges.md index 171de366..37e0db18 100644 --- a/docs/lessons/smiley/challenges.md +++ b/docs/lessons/smiley/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the smiley. ## Before we get started -Complete the [smiley activity](/microbit/lessons/smiley/activity) and your code will look like this: +Complete the [smiley activity](/lessons/smiley/activity) and your code will look like this: ```blocks diff --git a/docs/lessons/smiley/quiz-answers.md b/docs/lessons/smiley/quiz-answers.md index 5df15ec5..878edca5 100644 --- a/docs/lessons/smiley/quiz-answers.md +++ b/docs/lessons/smiley/quiz-answers.md @@ -1,6 +1,6 @@ # smiley blocks quiz answers -This is the answer key for the [smiley quiz](/microbit/lessons/smiley/quiz). +This is the answer key for the [smiley quiz](/lessons/smiley/quiz). ## 1. Describe what `show LEDs` does diff --git a/docs/lessons/smiley/quiz.md b/docs/lessons/smiley/quiz.md index 75c095ed..24fc6232 100644 --- a/docs/lessons/smiley/quiz.md +++ b/docs/lessons/smiley/quiz.md @@ -6,7 +6,7 @@ Make a smiley face blink ## Directions -Use the hints in the [Smiley](/microbit/lessons/smiley/activity) activity to answer this quiz! +Use the hints in the [Smiley](/lessons/smiley/activity) activity to answer this quiz! ## 1. Describe what `show LEDs` does diff --git a/docs/lessons/snowflake-fall.md b/docs/lessons/snowflake-fall.md index 725fbd03..c25c7d59 100644 --- a/docs/lessons/snowflake-fall.md +++ b/docs/lessons/snowflake-fall.md @@ -10,10 +10,10 @@ Forever ## Quick Links -* [activity](/microbit/lessons/snowflake-fall/activity) -* [quiz](/microbit/lessons/snowflake-fall/quiz) -* [quiz answers](/microbit/lessons/snowflake-fall/quiz-answers) -* [challenges](/microbit/lessons/snowflake-fall/challenges) +* [activity](/lessons/snowflake-fall/activity) +* [quiz](/lessons/snowflake-fall/quiz) +* [quiz answers](/lessons/snowflake-fall/quiz-answers) +* [challenges](/lessons/snowflake-fall/challenges) ## Prior learning/place of lesson in scheme of work @@ -21,9 +21,9 @@ Learn how to show LEDs with a, `pause` to pause program execution for a specifie ## Documentation -* **show LEDs** : [read more...](/microbit/reference/basic/show-leds) -* **pause** : [read more...](/microbit/reference/basic/pause) -* **forever** : [read more...](/microbit/reference/basic/forever) +* **show LEDs** : [read more...](/reference/basic/show-leds) +* **pause** : [read more...](/reference/basic/pause) +* **forever** : [read more...](/reference/basic/forever) ```cards basic.showLeds(` diff --git a/docs/lessons/snowflake-fall/activity.md b/docs/lessons/snowflake-fall/activity.md index 9a4da87e..bee88370 100644 --- a/docs/lessons/snowflake-fall/activity.md +++ b/docs/lessons/snowflake-fall/activity.md @@ -57,7 +57,7 @@ Run your code in the simulator or download it to your BBC micro:bit to see what ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/snowflake-fall/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/snowflake-fall/challenges)! ### ~ diff --git a/docs/lessons/snowflake-fall/challenges.md b/docs/lessons/snowflake-fall/challenges.md index 00d057cb..99d3efe3 100644 --- a/docs/lessons/snowflake-fall/challenges.md +++ b/docs/lessons/snowflake-fall/challenges.md @@ -4,7 +4,7 @@ Coding challenges for snowflake fall. ## Before we get started -Complete the [snowflake fall](/microbit/lessons/snowflake-fall/activity) activity and your code will look like this: +Complete the [snowflake fall](/lessons/snowflake-fall/activity) activity and your code will look like this: ```blocks basic.forever(() => { diff --git a/docs/lessons/snowflake-fall/quiz-answers.md b/docs/lessons/snowflake-fall/quiz-answers.md index e1c82bd6..072a5b8c 100644 --- a/docs/lessons/snowflake-fall/quiz-answers.md +++ b/docs/lessons/snowflake-fall/quiz-answers.md @@ -2,7 +2,7 @@ Create a snowflake fall animation. -This is the answer key for the [snowflake fall quiz](/microbit/lessons/snowflake-fall/quiz). +This is the answer key for the [snowflake fall quiz](/lessons/snowflake-fall/quiz). ## 1. What is a forever loop? diff --git a/docs/lessons/snowflake-fall/quiz.md b/docs/lessons/snowflake-fall/quiz.md index 66978700..f7dc17a4 100644 --- a/docs/lessons/snowflake-fall/quiz.md +++ b/docs/lessons/snowflake-fall/quiz.md @@ -6,7 +6,7 @@ Create a snowflake fall animation ## Directions -Use the hints in the [snowflake fall activity](/microbit/lessons/snowflake-fall/activity) to answer this quiz! +Use the hints in the [snowflake fall activity](/lessons/snowflake-fall/activity) to answer this quiz! ## 1. What is a forever loop? diff --git a/docs/lessons/speed-button.md b/docs/lessons/speed-button.md index 137bf70f..3cbfc5bd 100644 --- a/docs/lessons/speed-button.md +++ b/docs/lessons/speed-button.md @@ -10,9 +10,9 @@ Running Time ## Quick Links -* [activity](/microbit/lessons/speed-button/activity) -* [quiz](/microbit/lessons/speed-button/quiz) -* [quiz answers](/microbit/lessons/speed-button/quiz-answers) +* [activity](/lessons/speed-button/activity) +* [quiz](/lessons/speed-button/quiz) +* [quiz answers](/lessons/speed-button/quiz-answers) ## Prior learning/place of lesson in scheme of work @@ -21,12 +21,12 @@ Learn how to declare a **Boolean** variable, `var t:= true` `var f:=false` for o ## Documentation -* **running time** : [read more...](/microbit/reference/input/running-time) -* **global variable** : [read more...](/microbit/js/data) -* **Boolean** : [read more...](/microbit/reference/types/boolean) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **if** : [read more...](/microbit/reference/logic/if) -* **show string** : [read more...](/microbit/reference/basic/show-string) +* **running time** : [read more...](/reference/input/running-time) +* **global variable** : [read more...](/js/data) +* **Boolean** : [read more...](/reference/types/boolean) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **if** : [read more...](/reference/logic/if) +* **show string** : [read more...](/reference/basic/show-string) ## Objectives diff --git a/docs/lessons/speed-button/quiz-answers.md b/docs/lessons/speed-button/quiz-answers.md index 559739aa..99a53428 100644 --- a/docs/lessons/speed-button/quiz-answers.md +++ b/docs/lessons/speed-button/quiz-answers.md @@ -2,7 +2,7 @@ counter that keeps track of how many times button "A" has been pressed. -This is the answer key for the [speed button quiz](/microbit/lessons/speed-button/quiz). +This is the answer key for the [speed button quiz](/lessons/speed-button/quiz). ## 1. What is a variable? diff --git a/docs/lessons/speed-button/quiz.md b/docs/lessons/speed-button/quiz.md index 18bf8416..3061a184 100644 --- a/docs/lessons/speed-button/quiz.md +++ b/docs/lessons/speed-button/quiz.md @@ -6,7 +6,7 @@ counter that keeps track of how many times button "A" has been pressed. ## Directions -Use this activity document to guide your work in the [speed button tutorial](/microbit/lessons/speed-button/activity). +Use this activity document to guide your work in the [speed button tutorial](/lessons/speed-button/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/spinner.md b/docs/lessons/spinner.md index 899144eb..528d85ee 100644 --- a/docs/lessons/spinner.md +++ b/docs/lessons/spinner.md @@ -10,10 +10,10 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/spinner/activity) -* [challenges](/microbit/lessons/spinner/challenges) -* [quiz](/microbit/lessons/spinner/quiz) -* [quiz answers](/microbit/lessons/spinner/quiz-answers) +* [activity](/lessons/spinner/activity) +* [challenges](/lessons/spinner/challenges) +* [quiz](/lessons/spinner/quiz) +* [quiz answers](/lessons/spinner/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/spinner/activity.md b/docs/lessons/spinner/activity.md index 559a412a..7626c77c 100644 --- a/docs/lessons/spinner/activity.md +++ b/docs/lessons/spinner/activity.md @@ -104,7 +104,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/spinner/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/spinner/challenges)! ### ~ diff --git a/docs/lessons/spinner/challenges.md b/docs/lessons/spinner/challenges.md index 4f572e2b..03e1b048 100644 --- a/docs/lessons/spinner/challenges.md +++ b/docs/lessons/spinner/challenges.md @@ -4,7 +4,7 @@ Create an arrow that randomly points to a player. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/spinner/activity), your code should look like this: +Complete the following [guided tutorial](/lessons/spinner/activity), your code should look like this: ```blocks input.onGesture(Gesture.Shake, () => { diff --git a/docs/lessons/spinner/quiz-answers.md b/docs/lessons/spinner/quiz-answers.md index 20342c08..62e091b6 100644 --- a/docs/lessons/spinner/quiz-answers.md +++ b/docs/lessons/spinner/quiz-answers.md @@ -6,7 +6,7 @@ a spin the BBC micro:bit game with the input on shake. ## Directions -Use this activity document to guide your work in the [spinner tutorial](/microbit/lessons/spinner/tutorial). +Use this activity document to guide your work in the [spinner tutorial](/lessons/spinner/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/spinner/quiz.md b/docs/lessons/spinner/quiz.md index 9081d83a..ad9c1d4a 100644 --- a/docs/lessons/spinner/quiz.md +++ b/docs/lessons/spinner/quiz.md @@ -6,7 +6,7 @@ a spin the BBC micro:bit game with the input on shake. ## Directions -Use this activity document to guide your work in the [spinner tutorial](/microbit/lessons/spinner/activity). +Use this activity document to guide your work in the [spinner tutorial](/lessons/spinner/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/stem.md b/docs/lessons/stem.md index 1849ea37..1925b85b 100644 --- a/docs/lessons/stem.md +++ b/docs/lessons/stem.md @@ -8,12 +8,12 @@ Overview of Blocks lessons for the BBC micro:bit. ## Science -* [Night Light](/microbit/lessons/night-light), dim the LEDs with set brightness -* [Hack your headphones](/microbit/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones -* [Banana Keyboard](/microbit/lessons/banana-keyboard), create music with fruits -* [Telegraph](/microbit/lessons/telegraph), play the telegraph game between 2 BBC micro:bits -* [Zoomer](/microbit/lessons/zoomer), measure the force with acceleration -* [Glowing pendulum](/microbit/lessons/glowing-pendulum), construct a pendulum that glows using acceleration +* [Night Light](/lessons/night-light), dim the LEDs with set brightness +* [Hack your headphones](/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones +* [Banana Keyboard](/lessons/banana-keyboard), create music with fruits +* [Telegraph](/lessons/telegraph), play the telegraph game between 2 BBC micro:bits +* [Zoomer](/lessons/zoomer), measure the force with acceleration +* [Glowing pendulum](/lessons/glowing-pendulum), construct a pendulum that glows using acceleration ### ~ @@ -21,16 +21,16 @@ Overview of Blocks lessons for the BBC micro:bit. ## Technology -* [Beautiful Image](/microbit/lessons/beautiful-image), show a beautiful image with show LEDs -* [Answering machine](/microbit/lessons/answering-machine), show a text message with show string -* [Game of chance](/microbit/lessons/game-of-chance), show a text message with game over -* [Smiley,](/microbit/lessons/smiley) smiley and frowney faces that transition on button pressed -* [Snowflake fall](/microbit/lessons/snowflake-fall), repeat a series of images with forever -* [Screen wipe](/microbit/lessons/screen-wipe), turn off the LEDs with clear screen -* [Flashing heart](/microbit/lessons/flashing-heart), display images with a pause -* [Blink](/microbit/lessons/blink), turn an LED on and off with plot -* [Happy birthday](/microbit/lessons/happy-birthday), create a popular song -* [Magic 8](/microbit/lessons/magic-8), a fortune teller game with the BBC micro:bit +* [Beautiful Image](/lessons/beautiful-image), show a beautiful image with show LEDs +* [Answering machine](/lessons/answering-machine), show a text message with show string +* [Game of chance](/lessons/game-of-chance), show a text message with game over +* [Smiley,](/lessons/smiley) smiley and frowney faces that transition on button pressed +* [Snowflake fall](/lessons/snowflake-fall), repeat a series of images with forever +* [Screen wipe](/lessons/screen-wipe), turn off the LEDs with clear screen +* [Flashing heart](/lessons/flashing-heart), display images with a pause +* [Blink](/lessons/blink), turn an LED on and off with plot +* [Happy birthday](/lessons/happy-birthday), create a popular song +* [Magic 8](/lessons/magic-8), a fortune teller game with the BBC micro:bit ### ~ @@ -38,12 +38,12 @@ Overview of Blocks lessons for the BBC micro:bit. ## Engineering -* [The Watch](/microbit/lessons/the-watch), design and create The Watch -* [Truth or dare](/microbit/lessons/truth-or-dare), a game that forces each player to reveal a secret or do something funny with if statement -* [Spinner](/microbit/lessons/spinner), spin the arrow with multiple if statements -* [Die roll](/microbit/lessons/die-roll), spin with more if statements -* [Beatbox](/microbit/lessons/beatbox), make a beatbox music player with variables -* [Temperature](/microbit/lessons/temperature), get the ambient temperature (degree Celsius °C) +* [The Watch](/lessons/the-watch), design and create The Watch +* [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 +* [Die roll](/lessons/die-roll), spin with more if statements +* [Beatbox](/lessons/beatbox), make a beatbox music player with variables +* [Temperature](/lessons/temperature), get the ambient temperature (degree Celsius °C) ### ~ @@ -51,15 +51,15 @@ Overview of Blocks lessons for the BBC micro:bit. ## Math -* [Lucky 7](/microbit/lessons/lucky-7), show a number on the LED screen with show number -* [Game Counter](/microbit/lessons/game-counter), displays the player's score with score and add points to score -* [Guess the Number](/microbit/lessons/guess-the-number), guess a random number with pick number -* [Counter](/microbit/lessons/counter), display a number with a variable -* [Love meter](/microbit/lessons/love-meter), create a love meter with on pin pressed -* [Looper](/microbit/lessons/looper), display a series of numbers with a for loop index -* [Strobe light](/microbit/lessons/strobe-light), develop shapes with a nested for loops -* [Digi Yoyo](/microbit/lessons/digi-yoyo), create a counter with a while loop -* [Rotation animation](/microbit/lessons/rotation-animation), control an animation with a boolean variable +* [Lucky 7](/lessons/lucky-7), show a number on the LED screen with show number +* [Game Counter](/lessons/game-counter), displays the player's score with score and add points to score +* [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 +* [Looper](/lessons/looper), display a series of numbers with a for loop index +* [Strobe light](/lessons/strobe-light), develop shapes with a nested for loops +* [Digi Yoyo](/lessons/digi-yoyo), create a counter with a while loop +* [Rotation animation](/lessons/rotation-animation), control an animation with a boolean variable ### ~ diff --git a/docs/lessons/strobe-light.md b/docs/lessons/strobe-light.md index 1d11506a..04e8e35a 100644 --- a/docs/lessons/strobe-light.md +++ b/docs/lessons/strobe-light.md @@ -10,10 +10,10 @@ For Loop ## Quick links -* [activity](/microbit/lessons/strobe-light/activity) -* [challenges](/microbit/lessons/strobe-light/challenges) -* [quiz](/microbit/lessons/strobe-light/quiz) -* [quiz answers](/microbit/lessons/strobe-light/quiz-answers) +* [activity](/lessons/strobe-light/activity) +* [challenges](/lessons/strobe-light/challenges) +* [quiz](/lessons/strobe-light/quiz) +* [quiz answers](/lessons/strobe-light/quiz-answers) ## Documentation diff --git a/docs/lessons/strobe-light/activity.md b/docs/lessons/strobe-light/activity.md index 80ed82ba..27f3e52e 100644 --- a/docs/lessons/strobe-light/activity.md +++ b/docs/lessons/strobe-light/activity.md @@ -56,7 +56,7 @@ for (let i = 0; i < 5; i++) { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/strobe-light/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/strobe-light/challenges)! ### ~ diff --git a/docs/lessons/strobe-light/challenges.md b/docs/lessons/strobe-light/challenges.md index 963aa35c..3afd932a 100644 --- a/docs/lessons/strobe-light/challenges.md +++ b/docs/lessons/strobe-light/challenges.md @@ -4,7 +4,7 @@ Coding challenges for strobe light. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/strobe-light/activity), your code should look like this: +Complete the following [guided tutorial](/lessons/strobe-light/activity), your code should look like this: ```blocks diff --git a/docs/lessons/strobe-light/quiz-answers.md b/docs/lessons/strobe-light/quiz-answers.md index 1335af85..d792cec4 100644 --- a/docs/lessons/strobe-light/quiz-answers.md +++ b/docs/lessons/strobe-light/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create a blinking images with a for loop. -This is the answer key for the [strobe light quiz](/microbit/lessons/strobe-light/quiz). +This is the answer key for the [strobe light quiz](/lessons/strobe-light/quiz). ## 1. What is a for loop? diff --git a/docs/lessons/strobe-light/quiz.md b/docs/lessons/strobe-light/quiz.md index f2ee13c0..1aa0c04e 100644 --- a/docs/lessons/strobe-light/quiz.md +++ b/docs/lessons/strobe-light/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking LED script with a for loop. ## Directions -Use this activity document to guide your work in the [strobe light tutorial](/microbit/lessons/strobe-light/activity) +Use this activity document to guide your work in the [strobe light tutorial](/lessons/strobe-light/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/teach.md b/docs/lessons/teach.md index 5df43de5..6cf87ed7 100644 --- a/docs/lessons/teach.md +++ b/docs/lessons/teach.md @@ -4,41 +4,41 @@ Overview of lesson instructions for the BBC micro:bit. ### @short Teach -The [lessons](/microbit/lessons) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public and private education, where they will be available to Year 7 students. This page is a 'how to manual' for using the lessons in the classroom. +The [lessons](/lessons) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public and private education, where they will be available to Year 7 students. This page is a 'how to manual' for using the lessons in the classroom. ### @section full ## Summary -The [lessons](/microbit/lessons) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public education, where they will be available to Year 7 students. You will find comprehensive teacher training and preparation (lesson plans, videos, guided tutorials, quiz, challenges, and quiz answers). The curriculum has been organized for students from Beginner to Advanced lessons in an effort to build student confidence with computational thinking and coding concepts. The lesson has been constructed with a teacher lesson plan, video(s), activity, quiz, challenges, and quiz answers to demonstrate mastery with the Progression Pathways and Computational Thinking Framework. The lesson should occur on-site during a single instructional block. +The [lessons](/lessons) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public education, where they will be available to Year 7 students. You will find comprehensive teacher training and preparation (lesson plans, videos, guided tutorials, quiz, challenges, and quiz answers). The curriculum has been organized for students from Beginner to Advanced lessons in an effort to build student confidence with computational thinking and coding concepts. The lesson has been constructed with a teacher lesson plan, video(s), activity, quiz, challenges, and quiz answers to demonstrate mastery with the Progression Pathways and Computational Thinking Framework. The lesson should occur on-site during a single instructional block. ## Lesson Resources 1) Lesson Plan -The lesson plan maps to the Progressions Pathways, Computing Curriculum, and QuickStart Computing Glossary. The lesson plan explains the concepts being taught for computational thinking while supporting your classroom instruction. A lesson plan also contains Quick Links to the lesson's tutorial, challenges, quiz, and quiz answers as shown in the [blink lesson plan](/microbit/lessons/blink). +The lesson plan maps to the Progressions Pathways, Computing Curriculum, and QuickStart Computing Glossary. The lesson plan explains the concepts being taught for computational thinking while supporting your classroom instruction. A lesson plan also contains Quick Links to the lesson's tutorial, challenges, quiz, and quiz answers as shown in the [blink lesson plan](/lessons/blink). 2) Activity -Expand your knowledge of programming with lots of great step-by-step activities. All the lessons come with instructions that will drive the students to a complete, functional code. These activities are very directive to make sure that students keep progressing. When the activities are over, additional challenges are given to advance code through printed instructions. An activity contains supporting videos as shown with the [blink activity](/microbit/lessons/blink/activity). +Expand your knowledge of programming with lots of great step-by-step activities. All the lessons come with instructions that will drive the students to a complete, functional code. These activities are very directive to make sure that students keep progressing. When the activities are over, additional challenges are given to advance code through printed instructions. An activity contains supporting videos as shown with the [blink activity](/lessons/blink/activity). ### @video td/videos/blink-0 3) Quiz -Expand your knowledge of computational thinking and computer science literacy with lots of great quizzes. All the tutorials come with quiz questions that will encourage the students to process and evaluate the concepts being introduced throughout the lesson. The quiz questions are mapped to the concepts being introduced in the lesson to make sure that students understand the computer science concepts. Quizzes apply the concepts taught in the tutorial as shown with the [blink quiz](/microbit/lessons/blink/quiz). +Expand your knowledge of computational thinking and computer science literacy with lots of great quizzes. All the tutorials come with quiz questions that will encourage the students to process and evaluate the concepts being introduced throughout the lesson. The quiz questions are mapped to the concepts being introduced in the lesson to make sure that students understand the computer science concepts. Quizzes apply the concepts taught in the tutorial as shown with the [blink quiz](/lessons/blink/quiz). 4) Quiz Answers -The quiz answers provide responses to the quiz. This will allow teachers to accurately review and grade student responses. Please review a sample of the quiz answers provided with the [blink quiz answers](/microbit/lessons/blink/quiz-answers). +The quiz answers provide responses to the quiz. This will allow teachers to accurately review and grade student responses. Please review a sample of the quiz answers provided with the [blink quiz answers](/lessons/blink/quiz-answers). 5) Challenges -After the student completes the quiz, tutorial, and compiles the code onto the BBC micro:bit, distribute the lesson’s challenges. Challenges are additional customizing and exercises for the students. Challenges reinforce the concepts followed in the tutorial and quiz responses as shown with the [blink challenges](/microbit/lessons/blink/challenges). +After the student completes the quiz, tutorial, and compiles the code onto the BBC micro:bit, distribute the lesson’s challenges. Challenges are additional customizing and exercises for the students. Challenges reinforce the concepts followed in the tutorial and quiz responses as shown with the [blink challenges](/lessons/blink/challenges). ## Teacher Directions -1) Teacher select a lesson from the [lessons](/microbit/lessons) +1) Teacher select a lesson from the [lessons](/lessons) 2) Print the quiz and the challenges for each student diff --git a/docs/lessons/telegraph.md b/docs/lessons/telegraph.md index 177aa0dd..3139fd21 100644 --- a/docs/lessons/telegraph.md +++ b/docs/lessons/telegraph.md @@ -8,8 +8,8 @@ Telegraph ## Quick Links -* [activity](/microbit/lessons/telegraph/activity) -* [challenges](/microbit/lessons/telegraph/challenges) +* [activity](/lessons/telegraph/activity) +* [challenges](/lessons/telegraph/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/telegraph/activity.md b/docs/lessons/telegraph/activity.md index 18d1db96..1300c1ab 100644 --- a/docs/lessons/telegraph/activity.md +++ b/docs/lessons/telegraph/activity.md @@ -70,6 +70,6 @@ Using the 4th crocodile clip, connect the unattached end of the crocodile clip o ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/telegraph/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/telegraph/challenges)! ### ~ diff --git a/docs/lessons/telegraph/challenges.md b/docs/lessons/telegraph/challenges.md index 7015c127..85c9e418 100644 --- a/docs/lessons/telegraph/challenges.md +++ b/docs/lessons/telegraph/challenges.md @@ -10,7 +10,7 @@ Build a telgraph. Have you ever tried to communicate through a telegraph? Let's try coding a "Telegraph" on two BBC micro:bits ! -Complete the following [guided tutorial](/microbit/lessons/telegraph/activity), your hack should look like this: +Complete the following [guided tutorial](/lessons/telegraph/activity), your hack should look like this: ![](/static/mb/lessons/telegraph-0.png) @@ -109,6 +109,6 @@ Your telegraph is ready! ### Step 7 -* Connect the first micro:bit to your computer using your USB cable and run the [telegraph](/microbit/nnudbr) script on it. -* Connect the second micro:bit to your computer using your USB cable and run the [telegraph](/microbit/nnudbr) script on it. +* Connect the first micro:bit to your computer using your USB cable and run the [telegraph](/nnudbr) script on it. +* Connect the second micro:bit to your computer using your USB cable and run the [telegraph](/nnudbr) script on it. * The first person and second person take turns pressing button A to play the telegraph game! diff --git a/docs/lessons/temperature.md b/docs/lessons/temperature.md index 08c742fa..219a101a 100644 --- a/docs/lessons/temperature.md +++ b/docs/lessons/temperature.md @@ -8,8 +8,8 @@ Temperature ## Quick Links -* [activity](/microbit/lessons/temperature/activity) -* [challenges](/microbit/lessons/temperature/challenges) +* [activity](/lessons/temperature/activity) +* [challenges](/lessons/temperature/challenges) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/temperature/activity.md b/docs/lessons/temperature/activity.md index 63beb8ef..58399e9a 100644 --- a/docs/lessons/temperature/activity.md +++ b/docs/lessons/temperature/activity.md @@ -2,7 +2,7 @@ Measure the temperature on the micro:bit -To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`. +To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`. Welcome! This activity will teach how to measure the temperature on the micro:bit. Let's get started! @@ -36,7 +36,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/temperature/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/temperature/challenges)! ### ~ diff --git a/docs/lessons/temperature/challenges.md b/docs/lessons/temperature/challenges.md index c81a26cc..8ca0b2bc 100644 --- a/docs/lessons/temperature/challenges.md +++ b/docs/lessons/temperature/challenges.md @@ -4,7 +4,7 @@ Coding challenges for zoomer. ## Before we get started -Complete the following guided [temperature activity](/microbit/lessons/temperature/activity). At the end of the activity, your code should look like this: +Complete the following guided [temperature activity](/lessons/temperature/activity). At the end of the activity, your code should look like this: ```blocks input.onGesture(Gesture.Shake, () => { diff --git a/docs/lessons/the-watch.md b/docs/lessons/the-watch.md index 59398a15..c05bb73b 100644 --- a/docs/lessons/the-watch.md +++ b/docs/lessons/the-watch.md @@ -10,7 +10,7 @@ The Watch ## Quick Links -* [activity](/microbit/lessons/the-watch/activity) +* [activity](/lessons/the-watch/activity) diff --git a/docs/lessons/the-watch/activity.md b/docs/lessons/the-watch/activity.md index ded78cb7..b5b7d4f6 100644 --- a/docs/lessons/the-watch/activity.md +++ b/docs/lessons/the-watch/activity.md @@ -152,7 +152,7 @@ Your watch is ready! ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/rock-paper-scissors/activity)! +Excellent, you're ready to continue with the [challenges](/lessons/rock-paper-scissors/activity)! ### ~ diff --git a/docs/lessons/truth-or-dare.md b/docs/lessons/truth-or-dare.md index 1bfcf90a..7dc14512 100644 --- a/docs/lessons/truth-or-dare.md +++ b/docs/lessons/truth-or-dare.md @@ -10,10 +10,10 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/truth-or-dare/activity) -* [challenges](/microbit/lessons/truth-or-dare/challenges) -* [quiz](/microbit/lessons/truth-or-dare/quiz) -* [quiz answers](/microbit/lessons/truth-or-dare/quiz-answers) +* [activity](/lessons/truth-or-dare/activity) +* [challenges](/lessons/truth-or-dare/challenges) +* [quiz](/lessons/truth-or-dare/quiz) +* [quiz answers](/lessons/truth-or-dare/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/truth-or-dare/activity.md b/docs/lessons/truth-or-dare/activity.md index d0f7a1c4..09b9bfb6 100644 --- a/docs/lessons/truth-or-dare/activity.md +++ b/docs/lessons/truth-or-dare/activity.md @@ -92,7 +92,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/truth-or-dare/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/truth-or-dare/challenges)! ### ~ diff --git a/docs/lessons/truth-or-dare/challenges.md b/docs/lessons/truth-or-dare/challenges.md index cc5ca31a..20f36ff0 100644 --- a/docs/lessons/truth-or-dare/challenges.md +++ b/docs/lessons/truth-or-dare/challenges.md @@ -4,7 +4,7 @@ A multi-player game that forces each player to reveal a secret or something funn ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/truth-or-dare/activity), and your code should look like this +Complete the following [guided tutorial](/lessons/truth-or-dare/activity), and your code should look like this ```blocks diff --git a/docs/lessons/truth-or-dare/quiz-answers.md b/docs/lessons/truth-or-dare/quiz-answers.md index ed32ade4..11ac8f1d 100644 --- a/docs/lessons/truth-or-dare/quiz-answers.md +++ b/docs/lessons/truth-or-dare/quiz-answers.md @@ -2,7 +2,7 @@ a multi-player game that forces each player to reveal a secret or something funny. -This is the answer key for the [truth or dare quiz](/microbit/lessons/truth-or-dare/quiz). +This is the answer key for the [truth or dare quiz](/lessons/truth-or-dare/quiz). ## 1. Write the code that will randomly return 0 through 3 and stores the value inside a local variable called 'random'. diff --git a/docs/lessons/truth-or-dare/quiz.md b/docs/lessons/truth-or-dare/quiz.md index 99a304ef..e3c6e4be 100644 --- a/docs/lessons/truth-or-dare/quiz.md +++ b/docs/lessons/truth-or-dare/quiz.md @@ -6,7 +6,7 @@ a multi-player game that forces each player to reveal a secret or something funn ## Directions -Use this activity document to guide your work in the [truth or dare tutorial](/microbit/lessons/truth-or-dare/activity). +Use this activity document to guide your work in the [truth or dare tutorial](/lessons/truth-or-dare/activity). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/lessons/zoomer.md b/docs/lessons/zoomer.md index 6260400d..3c592b37 100644 --- a/docs/lessons/zoomer.md +++ b/docs/lessons/zoomer.md @@ -10,10 +10,10 @@ Acceleration ## Quick Links -* [activity](/microbit/lessons/zoomer/activity) -* [challenges](/microbit/lessons/zoomer/challenges) -* [quiz](/microbit/lessons/zoomer/quiz) -* [quiz answers](/microbit/lessons/zoomer/quiz-answers) +* [activity](/lessons/zoomer/activity) +* [challenges](/lessons/zoomer/challenges) +* [quiz](/lessons/zoomer/quiz) +* [quiz answers](/lessons/zoomer/quiz-answers) ## Prior learning/place of lesson in scheme of work diff --git a/docs/lessons/zoomer/activity.md b/docs/lessons/zoomer/activity.md index 142c8d9b..47ad660e 100644 --- a/docs/lessons/zoomer/activity.md +++ b/docs/lessons/zoomer/activity.md @@ -8,7 +8,7 @@ Measure the acceleration on the micro:bit in the "z" direction. ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap `New Project` under `Block Editor`. +To create a new script, go to the [Create Code](/create-code) page and tap `New Project` under `Block Editor`. Welcome! This activity will teach how to measure the acceleration on the micro:bit in the "z" direction. Let's get started! @@ -39,7 +39,7 @@ basic.forever(() => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/zoomer/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/zoomer/challenges)! ### ~ diff --git a/docs/lessons/zoomer/challenges.md b/docs/lessons/zoomer/challenges.md index 3ccb4ec8..6698ffb4 100644 --- a/docs/lessons/zoomer/challenges.md +++ b/docs/lessons/zoomer/challenges.md @@ -4,7 +4,7 @@ Coding challenges for zoomer. ## Before we get started -Complete the following [activity](/microbit/lessons/zoomer/activity) and your finished code should look like this: +Complete the following [activity](/lessons/zoomer/activity) and your finished code should look like this: ```blocks basic.forever(() => { diff --git a/docs/lessons/zoomer/quiz-answers.md b/docs/lessons/zoomer/quiz-answers.md index cb56af30..d91c8ca1 100644 --- a/docs/lessons/zoomer/quiz-answers.md +++ b/docs/lessons/zoomer/quiz-answers.md @@ -2,7 +2,7 @@ Measure the acceleration on the micro:bit in the "z" direction. -This is the answer key for the [zoomer quiz](/microbit/lessons/zoomer/quiz). +This is the answer key for the [zoomer quiz](/lessons/zoomer/quiz). ## 1. What is 'acceleration'? diff --git a/docs/lessons/zoomer/quiz.md b/docs/lessons/zoomer/quiz.md index 52f2c05f..822c2de3 100644 --- a/docs/lessons/zoomer/quiz.md +++ b/docs/lessons/zoomer/quiz.md @@ -6,7 +6,7 @@ Measure the acceleration on the micro:bit in the "z" direction. ## Directions -Use this activity document to guide your work in the [zoomer tutorial](/microbit/lessons/zoomer/activity) +Use this activity document to guide your work in the [zoomer tutorial](/lessons/zoomer/activity) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/basic/clear-screen.md b/docs/reference/basic/clear-screen.md index dc43cc6c..1af9bf55 100644 --- a/docs/reference/basic/clear-screen.md +++ b/docs/reference/basic/clear-screen.md @@ -1,6 +1,6 @@ # Clear Screen -Turn off all the LED lights on the [LED screen](/microbit/device/screen). +Turn off all the LED lights on the [LED screen](/device/screen). ```sig basic.clearScreen() @@ -23,9 +23,9 @@ basic.clearScreen() ### Lessons -[blink](/microbit/lessons/blink), [flashing heart](/microbit/lessons/flashing-heart), [screen wipe](/microbit/lessons/screen-wipe) +[blink](/lessons/blink), [flashing heart](/lessons/flashing-heart), [screen wipe](/lessons/screen-wipe) ### See also -[set brightness](/microbit/reference/led/set-brightness), [unplot](/microbit/reference/led/unplot), [plot](/microbit/reference/led/plot), [Image](/microbit/reference/image/image), [clear](/microbit/reference/basic/clear-screen) +[set brightness](/reference/led/set-brightness), [unplot](/reference/led/unplot), [plot](/reference/led/plot), [Image](/reference/image/image), [clear](/reference/basic/clear-screen) diff --git a/docs/reference/basic/forever.md b/docs/reference/basic/forever.md index e892587c..f399d161 100644 --- a/docs/reference/basic/forever.md +++ b/docs/reference/basic/forever.md @@ -1,6 +1,6 @@ # Forever -Repeat code [in the background](/microbit/reference/control/in-background) forever. +Repeat code [in the background](/reference/control/in-background) forever. ```sig basic.forever(() => { @@ -9,7 +9,7 @@ basic.forever(() => { ### Example: compass -The following example constantly checks the [compass heading](/microbit/reference/input/compass-heading) and updates the screen with the direction. +The following example constantly checks the [compass heading](/reference/input/compass-heading) and updates the screen with the direction. ```blocks basic.forever(() => { @@ -57,9 +57,9 @@ input.onButtonPressed(Button.A, () => { ### Lessons -[blink](/microbit/lessons/blink), [bounce-image](/microbit/lessons/bounce-image), [snowflake-fall](/microbit/lessons/snowflake-fall), [flashing-heart](/microbit/lessons/flashing-heart) +[blink](/lessons/blink), [bounce-image](/lessons/bounce-image), [snowflake-fall](/lessons/snowflake-fall), [flashing-heart](/lessons/flashing-heart) ### See also -[while](/microbit/js/while), [on button pressed](/microbit/reference/input/on-button-pressed), [in background](/microbit/reference/control/in-background) +[while](/js/while), [on button pressed](/reference/input/on-button-pressed), [in background](/reference/control/in-background) diff --git a/docs/reference/basic/pause.md b/docs/reference/basic/pause.md index 0caa8ee6..c48efcac 100644 --- a/docs/reference/basic/pause.md +++ b/docs/reference/basic/pause.md @@ -23,9 +23,9 @@ for (let i = 0; i < 5; i++) { ### Lessons -[blink](/microbit/lessons/blink), [lucky 7](/microbit/lessons/lucky-7), [smiley](/microbit/lessons/smiley), [flashing heart](/microbit/lessons/flashing-heart) +[blink](/lessons/blink), [lucky 7](/lessons/lucky-7), [smiley](/lessons/smiley), [flashing heart](/lessons/flashing-heart) ### See also -[while](/microbit/js/while), [running time](/microbit/reference/input/running-time), [for](/microbit/reference/loops/for) +[while](/js/while), [running time](/reference/input/running-time), [for](/reference/loops/for) diff --git a/docs/reference/basic/show-animation.md b/docs/reference/basic/show-animation.md index 966df578..fa5f07ac 100644 --- a/docs/reference/basic/show-animation.md +++ b/docs/reference/basic/show-animation.md @@ -1,6 +1,6 @@ # Show Animation -Show a series of image frames on the [LED screen](/microbit/device/screen), pausing the specified time after each frame. +Show a series of image frames on the [LED screen](/device/screen), pausing the specified time after each frame. ```sig basic.showAnimation(` @@ -14,8 +14,8 @@ basic.showAnimation(` ### Parameters -* `leds` - [String](/microbit/reference/types/string); a series of LED on/off states -* `interval` - [Number](/microbit/reference/types/number); the number of milliseconds to pause after each image frame +* `leds` - [String](/reference/types/string); a series of LED on/off states +* `interval` - [Number](/reference/types/number); the number of milliseconds to pause after each image frame ### Show a series of image frames @@ -51,11 +51,11 @@ basic.showAnimation(` ### ~hint -Use [forever](/microbit/reference/basic/forever) to continually repeat an animation +Use [forever](/reference/basic/forever) to continually repeat an animation ### ~ ### Lessons -[smiley](/microbit/lessons/smiley), [bounce image](/microbit/lessons/bounce-image), [snowflake fall](/microbit/lessons/snowflake-fall), [rotation animation](/microbit/lessons/rotation-animation) +[smiley](/lessons/smiley), [bounce image](/lessons/bounce-image), [snowflake fall](/lessons/snowflake-fall), [rotation animation](/lessons/rotation-animation) diff --git a/docs/reference/basic/show-leds.md b/docs/reference/basic/show-leds.md index 6f6e7993..1e49fbcb 100644 --- a/docs/reference/basic/show-leds.md +++ b/docs/reference/basic/show-leds.md @@ -1,6 +1,6 @@ # Show LEDs -Display an image on the BBC micro:bit's [LED screen](/microbit/device/screen). +Display an image on the BBC micro:bit's [LED screen](/device/screen). ```sig basic.showLeds(` @@ -16,7 +16,7 @@ basic.showLeds(` ### Parameters * ``leds`` - a series of LED on/off states that form an image (see steps below) -* (optional) ``ms`` - [Number](/microbit/reference/types/number) - time to wait after displaying image. In blocks, ``ms`` is 400 by default. +* (optional) ``ms`` - [Number](/reference/types/number) - time to wait after displaying image. In blocks, ``ms`` is 400 by default. ### Example - Block Editor @@ -37,9 +37,9 @@ In JavaScript, the led off is represented by a `.` and the led on by a `#` chara ### Lessons -[smiley](/microbit/lessons/smiley), [flashing heart](/microbit/lessons/flashing-heart), [magic logo](/microbit/lessons/magic-logo) +[smiley](/lessons/smiley), [flashing heart](/lessons/flashing-heart), [magic logo](/lessons/magic-logo) ### See also -[plot leds](/microbit/reference/led/plot-leds), [show animation](/microbit/reference/led/show-animation) +[plot leds](/reference/led/plot-leds), [show animation](/reference/led/show-animation) diff --git a/docs/reference/basic/show-number.md b/docs/reference/basic/show-number.md index bf423499..9a477824 100644 --- a/docs/reference/basic/show-number.md +++ b/docs/reference/basic/show-number.md @@ -1,6 +1,6 @@ # Show Number -Show a number on the [LED screen](/microbit/device/screen), one digit at a time (scrolling from left to right) +Show a number on the [LED screen](/device/screen), one digit at a time (scrolling from left to right) ~~~~sig basic.showNumber(2, 150) @@ -8,8 +8,8 @@ basic.showNumber(2, 150) ### Parameters -* value - a [Number](/microbit/reference/types/number) -* (optional) interval (ms) - [Number](/microbit/reference/types/number); the time (in milliseconds) before scrolling by one LED; the larger the number, the slower the scroll +* value - a [Number](/reference/types/number) +* (optional) interval (ms) - [Number](/reference/types/number); the time (in milliseconds) before scrolling by one LED; the larger the number, the slower the scroll ### ~ @@ -28,7 +28,7 @@ basic.showNumber(x) ### Example: count to 5 -This example uses a [for](/microbit/reference/loops/for) loop to show numbers ``1`` through ``5`` on the screen: +This example uses a [for](/reference/loops/for) loop to show numbers ``1`` through ``5`` on the screen: ~~~~blocks for (let i = 0; i < 5; i++) { @@ -39,14 +39,14 @@ for (let i = 0; i < 5; i++) { ### Other show functions -* use [show string](/microbit/reference/basic/show-string) to show a string on the screen -* use [show animation](/microbit/reference/basic/show-animation) to show a series of images on the screen +* use [show string](/reference/basic/show-string) to show a string on the screen +* use [show animation](/reference/basic/show-animation) to show a series of images on the screen ### Lessons -* [lucky 7](/microbit/lessons/lucky-7) +* [lucky 7](/lessons/lucky-7) ### See also -[show string](/microbit/reference/basic/show-string), [show animation](/microbit/reference/basic/show-animation), [Number](/microbit/reference/types/number), [math library](/microbit/js/math) +[show string](/reference/basic/show-string), [show animation](/reference/basic/show-animation), [Number](/reference/types/number), [math library](/js/math) diff --git a/docs/reference/basic/show-string.md b/docs/reference/basic/show-string.md index 8fa834d6..ec94a901 100644 --- a/docs/reference/basic/show-string.md +++ b/docs/reference/basic/show-string.md @@ -1,6 +1,6 @@ # Show String -Show a string on the [LED screen](/microbit/device/screen) one character at a time (scrolling from left to right). +Show a string on the [LED screen](/device/screen) one character at a time (scrolling from left to right). ```sig basic.showString("Hello!") @@ -8,8 +8,8 @@ basic.showString("Hello!") ### Parameters -* `text` - a [String](/microbit/reference/types/string) -* (optional) `ms` - [Number](/microbit/reference/types/number); the time (in milliseconds) before scrolling left by one LED; the larger the number, the slower the scroll +* `text` - a [String](/reference/types/string) +* (optional) `ms` - [Number](/reference/types/number); the time (in milliseconds) before scrolling left by one LED; the larger the number, the slower the scroll ### Examples: @@ -28,14 +28,14 @@ basic.showString(s) ### Other show functions -* use [show number](/microbit/reference/basic/show-number) to show a number on the screen -* use [show animation](/microbit/reference/basic/show-animation) to show a series of images on the screen +* use [show number](/reference/basic/show-number) to show a number on the screen +* use [show animation](/reference/basic/show-animation) to show a series of images on the screen ### Lessons -[answering machine](/microbit/lessons/answering-machine), [rock paper scissors](/microbit/lessons/rock-paper-scissors), [love meter](/microbit/lessons/love-meter), [digital pet](/microbit/lessons/digital-pet) +[answering machine](/lessons/answering-machine), [rock paper scissors](/lessons/rock-paper-scissors), [love meter](/lessons/love-meter), [digital pet](/lessons/digital-pet) ### See also -[String](/microbit/reference/types/string), [string functions](/microbit/reference/types/string-functions), [show number](/microbit/reference/basic/show-number), [show animation](/microbit/reference/basic/show-animation) +[String](/reference/types/string), [string functions](/reference/types/string-functions), [show number](/reference/basic/show-number), [show animation](/reference/basic/show-animation) diff --git a/docs/reference/blocks-vs-js.md b/docs/reference/blocks-vs-js.md index b7dfacfd..96a71996 100644 --- a/docs/reference/blocks-vs-js.md +++ b/docs/reference/blocks-vs-js.md @@ -12,7 +12,7 @@ In the interval notation, the brackets "[" and "]" represent inclusive endpoints ### Block Editor for loop uses a 0-based inclusive interval -Numeric intervals arise in the context of for loops, both in the Block Editor and Touch Develop. Here's a Block Editor for loop to draw a diagonal line from the top-left corner of the [LED screen](/microbit/device/screen) to the bottom-right corner. The loop iteration variable *i* ranges "from 0 to 4": +Numeric intervals arise in the context of for loops, both in the Block Editor and Touch Develop. Here's a Block Editor for loop to draw a diagonal line from the top-left corner of the [LED screen](/device/screen) to the bottom-right corner. The loop iteration variable *i* ranges "from 0 to 4": ![](/static/mb/blocks/to-td-0.png) diff --git a/docs/reference/comment.md b/docs/reference/comment.md index 28bd636e..f230ae20 100644 --- a/docs/reference/comment.md +++ b/docs/reference/comment.md @@ -12,7 +12,7 @@ Right click on any block and add a comment ### ~hint -To find out how to insert comments using the Blocks editor, see [the Blocks editor](/microbit/blocks/editor). +To find out how to insert comments using the Blocks editor, see [the Blocks editor](/blocks/editor). ### ~ @@ -34,5 +34,5 @@ When you want to uncomment your code, right click the on the comment, and then c ### See also -[Block editor](/microbit/blocks/editor) +[Block editor](/blocks/editor) diff --git a/docs/reference/control/in-background.md b/docs/reference/control/in-background.md index efc09322..f7b93be5 100644 --- a/docs/reference/control/in-background.md +++ b/docs/reference/control/in-background.md @@ -1,6 +1,6 @@ # In Background -Run code in the background as a separate process or thread; for more information on this advanced construct, see [the micro:bit - a reactive system](/microbit/device/reactive). +Run code in the background as a separate process or thread; for more information on this advanced construct, see [the micro:bit - a reactive system](/device/reactive). ```sig control.inBackground(() => { @@ -51,5 +51,5 @@ input.onButtonPressed(Button.A, () => { ### See also -[while](/microbit/reference/loops/while), [forever](/microbit/reference/basic/forever), [on button pressed](/microbit/reference/input/on-button-pressed) +[while](/reference/loops/while), [forever](/reference/basic/forever), [on button pressed](/reference/input/on-button-pressed) diff --git a/docs/reference/devices/on-gamepad-button.md b/docs/reference/devices/on-gamepad-button.md index 0f30f2f4..335b8834 100644 --- a/docs/reference/devices/on-gamepad-button.md +++ b/docs/reference/devices/on-gamepad-button.md @@ -24,5 +24,5 @@ export function onGamepadButton(name: string, body:td.Action) ### See Also -[tell remote control to](/microbit/reference/devices/tell-remote-control-to), [raise alert to](/microbit/reference/devices/raise-alert-to), [on notified](/microbit/reference/devices/on-notified), [signal strength](/microbit/reference/devices/signal-strength), [on signal strength changed](/microbit/reference/devices/on-signal-strength-changed) +[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [on notified](/reference/devices/on-notified), [signal strength](/reference/devices/signal-strength), [on signal strength changed](/reference/devices/on-signal-strength-changed) diff --git a/docs/reference/devices/on-signal-strength-changed.md b/docs/reference/devices/on-signal-strength-changed.md index 611b0b77..6fdb8e30 100644 --- a/docs/reference/devices/on-signal-strength-changed.md +++ b/docs/reference/devices/on-signal-strength-changed.md @@ -36,5 +36,5 @@ devices.onSignalStrengthChanged(() => { ### See Also -[tell remote control to](/microbit/reference/devices/tell-remote-control-to), [raise alert to](/microbit/reference/devices/raise-alert-to), [on notified](/microbit/reference/devices/on-notified), [signal strength](/microbit/reference/devices/signal-strength) +[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [on notified](/reference/devices/on-notified), [signal strength](/reference/devices/signal-strength) diff --git a/docs/reference/devices/raise-alert-to.md b/docs/reference/devices/raise-alert-to.md index 2afacaea..1e311c5e 100644 --- a/docs/reference/devices/raise-alert-to.md +++ b/docs/reference/devices/raise-alert-to.md @@ -64,5 +64,5 @@ devices.raiseAlertTo("ring alarm") ### See also -[tell remote control to](/microbit/reference/devices/tell-remote-control-to), [tell camera to](/microbit/reference/devices/tell-camera-to), [on notified](/microbit/reference/devices/on-notified) +[tell remote control to](/reference/devices/tell-remote-control-to), [tell camera to](/reference/devices/tell-camera-to), [on notified](/reference/devices/on-notified) diff --git a/docs/reference/devices/receive-number.md b/docs/reference/devices/receive-number.md index 9d642d6d..87c68e0b 100644 --- a/docs/reference/devices/receive-number.md +++ b/docs/reference/devices/receive-number.md @@ -38,5 +38,5 @@ radio.onDataReceived(() => { ### See also -[send number](/microbit/reference/radio/send-number), [receive number](/microbit/reference/radio/receive-number), [on data received](/microbit/reference/radio/on-data-received), [set group](/microbit/reference/radio/set-group) +[send number](/reference/radio/send-number), [receive number](/reference/radio/receive-number), [on data received](/reference/radio/on-data-received), [set group](/reference/radio/set-group) diff --git a/docs/reference/devices/signal-strength.md b/docs/reference/devices/signal-strength.md index 335b4951..4f7642ff 100644 --- a/docs/reference/devices/signal-strength.md +++ b/docs/reference/devices/signal-strength.md @@ -36,5 +36,5 @@ devices.onSignalStrengthChanged(() => { ### See Also -[tell remote control to](/microbit/reference/devices/tell-remote-control-to), [raise alert to](/microbit/reference/devices/raise-alert-to), [on notified](/microbit/reference/devices/on-notified), [on signal strength changed](/microbit/reference/devices/on-signal-strength-changed) +[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [on notified](/reference/devices/on-notified), [on signal strength changed](/reference/devices/on-signal-strength-changed) diff --git a/docs/reference/devices/tell-camera-to.md b/docs/reference/devices/tell-camera-to.md index 6cbfaf2e..c5d1f6ab 100644 --- a/docs/reference/devices/tell-camera-to.md +++ b/docs/reference/devices/tell-camera-to.md @@ -76,5 +76,5 @@ devices.tellCameraTo("stop video mode") ### See Also -[tell remote control to](/microbit/reference/devices/tell-remote-control-to), [raise alert to](/microbit/reference/devices/raise-alert-to), [on notified](/microbit/reference/devices/on-notified) +[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [on notified](/reference/devices/on-notified) diff --git a/docs/reference/devices/tell-microphone-to.md b/docs/reference/devices/tell-microphone-to.md index 039aac40..9f63d116 100644 --- a/docs/reference/devices/tell-microphone-to.md +++ b/docs/reference/devices/tell-microphone-to.md @@ -48,11 +48,11 @@ antenna.tellMicrophoneTo("stop capture") ### Other show functions -* use [tell remote control to](/microbit/reference/devices/tell-remote-control-to) to control presentation of media content -* use [tell camera to](/microbit/reference/devices/tell-camera-to) to control the photo/video recording of connected devices -* use [raise alert to](/microbit/reference/devices/raise-alert-to) to control the microphone of connected devices +* use [tell remote control to](/reference/devices/tell-remote-control-to) to control presentation of media content +* use [tell camera to](/reference/devices/tell-camera-to) to control the photo/video recording of connected devices +* use [raise alert to](/reference/devices/raise-alert-to) to control the microphone of connected devices ### See also -[Antenna](/microbit/js/antenna) +[Antenna](/js/antenna) diff --git a/docs/reference/devices/tell-remote-control-to.md b/docs/reference/devices/tell-remote-control-to.md index 584ee167..97c81435 100644 --- a/docs/reference/devices/tell-remote-control-to.md +++ b/docs/reference/devices/tell-remote-control-to.md @@ -88,5 +88,5 @@ devices.tellRemoteControlTo("volume down") ### See also -[tell camera to](/microbit/reference/devices/tell-camera-to), [raise alert to](/microbit/reference/devices/raise-alert-to), [on notified](/microbit/reference/devices/on-notified) +[tell camera to](/reference/devices/tell-camera-to), [raise alert to](/reference/devices/raise-alert-to), [on notified](/reference/devices/on-notified) diff --git a/docs/reference/game/change-score-by.md b/docs/reference/game/change-score-by.md index 7588ce54..e62bfe24 100644 --- a/docs/reference/game/change-score-by.md +++ b/docs/reference/game/change-score-by.md @@ -39,5 +39,5 @@ export function score() : number ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/change.md b/docs/reference/game/change.md index 7cb09b3c..6a82224b 100644 --- a/docs/reference/game/change.md +++ b/docs/reference/game/change.md @@ -26,5 +26,5 @@ export function changeYBy(_this: micro_bitSprites.LedSprite, y: number) ### Lessons -[game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/clear.md b/docs/reference/game/clear.md index 6adc7278..d39cbb4f 100644 --- a/docs/reference/game/clear.md +++ b/docs/reference/game/clear.md @@ -2,7 +2,7 @@ The clear function for images. -Turn off all the pixels in an [Image](/microbit/reference/image/image). +Turn off all the pixels in an [Image](/reference/image/image). ### KindScript @@ -35,5 +35,5 @@ input.onButtonPressed(Button.A, () => { ### See also -[Image](/microbit/reference/image/image), [show animation](/microbit/reference/basic/show-animation), [show image](/microbit/reference/images/show-image), [scroll image](/microbit/reference/images/scroll-image), [create image](/microbit/reference/images/create-image) +[Image](/reference/image/image), [show animation](/reference/basic/show-animation), [show image](/reference/images/show-image), [scroll image](/reference/images/scroll-image), [create image](/reference/images/create-image) diff --git a/docs/reference/game/game-library.md b/docs/reference/game/game-library.md index b8457b36..2059a3d5 100644 --- a/docs/reference/game/game-library.md +++ b/docs/reference/game/game-library.md @@ -19,7 +19,7 @@ input.onButtonPressed(Button.A, () => { game.startCountdown(10000) ``` -### [Create sprite](/microbit/functions/game-library/create-sprite) +### [Create sprite](/functions/game-library/create-sprite) Create sprite with x, y coordinates and returns a LED Sprite. Create a new LED sprite. @@ -29,7 +29,7 @@ Create sprite with x, y coordinates and returns a LED Sprite. Create a new LED s export function createSprite(x: number, y: number) : micro_bitSprites.LedSprite ``` -### [Move](/microbit/functions/game-library/move) +### [Move](/functions/game-library/move) Sprite move by a certain number @@ -39,7 +39,7 @@ Sprite move by a certain number export function move(_this: micro_bitSprites.LedSprite, leds: number) ``` -### [Turn](/microbit/functions/game-library/turn) +### [Turn](/functions/game-library/turn) Rotates a sprite to the right by a certain number of degrees @@ -55,7 +55,7 @@ Rotates a sprite to the left by a certain number of degrees export function turnLeft(_this: micro_bitSprites.LedSprite, degrees: number) ``` -### [Change](/microbit/functions/game-library/change) +### [Change](/functions/game-library/change) Sprite will change the x position by this number @@ -71,7 +71,7 @@ Sprite will change the y position by this number export function changeYBy(_this: micro_bitSprites.LedSprite, y: number) ``` -### [Set](/microbit/functions/game-library/set) +### [Set](/functions/game-library/set) Sprite will change the x position by this number @@ -87,7 +87,7 @@ Sprite will change the y position by this number export function changeYBy(_this: micro_bitSprites.LedSprite, y: number) ``` -### [If on edge, bounce](/microbit/functions/game-library/if-on-edge-bounce) +### [If on edge, bounce](/functions/game-library/if-on-edge-bounce) Sprite - If the sprite is on the edge, the sprite will bounce @@ -97,7 +97,7 @@ Sprite - If the sprite is on the edge, the sprite will bounce export function ifOnEdge_Bounce(_this: micro_bitSprites.LedSprite) ``` -### [Change score by](/microbit/functions/game-library/change-score-by) +### [Change score by](/functions/game-library/change-score-by) When a player achieves a goal, you can increase the game score @@ -109,7 +109,7 @@ When a player achieves a goal, you can increase the game score export function addScore(points: number) ``` -### [Score](/microbit/functions/game-library/score) +### [Score](/functions/game-library/score) * set the current score to a particular value. @@ -125,7 +125,7 @@ export function setScore(value: number) export function score() : number ``` -### [Countdown](/microbit/functions/game-library/start-countdown) +### [Countdown](/functions/game-library/start-countdown) If your game has a time limit, you can start a countdown in which case `game->current time` returns the remaining time. @@ -137,7 +137,7 @@ If your game has a time limit, you can start a countdown in which case `game->cu export function startCountdown(ms: number) ``` -### [Game over](/microbit/functions/game-library/game-over) +### [Game over](/functions/game-library/game-over) If the `life` reaches zero or the time expires (see countdown), the game enters the **game over** mode. When the game is over, `game->is running` returns false @@ -157,5 +157,5 @@ game.gameOver() ### Lessons -[game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/game-over.md b/docs/reference/game/game-over.md index e1a66b22..833eca4a 100644 --- a/docs/reference/game/game-over.md +++ b/docs/reference/game/game-over.md @@ -20,5 +20,5 @@ game.gameOver() ### Lessons -[game of chance](/microbit/lessons/game-of-chance) +[game of chance](/lessons/game-of-chance) diff --git a/docs/reference/game/move.md b/docs/reference/game/move.md index 883301c9..bae08622 100644 --- a/docs/reference/game/move.md +++ b/docs/reference/game/move.md @@ -18,5 +18,5 @@ export function move(_this: micro_bitSprites.LedSprite, leds: number) ### Lessons -[game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/position.md b/docs/reference/game/position.md index 2c14c4db..24041772 100644 --- a/docs/reference/game/position.md +++ b/docs/reference/game/position.md @@ -28,5 +28,5 @@ export function y(_this: micro_bitSprites.LedSprite) : number ### Lessons -[game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/reports.md b/docs/reference/game/reports.md index 3bdb2156..2c7ca4ce 100644 --- a/docs/reference/game/reports.md +++ b/docs/reference/game/reports.md @@ -52,5 +52,5 @@ export function direction(_this: micro_bitSprites.LedSprite) : number ### Lessons -[game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/score.md b/docs/reference/game/score.md index 368dd4e4..d48e7f58 100644 --- a/docs/reference/game/score.md +++ b/docs/reference/game/score.md @@ -55,5 +55,5 @@ export function startCountdown(ms: number) ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/start-countdown.md b/docs/reference/game/start-countdown.md index 86405db4..07eeeedd 100644 --- a/docs/reference/game/start-countdown.md +++ b/docs/reference/game/start-countdown.md @@ -53,5 +53,5 @@ export function startCountdown(ms: number) ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/touching.md b/docs/reference/game/touching.md index 72eb9dd5..5df52bbe 100644 --- a/docs/reference/game/touching.md +++ b/docs/reference/game/touching.md @@ -20,5 +20,5 @@ export function isTouching(_this: micro_bitSprites.LedSprite, other: micro_bitSp ### Lessons -[game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/game/turn.md b/docs/reference/game/turn.md index 12ec009a..8a4ce0d3 100644 --- a/docs/reference/game/turn.md +++ b/docs/reference/game/turn.md @@ -26,5 +26,5 @@ export function turnLeft(_this: micro_bitSprites.LedSprite, degrees: number) ### Lessons -[game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/images/create-image.md b/docs/reference/images/create-image.md index 7c279c2a..bd57b2ab 100644 --- a/docs/reference/images/create-image.md +++ b/docs/reference/images/create-image.md @@ -1,6 +1,6 @@ # Create Image -Create an [Image](/microbit/reference/image/image) to show on the [LED screen](/microbit/device/screen). +Create an [Image](/reference/image/image) to show on the [LED screen](/device/screen). ```sig images.createImage(` @@ -31,9 +31,9 @@ input.onGesture(Gesture.Shake, () => { ### Lessons -[rock paper scissors](/microbit/lessons/rock-paper-scissors), [digital pet](/microbit/lessons/digital-pet), [offset-image](/microbit/lessons/offset-image) +[rock paper scissors](/lessons/rock-paper-scissors), [digital pet](/lessons/digital-pet), [offset-image](/lessons/offset-image) ### See also -[show animation](/microbit/reference/basic/show-animation), [image](/microbit/reference/image/image), [show image](/microbit/reference/image/show-image), [scroll image](/microbit/reference/image/scroll-image) +[show animation](/reference/basic/show-animation), [image](/reference/image/image), [show image](/reference/image/show-image), [scroll image](/reference/image/scroll-image) diff --git a/docs/reference/images/image.md b/docs/reference/images/image.md index 3e567a2d..90e09913 100644 --- a/docs/reference/images/image.md +++ b/docs/reference/images/image.md @@ -4,11 +4,11 @@ An image for the micro:bit screen. ### @parent blocks/language -An *Image* is a matrix of pixels to show on the [LED screen](/microbit/device/screen) +An *Image* is a matrix of pixels to show on the [LED screen](/device/screen) ### Block Editor: Show LEDs -To display an image using the [Block Editor](/microbit/blocks/editor): +To display an image using the [Block Editor](/blocks/editor): * click `Basic` , `Show LEDs`, and tap on the LEDs` * when you're done, return to your code @@ -19,11 +19,11 @@ You should see code similar to this: ### Creating an image -To create an image that you can later modify, see the [create image](/microbit/reference/images/create-image) function. +To create an image that you can later modify, see the [create image](/reference/images/create-image) function. ### Block editor: create and show images -To create images using the [Block editor](/microbit/blocks/editor): +To create images using the [Block editor](/blocks/editor): 1. Click the **Images** category on the left. @@ -39,18 +39,18 @@ You should see code similar to this: ### Image functions -* [create image](/microbit/reference/images/create-image): create an image from a series of on/off LED states -* [clear](/microbit/reference/basic/clear-screen): turn off all the pixels in an image -* [pixel](/microbit/reference/images/pixel): get the state of a pixel in an image -* [show-leds](/microbit/reference/basic/show-leds): show a single-frame image on the LED screen -* [show image](/microbit/reference/images/show-image): show an image on the screen -* [scroll image](/microbit/reference/images/scroll-image): scroll an image on the screen +* [create image](/reference/images/create-image): create an image from a series of on/off LED states +* [clear](/reference/basic/clear-screen): turn off all the pixels in an image +* [pixel](/reference/images/pixel): get the state of a pixel in an image +* [show-leds](/reference/basic/show-leds): show a single-frame image on the LED screen +* [show image](/reference/images/show-image): show an image on the screen +* [scroll image](/reference/images/scroll-image): scroll an image on the screen ### Lessons -* [smiley](/microbit/lessons/smiley) +* [smiley](/lessons/smiley) ### See also -[Show LEDs](/microbit/reference/basic/show-leds), [create image](/microbit/reference/images/create-image), [show image](/microbit/reference/images/show-image), [LED screen](/microbit/device/screen) +[Show LEDs](/reference/basic/show-leds), [create image](/reference/images/create-image), [show image](/reference/images/show-image), [LED screen](/device/screen) diff --git a/docs/reference/images/pixel.md b/docs/reference/images/pixel.md index 2b3d31c2..2e3cadfe 100644 --- a/docs/reference/images/pixel.md +++ b/docs/reference/images/pixel.md @@ -2,7 +2,7 @@ The pixel function. -Get the state of a pixel in an [Image](/microbit/reference/image/image). +Get the state of a pixel in an [Image](/reference/image/image). ### KindScript @@ -12,16 +12,16 @@ export function pixel(_this: micro_bit.Image, x: number, y: number) : boolean ### Parameters -* x - [Number](/microbit/reference/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/microbit/reference/image/image) -* y - [Number](/microbit/reference/types/number); the *y coordinate* or vertical position of a pixel in an [image](/microbit/reference/image/image) +* x - [Number](/reference/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/reference/image/image) +* y - [Number](/reference/types/number); the *y coordinate* or vertical position of a pixel in an [image](/reference/image/image) ### x, y coordinates? -To figure out the ``x``, ``y`` coordinates, see [LED screen](/microbit/device/screen). +To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). ### Returns -* [Boolean](/microbit/reference/types/boolean) - `true` for on and `false` for off +* [Boolean](/reference/types/boolean) - `true` for on and `false` for off ### Example @@ -47,5 +47,5 @@ let state = img.pixel(0, 0) ### See also -[set pixel](/microbit/reference/images/set-pixel), [show image](/microbit/reference/images/show-image), [image](/microbit/reference/image/image), [create image](/microbit/reference/images/create-image), [scroll image](/microbit/reference/images/scroll-image) +[set pixel](/reference/images/set-pixel), [show image](/reference/images/show-image), [image](/reference/image/image), [create image](/reference/images/create-image), [scroll image](/reference/images/scroll-image) diff --git a/docs/reference/images/plot-frame.md b/docs/reference/images/plot-frame.md index 361a6f4f..19424f63 100644 --- a/docs/reference/images/plot-frame.md +++ b/docs/reference/images/plot-frame.md @@ -2,7 +2,7 @@ The plot frame function. -Display an [Image](/microbit/reference/image/image) on the BBC micro:bit's [LED screen](/microbit/device/screen) +Display an [Image](/reference/image/image) on the BBC micro:bit's [LED screen](/device/screen) ### KindScript @@ -12,7 +12,7 @@ export function plotFrame(_this: micro_bit.Image, index: number) ### Parameters -* index - [Number](/microbit/reference/types/number); which frame of the image to display +* index - [Number](/reference/types/number); which frame of the image to display ### Difference from `plot image` @@ -33,9 +33,9 @@ img.plotFrame(1) ### Lessons -[smiley](/microbit/lessons/smiley), [flashing heart](/microbit/lessons/flashing-heart), [magic logo](/microbit/lessons/magic-logo) +[smiley](/lessons/smiley), [flashing heart](/lessons/flashing-heart), [magic logo](/lessons/magic-logo) ### See also -[create image](/microbit/reference/images/create-image), [show animation](/microbit/reference/basic/show-animation), [image](/microbit/reference/image/image), [show image](/microbit/reference/images/show-image), [scroll image](/microbit/reference/images/scroll-image) +[create image](/reference/images/create-image), [show animation](/reference/basic/show-animation), [image](/reference/image/image), [show image](/reference/images/show-image), [scroll image](/reference/images/scroll-image) diff --git a/docs/reference/images/plot-image.md b/docs/reference/images/plot-image.md index 5c0f11d8..4a4f7910 100644 --- a/docs/reference/images/plot-image.md +++ b/docs/reference/images/plot-image.md @@ -2,7 +2,7 @@ The plot image function. -Display an [Image](/microbit/reference/image/image) on the BBC micro:bit's [LED screen](/microbit/device/screen) +Display an [Image](/reference/image/image) on the BBC micro:bit's [LED screen](/device/screen) ### KindScript @@ -12,7 +12,7 @@ export function plotImage(_this: micro_bit.Image, xOffset: number) ### Parameters -* x offset - [Number](/microbit/reference/types/number); the horizontal starting point of an image; use 0 for the first frame of the image, 5 for the second frame of the image, 10 for the third frame and so on. +* x offset - [Number](/reference/types/number); the horizontal starting point of an image; use 0 for the first frame of the image, 5 for the second frame of the image, 10 for the third frame and so on. ### Difference from `show image` @@ -33,9 +33,9 @@ img.plotImage(0) ### Lessons -[smiley](/microbit/lessons/smiley), [flashing heart](/microbit/lessons/flashing-heart), [magic logo](/microbit/lessons/magic-logo) +[smiley](/lessons/smiley), [flashing heart](/lessons/flashing-heart), [magic logo](/lessons/magic-logo) ### See also -[create image](/microbit/reference/images/create-image), [show animation](/microbit/reference/basic/show-animation), [image](/microbit/reference/image/image), [show image](/microbit/reference/images/show-image), [scroll image](/microbit/reference/images/scroll-image) +[create image](/reference/images/create-image), [show animation](/reference/basic/show-animation), [image](/reference/image/image), [show image](/reference/images/show-image), [scroll image](/reference/images/scroll-image) diff --git a/docs/reference/images/scroll-image.md b/docs/reference/images/scroll-image.md index 313afbb7..6ece6c17 100644 --- a/docs/reference/images/scroll-image.md +++ b/docs/reference/images/scroll-image.md @@ -2,7 +2,7 @@ The scroll image function. -Scrolls the frames within an [Image](/microbit/reference/image/image) on the [LED screen](/microbit/device/screen). +Scrolls the frames within an [Image](/reference/image/image) on the [LED screen](/device/screen). ### Block Editor @@ -16,8 +16,8 @@ export function scrollImage(_this: micro_bit.Image, xOffsetPerStep: number, inte ### Parameters -* x offset per step : [Number](/microbit/reference/types/number) - the number of columns to scroll at a time (horizontal offset). Use a positive number to scroll an image to the right and a negative number to scroll left. To jump from one image frame to the next, use an offset of 5 or -5. -* interval (ms) : [Number](/microbit/reference/types/number) - the time (in milliseconds) before scrolling by `x offset per step`; the larger the number, the slower the scroll. +* x offset per step : [Number](/reference/types/number) - the number of columns to scroll at a time (horizontal offset). Use a positive number to scroll an image to the right and a negative number to scroll left. To jump from one image frame to the next, use an offset of 5 or -5. +* interval (ms) : [Number](/reference/types/number) - the time (in milliseconds) before scrolling by `x offset per step`; the larger the number, the slower the scroll. ### ~hide @@ -69,5 +69,5 @@ img.scrollImage(5, 1000) ### See also -[show image](/microbit/reference/images/show-image), [image](/microbit/reference/image/image), [create image](/microbit/reference/images/create-image), [show animation](/microbit/reference/basic/show-animation) +[show image](/reference/images/show-image), [image](/reference/image/image), [create image](/reference/images/create-image), [show animation](/reference/basic/show-animation) diff --git a/docs/reference/images/set-pixel.md b/docs/reference/images/set-pixel.md index c76a2aa5..a659bea7 100644 --- a/docs/reference/images/set-pixel.md +++ b/docs/reference/images/set-pixel.md @@ -2,7 +2,7 @@ The set pixel function. #set pixel. -Set the on/off state of pixel in an [Image](/microbit/reference/image/image). +Set the on/off state of pixel in an [Image](/reference/image/image). ### KindScript @@ -12,13 +12,13 @@ export function setPixel(_this: micro_bit.Image, x: number, y: number, value: bo ### Parameters -* x - [Number](/microbit/reference/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/microbit/reference/image/image) -* x - [Number](/microbit/reference/types/number); the *y coordinate* or vertical position of a pixel in an [image](/microbit/reference/image/image) -* value -[Boolean](/microbit/reference/types/boolean); the on/off state of a pixel; `true` for on, `false` for off +* x - [Number](/reference/types/number); the *x coordinate* or horizontal position of a pixel in an [image](/reference/image/image) +* x - [Number](/reference/types/number); the *y coordinate* or vertical position of a pixel in an [image](/reference/image/image) +* value -[Boolean](/reference/types/boolean); the on/off state of a pixel; `true` for on, `false` for off ### x, y coordinates? -To figure out the ``x``, ``y`` coordinates, see [LED screen](/microbit/device/screen). +To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). ### Example @@ -38,5 +38,5 @@ img.showImage(0) ### See also -[pixel](/microbit/reference/images/pixel), [show image](/microbit/reference/images/show-image), [image](/microbit/reference/image/image), [create image](/microbit/reference/images/create-image), [scroll image](/microbit/reference/images/scroll-image) +[pixel](/reference/images/pixel), [show image](/reference/images/show-image), [image](/reference/image/image), [create image](/reference/images/create-image), [scroll image](/reference/images/scroll-image) diff --git a/docs/reference/images/show-frame.md b/docs/reference/images/show-frame.md index 45d44ba1..43e001eb 100644 --- a/docs/reference/images/show-frame.md +++ b/docs/reference/images/show-frame.md @@ -2,7 +2,7 @@ The show frame function. -Display an [Image](/microbit/reference/image/image) on the BBC micro:bit's [LED screen](/microbit/device/screen) +Display an [Image](/reference/image/image) on the BBC micro:bit's [LED screen](/device/screen) ### KindScript @@ -12,11 +12,11 @@ export function showFrame(img: micro_bit.Image, frame: number) ### Parameters -* index - [Number](/microbit/reference/types/number); which frame of the image to display +* index - [Number](/reference/types/number); which frame of the image to display ### Difference from `plot frame` -The `show frame` function is the same as [plot frame](/microbit/reference/image/plot-frame), but contains a built-in delay after the LED screen has been updated (whereas `plot frame` has no built-in delay) +The `show frame` function is the same as [plot frame](/reference/image/plot-frame), but contains a built-in delay after the LED screen has been updated (whereas `plot frame` has no built-in delay) ### Example @@ -33,9 +33,9 @@ img.showFrame(1) ### Lessons -[smiley](/microbit/lessons/smiley), [flashing heart](/microbit/lessons/flashing-heart), [magic logo](/microbit/lessons/magic-logo) +[smiley](/lessons/smiley), [flashing heart](/lessons/flashing-heart), [magic logo](/lessons/magic-logo) ### See also -[create image](/microbit/reference/images/create-image), [show animation](/microbit/reference/basic/show-animation), [image](/microbit/reference/image/image), [show image](/microbit/reference/images/show-image), [scroll image](/microbit/reference/images/scroll-image) +[create image](/reference/images/create-image), [show animation](/reference/basic/show-animation), [image](/reference/image/image), [show image](/reference/images/show-image), [scroll image](/reference/images/scroll-image) diff --git a/docs/reference/images/show-image.md b/docs/reference/images/show-image.md index de5bc8af..fd9b2c1a 100644 --- a/docs/reference/images/show-image.md +++ b/docs/reference/images/show-image.md @@ -2,7 +2,7 @@ The show image function. -Show an [Image](/microbit/reference/image/image) on the [LED screen](/microbit/device/screen), followed by a 400ms pause. +Show an [Image](/reference/image/image) on the [LED screen](/device/screen), followed by a 400ms pause. ### Block Editor @@ -16,11 +16,11 @@ export function showImage(_this: micro_bit.Image, xOffset: number) ### Parameters -* x offset - [Number](/microbit/reference/types/number); the horizontal starting point of an image; use 0 for the first frame of the image, 5 for the second frame of the image, 10 for the third frame and so on. +* x offset - [Number](/reference/types/number); the horizontal starting point of an image; use 0 for the first frame of the image, 5 for the second frame of the image, 10 for the third frame and so on. ### Create image and show image -Use the [image editor](/microbit/reference/image/image) to create images using the [create image](/microbit/reference/image/create-image) function, and then use `show image` like this: +Use the [image editor](/reference/image/image) to create images using the [create image](/reference/image/create-image) function, and then use `show image` like this: ``` let img = images.createImage(` @@ -35,7 +35,7 @@ img.showImage(0) ### Example: display numbers 1-5 -The following example creates an image with 5 frames and then uses a [for loop](/microbit/reference/loops/for) to show each frame on the screen: +The following example creates an image with 5 frames and then uses a [for loop](/reference/loops/for) to show each frame on the screen: ``` let img2 = images.createImage(` @@ -53,9 +53,9 @@ for (let i = 0; i < 5; i++) { ### Lessons -[rock paper scissors](/microbit/lessons/rock-paper-scissors), [digital pet](/microbit/lessons/digital-pet), [offset-image](/microbit/lessons/offset-image) +[rock paper scissors](/lessons/rock-paper-scissors), [digital pet](/lessons/digital-pet), [offset-image](/lessons/offset-image) ### See also -[show animation](/microbit/reference/basic/show-animation), [image](/microbit/reference/image/image), [create image](/microbit/reference/images/create-image), [scroll image](/microbit/reference/images/scroll-image) +[show animation](/reference/basic/show-animation), [image](/reference/image/image), [create image](/reference/images/create-image), [scroll image](/reference/images/scroll-image) diff --git a/docs/reference/images/width.md b/docs/reference/images/width.md index 904013d0..49233ecd 100644 --- a/docs/reference/images/width.md +++ b/docs/reference/images/width.md @@ -2,7 +2,7 @@ The width function. -Get the width of an [Image](/microbit/reference/image/image) in columns. +Get the width of an [Image](/reference/image/image) in columns. ### KindScript @@ -16,7 +16,7 @@ export function width(_this: micro_bit.Image) : number ### Returns -* [Number](/microbit/reference/types/number) - the number of columns in a image. This function returns 5 if the image has 1 frame, 10 for 2 frames, 15 for 3 frames and so on. Divide the number of columns by 5 to find out how many frames an image has (see example below). +* [Number](/reference/types/number) - the number of columns in a image. This function returns 5 if the image has 1 frame, 10 for 2 frames, 15 for 3 frames and so on. Divide the number of columns by 5 to find out how many frames an image has (see example below). The following example gets the width of `img` and stores it in the `w` variable: @@ -40,7 +40,7 @@ let w = img.width() ### Example: show each frame -The following example uses the `width` function with a [for](/microbit/reference/loops/for) loop to show each image frame on the screen: +The following example uses the `width` function with a [for](/reference/loops/for) loop to show each image frame on the screen: ``` let img2 = images.createImage(` @@ -58,5 +58,5 @@ for (let i = 0; i < img2.width() / 5; i++) { ### See also -[show image](/microbit/reference/images/show-image), [image](/microbit/reference/image/image), [create image](/microbit/reference/images/create-image), [scroll image](/microbit/reference/images/scroll-image), [show animation](/microbit/reference/basic/show-animation) +[show image](/reference/images/show-image), [image](/reference/image/image), [create image](/reference/images/create-image), [scroll image](/reference/images/scroll-image), [show animation](/reference/basic/show-animation) diff --git a/docs/reference/input/acceleration.md b/docs/reference/input/acceleration.md index d0381916..f4fdc209 100644 --- a/docs/reference/input/acceleration.md +++ b/docs/reference/input/acceleration.md @@ -8,11 +8,11 @@ input.acceleration(Dimension.X); ### Parameters -* dimension : [String](/microbit/reference/types/string) - one of three values specifying the axis of acceleration: ``x`` (left/right); ``y`` (forward/backwards); ``z`` (up/down) +* dimension : [String](/reference/types/string) - one of three values specifying the axis of acceleration: ``x`` (left/right); ``y`` (forward/backwards); ``z`` (up/down) ### Returns -* [Number](/microbit/reference/types/number) - acceleration, in milli-gravities. When the micro:bit is laying flat with the screen up, x=0, y=0 and z=-1023. +* [Number](/reference/types/number) - acceleration, in milli-gravities. When the micro:bit is laying flat with the screen up, x=0, y=0 and z=-1023. ### Example: bar chart @@ -41,9 +41,9 @@ basic.forever(() => { ### Lessons -[zoomer](/microbit/lessons/zoomer) +[zoomer](/lessons/zoomer) ### See also -[compass-heading](/microbit/input/compass-heading), [lightlevel](/microbit/input/lightlevel) +[compass-heading](/input/compass-heading), [lightlevel](/input/lightlevel) diff --git a/docs/reference/input/button-is-pressed.md b/docs/reference/input/button-is-pressed.md index 9c4ade4a..7c5622ad 100644 --- a/docs/reference/input/button-is-pressed.md +++ b/docs/reference/input/button-is-pressed.md @@ -8,15 +8,15 @@ input.buttonIsPressed(Button.A); ### Parameters -* name - [String](/microbit/reference/types/string); input button "A", "B", or "A+B" (both input buttons) +* name - [String](/reference/types/string); input button "A", "B", or "A+B" (both input buttons) ### Returns -* [Boolean](/microbit/reference/types/boolean) - `true` if pressed, `false` if not pressed +* [Boolean](/reference/types/boolean) - `true` if pressed, `false` if not pressed ### Example -The following code uses an [if](/microbit/reference/logic/if) statement to run code, depending on whether or not the A button is pressed: +The following code uses an [if](/reference/logic/if) statement to run code, depending on whether or not the A button is pressed: ```blocks basic.forever(() => { @@ -33,9 +33,9 @@ basic.forever(() => { ### Lessons -[zoomer](/microbit/lessons/zoomer) +[zoomer](/lessons/zoomer) ### See also -[on button pressed](/microbit/input/on-button-pressed), [if](/microbit/reference/logic/if), [forever](/microbit/basic/forever) +[on button pressed](/input/on-button-pressed), [if](/reference/logic/if), [forever](/basic/forever) diff --git a/docs/reference/input/compass-heading.md b/docs/reference/input/compass-heading.md index 9ecd2637..4db18873 100644 --- a/docs/reference/input/compass-heading.md +++ b/docs/reference/input/compass-heading.md @@ -8,7 +8,7 @@ input.compassHeading(); ### Returns -* [Number](/microbit/reference/types/number) - the heading in degrees (0 to 360 degrees). If the compass is calibrating, it returns ``-1003``. +* [Number](/reference/types/number) - the heading in degrees (0 to 360 degrees). If the compass is calibrating, it returns ``-1003``. ## Simulator @@ -55,9 +55,9 @@ During calibration, ``compass heading`` returns ``-1003``. ### Lessons -[compass](/microbit/lessons/compass) +[compass](/lessons/compass) ### See also -[acceleration](/microbit/reference/input/acceleration) +[acceleration](/reference/input/acceleration) diff --git a/docs/reference/input/light-level.md b/docs/reference/input/light-level.md index f4d62300..872e9da4 100644 --- a/docs/reference/input/light-level.md +++ b/docs/reference/input/light-level.md @@ -10,7 +10,7 @@ input.lightLevel(); ### Returns -* [Number](/microbit/reference/types/number) - light level from ``0`` (dark) to ``255`` (bright). +* [Number](/reference/types/number) - light level from ``0`` (dark) to ``255`` (bright). ### Example: chart light level @@ -26,5 +26,5 @@ basic.forever(() => { ### See also -[acceleration](/microbit/reference/input/acceleration), [compass-heading](/microbit/input/compass-heading) +[acceleration](/reference/input/acceleration), [compass-heading](/input/compass-heading) diff --git a/docs/reference/input/magnetic-force.md b/docs/reference/input/magnetic-force.md index 4d2a873a..187e2eb6 100644 --- a/docs/reference/input/magnetic-force.md +++ b/docs/reference/input/magnetic-force.md @@ -8,11 +8,11 @@ input.magneticForce(Dimension.X); ### Parameters -* dimension : [String](/microbit/reference/types/string) - one of three values specifying the axis of the force: ``x`` (left/right); ``y`` (forward/backwards); ``z`` (up/down); ``strength`` (the length of the vector) +* dimension : [String](/reference/types/string) - one of three values specifying the axis of the force: ``x`` (left/right); ``y`` (forward/backwards); ``z`` (up/down); ``strength`` (the length of the vector) ### Returns -* [Number](/microbit/reference/types/number) - magnetic force, in micro-Teslas. +* [Number](/reference/types/number) - magnetic force, in micro-Teslas. ### Example: metal detector @@ -28,5 +28,5 @@ basic.forever(() => { ### See also -[compass heading](/microbit/input/compass-heading) +[compass heading](/input/compass-heading) diff --git a/docs/reference/input/on-button-pressed.md b/docs/reference/input/on-button-pressed.md index 41e3d239..e95adfcc 100644 --- a/docs/reference/input/on-button-pressed.md +++ b/docs/reference/input/on-button-pressed.md @@ -1,6 +1,6 @@ # On Button Pressed -Register an [event handler](/microbit/reference/event-handler) that will execute whenever an input button (A, B, or A and B together) is pressed during program execution. When [running code](/microbit/js/simulator) with this function in a web browser, click an on-screen input button - labelled A or B. +Register an [event handler](/reference/event-handler) that will execute whenever an input button (A, B, or A and B together) is pressed during program execution. When [running code](/js/simulator) with this function in a web browser, click an on-screen input button - labelled A or B. ```sig input.onButtonPressed(Button.A, () => {}) @@ -32,9 +32,9 @@ input.onButtonPressed(Button.B, () => { ### Lessons -[smiley](/microbit/lessons/smiley), [answering machine](/microbit/lessons/answering-machine), [screen wipe](/microbit/lessons/screen-wipe), [rotation animation](/microbit/lessons/rotation-animation) +[smiley](/lessons/smiley), [answering machine](/lessons/answering-machine), [screen wipe](/lessons/screen-wipe), [rotation animation](/lessons/rotation-animation) ### See also -[button is pressed](/microbit/reference/input/button-is-pressed), [forever](/microbit/reference/basic/forever) +[button is pressed](/reference/input/button-is-pressed), [forever](/reference/basic/forever) diff --git a/docs/reference/input/on-gesture.md b/docs/reference/input/on-gesture.md index 024cdda8..d841169a 100644 --- a/docs/reference/input/on-gesture.md +++ b/docs/reference/input/on-gesture.md @@ -1,6 +1,6 @@ # On Gesture -Register an [event handler](/microbit/reference/event-handler) that will execute whenever the user executes a gesture withthe BBC micro:bit. +Register an [event handler](/reference/event-handler) that will execute whenever the user executes a gesture withthe BBC micro:bit. ```sig input.onGesture(Gesture.Shake,() => { @@ -41,5 +41,5 @@ input.onGesture(Gesture.Shake,() => { ### Lessons -[bounce image](/microbit/lessons/bounce-image), [rock paper scissors](/microbit/lessons/rock-paper-scissors) +[bounce image](/lessons/bounce-image), [rock paper scissors](/lessons/rock-paper-scissors) diff --git a/docs/reference/input/on-pin-pressed.md b/docs/reference/input/on-pin-pressed.md index a0aee311..3026d35d 100644 --- a/docs/reference/input/on-pin-pressed.md +++ b/docs/reference/input/on-pin-pressed.md @@ -1,6 +1,6 @@ # On Pin Pressed -Register an [event handler](/microbit/reference/event-handler) that will execute whenever the user holds the `GND` pin with one hand, and presses pin `0`, `1`, or `2` with the other hand, thus completing a circuit; when you run a script with this function in a web browser, click pins 0 , 1, or 2 on the simulator. +Register an [event handler](/reference/event-handler) that will execute whenever the user holds the `GND` pin with one hand, and presses pin `0`, `1`, or `2` with the other hand, thus completing a circuit; when you run a script with this function in a web browser, click pins 0 , 1, or 2 on the simulator. *Note* that this function works best when the BBC micro:bit is powered by AAA battery. @@ -24,9 +24,9 @@ input.onPinPressed(TouchPin.P0, () => { ### Lessons -[love meter](/microbit/lessons/love-meter) +[love meter](/lessons/love-meter) ### See also -[BBC micro:bit pins](/microbit/device/pins), [pin is pressed](/microbit/input/pin-is-pressed), [analog read pin](/microbit/pins/analog-read-pin), [analog write pin](/microbit/pins/analog-write-pin), [digital read pin](/microbit/pins/digital-read-pin), [digital write pin](/microbit/pins/digital-write-pin) +[BBC micro:bit pins](/device/pins), [pin is pressed](/input/pin-is-pressed), [analog read pin](/pins/analog-read-pin), [analog write pin](/pins/analog-write-pin), [digital read pin](/pins/digital-read-pin), [digital write pin](/pins/digital-write-pin) diff --git a/docs/reference/input/pin-is-pressed.md b/docs/reference/input/pin-is-pressed.md index e14fdeec..f0248842 100644 --- a/docs/reference/input/pin-is-pressed.md +++ b/docs/reference/input/pin-is-pressed.md @@ -10,11 +10,11 @@ input.pinIsPressed(TouchPin.P0); ### Parameters -* name - [String](/microbit/reference/types/string); the pin name ("P0", "P1", or "P2") +* name - [String](/reference/types/string); the pin name ("P0", "P1", or "P2") ### returns -* [Boolean](/microbit/reference/types/boolean) - `true` if pressed, `false` if not pressed +* [Boolean](/reference/types/boolean) - `true` if pressed, `false` if not pressed ### Example @@ -32,5 +32,5 @@ basic.forever(() => { ### See also -[BBC micro:bit pins](/microbit/device/pins), [on pin pressed](/microbit/input/on-pin-pressed), [analog read pin](/microbit/reference/pins/analog-read-pin), [analog write pin](/microbit/reference/pins/analog-write-pin), [digital read pin](/microbit/reference/pins/digital-read-pin), [digital write pin](/microbit/reference/pins/digital-write-pin) +[BBC micro:bit pins](/device/pins), [on pin pressed](/input/on-pin-pressed), [analog read pin](/reference/pins/analog-read-pin), [analog write pin](/reference/pins/analog-write-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin) diff --git a/docs/reference/input/rotation.md b/docs/reference/input/rotation.md index 01c04b89..a21cbe16 100644 --- a/docs/reference/input/rotation.md +++ b/docs/reference/input/rotation.md @@ -8,11 +8,11 @@ input.rotation(Rotation.Roll); ### Parameters -* kind: [String](/microbit/reference/types/string) - one of values specifying the kind of rotation: ``pitch`` (up/down around the ``x`` axis); ``roll`` (left/right around the ``y`` axis) +* kind: [String](/reference/types/string) - one of values specifying the kind of rotation: ``pitch`` (up/down around the ``x`` axis); ``roll`` (left/right around the ``y`` axis) ### Returns -* [Number](/microbit/reference/types/number) - angle, in degrees. +* [Number](/reference/types/number) - angle, in degrees. ### Example: micro:bit leveller @@ -44,5 +44,5 @@ basic.forever(() => { ### See also -[acceleration](/microbit/reference/input/acceleration), [compass-heading](/microbit/reference/input/compass-heading) +[acceleration](/reference/input/acceleration), [compass-heading](/reference/input/compass-heading) diff --git a/docs/reference/input/running-time.md b/docs/reference/input/running-time.md index 0d3c7b9d..282b7946 100644 --- a/docs/reference/input/running-time.md +++ b/docs/reference/input/running-time.md @@ -8,7 +8,7 @@ input.runningTime(); ### Returns -* [Number](/microbit/reference/types/number) +* [Number](/reference/types/number) ### Example: elapsed time @@ -21,9 +21,9 @@ basic.showNumber(now) ### Lessons -[speed button](/microbit/lessons/speed-button) +[speed button](/lessons/speed-button) ### See also -[show number](/microbit/reference/basic/show-number), [pause](/microbit/reference/basic/pause) +[show number](/reference/basic/show-number), [pause](/reference/basic/pause) diff --git a/docs/reference/input/temperature.md b/docs/reference/input/temperature.md index 416ad954..d793d9cf 100644 --- a/docs/reference/input/temperature.md +++ b/docs/reference/input/temperature.md @@ -8,11 +8,11 @@ input.temperature(); ### Returns -* [Number](/microbit/reference/types/number) - temperature in degree Celsius °C. +* [Number](/reference/types/number) - temperature in degree Celsius °C. ### How does it work? -The BBC micro:bit does not have a dedicated temperature sensor. Instead, the temperature provided is actually the temperature of the silicon die on the main CPU. As the processor generally runs cold though (it is a high efficiency ARM core), the temperature is a good approximation of the ambient temperature... you might warm up if you give the processor a lot of work to do though, and don't [sleep](/microbit/reference/basic/pause)! +The BBC micro:bit does not have a dedicated temperature sensor. Instead, the temperature provided is actually the temperature of the silicon die on the main CPU. As the processor generally runs cold though (it is a high efficiency ARM core), the temperature is a good approximation of the ambient temperature... you might warm up if you give the processor a lot of work to do though, and don't [sleep](/reference/basic/pause)! The temperature sensor has a high precision, but isn't trimmed for accuracy. In other words, it can sense changes in temperature very well, but there may be (and probably is) base line offset. i.e. it might return 20 degrees when it's actually 17, but it would return 21 when it is 18 etc. @@ -31,5 +31,5 @@ basic.forever(() => { ### See also -[compass-heading](/microbit/reference/input/compass-heading), [acceleration](/microbit/reference/input/acceleration) +[compass-heading](/reference/input/compass-heading), [acceleration](/reference/input/acceleration) diff --git a/docs/reference/js/assign.md b/docs/reference/js/assign.md index d365392d..8cf8014a 100644 --- a/docs/reference/js/assign.md +++ b/docs/reference/js/assign.md @@ -13,11 +13,11 @@ Set or change the value of a variable ### Touch Develop -Use the assignment operator (:=) to set or change the value of a [local variable](/microbit/reference/variables/var) or a [global variable](/microbit/js/data). +Use the assignment operator (:=) to set or change the value of a [local variable](/reference/variables/var) or a [global variable](/js/data). ### Declare a variable -Declare a new *local* variable using the [var](/microbit/reference/variables/var) statement and the assignment operator (`:=`). Like this: +Declare a new *local* variable using the [var](/reference/variables/var) statement and the assignment operator (`:=`). Like this: ```blocks let num1 = 7 @@ -28,7 +28,7 @@ The variable's name is on the left of the assignment operator (`:=`) and the var *variable name* `:=` *value* -See [global variable](/microbit/js/data) for info on declaring a global variable. +See [global variable](/js/data) for info on declaring a global variable. ### Change a variable @@ -42,13 +42,13 @@ num1 = 42 ### Notes * Don't confuse the assignment operator `:=` with the equality operator `=`, which is used to compare values. -* You can use the assignment operator `:=` with variables of each of the supported [types](/microbit/js/types). +* You can use the assignment operator `:=` with variables of each of the supported [types](/js/types). ### Lessons -[counter](/microbit/lessons/counter), [rotation animation](/microbit/lessons/rotation-animation), [digital pet](/microbit/lessons/digital-pet), [offset image](/microbit/lessons/offset-image) +[counter](/lessons/counter), [rotation animation](/lessons/rotation-animation), [digital pet](/lessons/digital-pet), [offset image](/lessons/offset-image) ### See also -[local variables](/microbit/reference/variables/var), [global variables](/microbit/js/data), [types](/microbit/js/types) +[local variables](/reference/variables/var), [global variables](/js/data), [types](/js/types) diff --git a/docs/reference/js/bits.md b/docs/reference/js/bits.md index 32e912d9..0789cbcc 100644 --- a/docs/reference/js/bits.md +++ b/docs/reference/js/bits.md @@ -6,18 +6,18 @@ Functions in the Bits library. The binary numeral system represents numeric values using values 0 and 1. This is how almost all modern computers store data. Each 0 or 1 digit is called a binary digit, or bit for short. -The Bits library includes functions for bit-level manipulation of integers. In the [Touch Develop editor](/microbit/js/editor), click `bits` to see the following bit functions: +The Bits library includes functions for bit-level manipulation of integers. In the [Touch Develop editor](/js/editor), click `bits` to see the following bit functions: ## Bitwise and, or, and xor functions #### Syntax -bits `->` *and/or/xor* uint32 (x : [Number](/microbit/reference/types/number), y : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +bits `->` *and/or/xor* uint32 (x : [Number](/reference/types/number), y : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) #### Parameters -* x - an unsigned 32 bit integer [Number](/microbit/reference/types/number) -* y - another unsigned 32 bit integer [Number](/microbit/reference/types/number) +* x - an unsigned 32 bit integer [Number](/reference/types/number) +* y - another unsigned 32 bit integer [Number](/reference/types/number) ### and uint32 @@ -37,14 +37,14 @@ Rotate bits to the left or the right, by the specified number of positions. #### Syntax -bits `->` rotate left unint32 (x : [Number](/microbit/reference/types/number), bits : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +bits `->` rotate left unint32 (x : [Number](/reference/types/number), bits : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) -bits `->` rotate right unint32 (x : [Number](/microbit/reference/types/number), bits : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +bits `->` rotate right unint32 (x : [Number](/reference/types/number), bits : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) #### Parameters -* x - [Number](/microbit/reference/types/number); -* bits - [Number](/microbit/reference/types/number); +* x - [Number](/reference/types/number); +* bits - [Number](/reference/types/number); ## Shift left and shift right @@ -52,16 +52,16 @@ Shift bits to the left or the right, by the specified number of positions. #### Syntax -bits `->` shift left unint32 (x : [Number](/microbit/reference/types/number), bits : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +bits `->` shift left unint32 (x : [Number](/reference/types/number), bits : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) -bits `->` shift right unint32 (x : [Number](/microbit/reference/types/number), bits : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +bits `->` shift right unint32 (x : [Number](/reference/types/number), bits : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) #### Parameters -* x - [Number](/microbit/reference/types/number); -* bits - [Number](/microbit/reference/types/number); +* x - [Number](/reference/types/number); +* bits - [Number](/reference/types/number); ### See also -[statements and operators](/microbit/js/statements), [math functions](/microbit/js/math), [Number](/microbit/reference/types/number) +[statements and operators](/js/statements), [math functions](/js/math), [Number](/reference/types/number) diff --git a/docs/reference/js/boolean.md b/docs/reference/js/boolean.md index 300d09bd..5fc0e648 100644 --- a/docs/reference/js/boolean.md +++ b/docs/reference/js/boolean.md @@ -4,7 +4,7 @@ true or false. ### @parent js/language -A Boolean has one of two possible values: `true`; `false`. Boolean (logical) operators (*and*, *or*, *not*) take Boolean inputs and yields a Boolean value. Comparison operators on other types ([numbers](/microbit/reference/types/number), [strings](/microbit/reference/types/string)) yields a Boolean value. +A Boolean has one of two possible values: `true`; `false`. Boolean (logical) operators (*and*, *or*, *not*) take Boolean inputs and yields a Boolean value. Comparison operators on other types ([numbers](/reference/types/number), [strings](/reference/types/string)) yields a Boolean value. ### Block Editor @@ -16,7 +16,7 @@ The next three blocks represent the three Boolean (logic) operators: ![](/static/mb/boolean-1.png) -The next six blocks represent comparison operators that yield a Boolean value. Most comparisons you will do involve [numbers](/microbit/reference/types/number): +The next six blocks represent comparison operators that yield a Boolean value. Most comparisons you will do involve [numbers](/reference/types/number): ![](/static/mb/boolean-2.png) @@ -31,7 +31,7 @@ let condition2 = true ### ~ -Boolean values and operators are often used with an [if](/microbit/reference/logic/if) or [while](/microbit/js/while) statement to determine which code will execute next. For example: +Boolean values and operators are often used with an [if](/reference/logic/if) or [while](/js/while) statement to determine which code will execute next. For example: ``` if (condition && condition2) { @@ -110,13 +110,13 @@ if (x < 5) { } ``` -See the documentation on [Numbers](/microbit/reference/types/number) for more information on comparing two Numbers. You can also [compare strings](/microbit/reference/types/string-functions) using the `equals` function. +See the documentation on [Numbers](/reference/types/number) for more information on comparing two Numbers. You can also [compare strings](/reference/types/string-functions) using the `equals` function. ### Lessons -[rotation animation](/microbit/lessons/rotation-animation), [digi yoyo](/microbit/lessons/digi-yoyo), [love meter](/microbit/lessons/love-meter), [zoomer](/microbit/lessons/zoomer) +[rotation animation](/lessons/rotation-animation), [digi yoyo](/lessons/digi-yoyo), [love meter](/lessons/love-meter), [zoomer](/lessons/zoomer) ### See also -[if](/microbit/reference/logic/if), [while](/microbit/js/while), [number](/microbit/reference/types/number) +[if](/reference/logic/if), [while](/js/while), [number](/reference/types/number) diff --git a/docs/reference/js/break.md b/docs/reference/js/break.md index 81d1fbbf..7cefdd3b 100644 --- a/docs/reference/js/break.md +++ b/docs/reference/js/break.md @@ -5,7 +5,7 @@ Break statement; exit a for or while loop. ### @parent js/language -Exit a [while](/microbit/js/while) or [for](/microbit/reference/loops/for) loop before the loop is complete. +Exit a [while](/js/while) or [for](/reference/loops/for) loop before the loop is complete. ### Touch Develop syntax @@ -29,9 +29,9 @@ for (let i = 0; i < 10; i++) { ### Lessons -[jailbreak](/microbit/lessons/jailbreak) +[jailbreak](/lessons/jailbreak) ### See also -[for](/microbit/reference/loops/for), [while](/microbit/js/while) +[for](/reference/loops/for), [while](/js/while) diff --git a/docs/reference/js/call.md b/docs/reference/js/call.md index 589ecb64..42822e1f 100644 --- a/docs/reference/js/call.md +++ b/docs/reference/js/call.md @@ -5,11 +5,11 @@ How to call a function in your code. ### @parent js/language -Type a function name in your code to call an existing [function](/microbit/js/function) in your script. +Type a function name in your code to call an existing [function](/js/function) in your script. ### Call a function -1. In the Touch Develop editor, click a line of code to open the on-screen [Code Keyboard](/microbit/js/editor). +1. In the Touch Develop editor, click a line of code to open the on-screen [Code Keyboard](/js/editor). 2. Click `code` to see the functions in your script. @@ -19,7 +19,7 @@ Type a function name in your code to call an existing [function](/microbit/js/fu ### Example: the square function -Here's a function called `square`, with a [Number](/microbit/reference/types/number) input parameter: +Here's a function called `square`, with a [Number](/reference/types/number) input parameter: ``` /** @@ -59,5 +59,5 @@ To see a list of the functions in a script, open the script and then click `scri ### See also -[function parameters](/microbit/js/functionparameters), [create a function](/microbit/js/function), [return statement](/microbit/js/return) +[function parameters](/js/functionparameters), [create a function](/js/function), [return statement](/js/return) diff --git a/docs/reference/js/code.md b/docs/reference/js/code.md index ff2ee612..ea35a75a 100644 --- a/docs/reference/js/code.md +++ b/docs/reference/js/code.md @@ -9,7 +9,7 @@ To add a **functions** to your script, click the `script` button, then click the ### functions -A **function** takes [inputs](/microbit/actionparameters), runs code and (optionally) returns an output. +A **function** takes [inputs](/actionparameters), runs code and (optionally) returns an output. TouchDevelop functions are similar to `mathematical functions`. Consider the function that computes the square of `x`: `square(x) = x*x`. In code, it would look like this: @@ -27,5 +27,5 @@ An function can be marked as **private** in the properties. A private function i ### documentation -The comment(s) at the beginning of a function used to provide a description of its purpose. This text will show in the help area when the function is called from the code editor. This is particularly useful for [libraries](/microbit/libraries). +The comment(s) at the beginning of a function used to provide a description of its purpose. This text will show in the help area when the function is called from the code editor. This is particularly useful for [libraries](/libraries). diff --git a/docs/reference/js/comment.md b/docs/reference/js/comment.md index e241ae71..37b47f54 100644 --- a/docs/reference/js/comment.md +++ b/docs/reference/js/comment.md @@ -23,7 +23,7 @@ To insert a comment in a Touch Develop script: ### ~hint -To find out how to insert comments using the Blocks editor, see [the Blocks editor](/microbit/blocks/editor). +To find out how to insert comments using the Blocks editor, see [the Blocks editor](/blocks/editor). ### ~ @@ -46,7 +46,7 @@ export function square(x: number) : number { ### Formatting -Use [markdown syntax](/microbit/js/markdown) to format your comments (for example, **bold** and *italic* formatting). +Use [markdown syntax](/js/markdown) to format your comments (for example, **bold** and *italic* formatting). ### Commenting out code @@ -58,7 +58,7 @@ To comment out a block of code: 2. Press and hold the Shift key, and then press the Down arrow key to select a block of code. -3. In the block editing window, scroll down to **surround with** and click `comment out`. This adds an [if](/microbit/reference/logic/if) statement around your code, like this: +3. In the block editing window, scroll down to **surround with** and click `comment out`. This adds an [if](/reference/logic/if) statement around your code, like this: ``` if (false) { @@ -70,10 +70,10 @@ When you want to uncomment your code, click the `if false then` statement in you ### Library and function comments -* Use [comments](/microbit/js/comment) at the beginning of a library to describe the library -* Use [comments](/microbit/js/comment) at the beginning of a [function](/microbit/js/function) to describe a function. The comment will appear in the help area of the Touch Develop editor when you insert the function +* Use [comments](/js/comment) at the beginning of a library to describe the library +* Use [comments](/js/comment) at the beginning of a [function](/js/function) to describe a function. The comment will appear in the help area of the Touch Develop editor when you insert the function ### See also -[markdown syntax](/microbit/js/markdown), [Touch Develop editor](/microbit/js/editor), [Block editor](/microbit/blocks/editor) +[markdown syntax](/js/markdown), [Touch Develop editor](/js/editor), [Block editor](/blocks/editor) diff --git a/docs/reference/js/contents.md b/docs/reference/js/contents.md index 36beecf4..b7726594 100644 --- a/docs/reference/js/contents.md +++ b/docs/reference/js/contents.md @@ -16,9 +16,9 @@ JavaScript docs for the micro:bit Welcome to the Touch Develop home page for the BBC micro:bit. Below you will find resources about the Touch Develop programming language and code editor. Good places to start include: -* [the Touch Develop Editor](/microbit/js/editor) -* [30+ BBC micro:bit lessons](/microbit/lessonss) -* [offline support](/microbit/offline) +* [the Touch Develop Editor](/js/editor) +* [30+ BBC micro:bit lessons](/lessonss) +* [offline support](/offline) ### ~column @@ -26,67 +26,67 @@ Welcome to the Touch Develop home page for the BBC micro:bit. Below you will fin ### Variables -* [local variables](/microbit/reference/variables/var) -* [global variables ](/microbit/js/data) +* [local variables](/reference/variables/var) +* [global variables ](/js/data) ### Types -* [Number](/microbit/reference/types/number) -* [Boolean](/microbit/reference/types/boolean) -* [String](/microbit/reference/types/string) -* [Image](/microbit/reference/image/image) +* [Number](/reference/types/number) +* [Boolean](/reference/types/boolean) +* [String](/reference/types/string) +* [Image](/reference/image/image) ### Statements and control structures -* [assignment operator](/microbit/reference/variables/assign) `:=` -* [if](/microbit/reference/logic/if) -* [for](/microbit/reference/loops/for) -* [while](/microbit/js/while) -* [break](/microbit/js/break) -* [forever](/microbit/reference/basic/forever) -* [in background](/microbit/reference/control/in-background) -* [function](/microbit/js/function) -* [return](/microbit/js/return) +* [assignment operator](/reference/variables/assign) `:=` +* [if](/reference/logic/if) +* [for](/reference/loops/for) +* [while](/js/while) +* [break](/js/break) +* [forever](/reference/basic/forever) +* [in background](/reference/control/in-background) +* [function](/js/function) +* [return](/js/return) ### Maths -* arithmetic operators (`+`, `-`, `*`, `/`, mod) on [Numbers](/microbit/reference/types/number) -* comparison operators (such as `>`, `=`) on [Numbers](/microbit/reference/types/number) -* the [math](/microbit/js/math) library -* the [bits](/microbit/js/bits) library +* arithmetic operators (`+`, `-`, `*`, `/`, mod) on [Numbers](/reference/types/number) +* comparison operators (such as `>`, `=`) on [Numbers](/reference/types/number) +* the [math](/js/math) library +* the [bits](/js/bits) library ### Logical -* [Boolean](/microbit/reference/types/boolean) values `true` and `false` -* Operations (`not`, `or`, `and`) on [Booleans](/microbit/reference/types/boolean) +* [Boolean](/reference/types/boolean) values `true` and `false` +* Operations (`not`, `or`, `and`) on [Booleans](/reference/types/boolean) ### Strings -* [string functions](/microbit/reference/types/string-functions) +* [string functions](/reference/types/string-functions) ### Functions -* [create a function](/microbit/js/function) -* [function parameters](/microbit/js/functionparameters) -* [call a function](/microbit/js/call) +* [create a function](/js/function) +* [function parameters](/js/functionparameters) +* [call a function](/js/call) ### Collections -* read the [collections tutorial](/microbit/js/collections) +* read the [collections tutorial](/js/collections) ### Custom object types -* see the [object types tutorial](/microbit/js/object-types) -* read the [object disclaimer](/microbit/js/object-disclaimer) if you're an advanced user +* see the [object types tutorial](/js/object-types) +* read the [object disclaimer](/js/object-disclaimer) if you're an advanced user ### Libraries -* [create and use libraries](/microbit/js/libraries) +* [create and use libraries](/js/libraries) ### Documentation -* [comments](/microbit/js/comment) -* [markdown syntax](/microbit/js/markdown) +* [comments](/js/comment) +* [markdown syntax](/js/markdown) ### ~ @@ -96,97 +96,97 @@ Welcome to the Touch Develop home page for the BBC micro:bit. Below you will fin ### Basic -* [clear screen](/microbit/reference/basic/clear-screen) -* [forever](/microbit/reference/basic/forever) -* [pause](/microbit/reference/basic/pause) -* [show leds](/microbit/reference/basic/show-leds) -* [show animation](/microbit/reference/basic/show-animation) -* [show number](/microbit/reference/basic/show-number) -* [show string](/microbit/reference/basic/show-string) +* [clear screen](/reference/basic/clear-screen) +* [forever](/reference/basic/forever) +* [pause](/reference/basic/pause) +* [show leds](/reference/basic/show-leds) +* [show animation](/reference/basic/show-animation) +* [show number](/reference/basic/show-number) +* [show string](/reference/basic/show-string) ### LED -* [brightness](/microbit/reference/led/brightness) -* [fade in](/microbit/reference/led/fade-in) -* [fade out](/microbit/reference/led/fade-out) -* [plot](/microbit/reference/led/plot) -* [plot all](/microbit/reference/led/plot-all) -* [point](/microbit/reference/led/point) -* [screenshot](/microbit/functions/screenshot) -* [set display mode](/microbit/functions/set-display-mode) -* [set brightness](/microbit/reference/led/set-brightness) -* [stop animation](/microbit/reference/led/stop-animation) -* [toggle](/microbit/reference/led/toggle) -* [toggle all](/microbit/reference/led/toggle-all) -* [unplot](/microbit/reference/led/unplot) +* [brightness](/reference/led/brightness) +* [fade in](/reference/led/fade-in) +* [fade out](/reference/led/fade-out) +* [plot](/reference/led/plot) +* [plot all](/reference/led/plot-all) +* [point](/reference/led/point) +* [screenshot](/functions/screenshot) +* [set display mode](/functions/set-display-mode) +* [set brightness](/reference/led/set-brightness) +* [stop animation](/reference/led/stop-animation) +* [toggle](/reference/led/toggle) +* [toggle all](/reference/led/toggle-all) +* [unplot](/reference/led/unplot) ### Input -* [acceleration](/microbit/reference/input/acceleration) -* [rotation](/microbit/functions/rotation) -* [button is pressed](/microbit/reference/input/button-is-pressed) -* [compass heading](/microbit/reference/input/compass-heading) -* [temperature](/microbit/reference/input/temperature) -* [running time](/microbit/reference/input/running-time) -* [on shake](/microbit/reference/input/on-gesture) -* [on button pressed](/microbit/reference/input/on-button-pressed) -* [on logo down](/microbit/functions/on-logo-down) -* [on logo up](/microbit/functions/on-logo-up) -* [on pin pressed](/microbit/reference/input/on-pin-pressed) -* [on screen down](/microbit/functions/on-screen-down) -* [on screen up](/microbit/functions/on-screen-up) -* [pin is pressed](/microbit/reference/input/pin-is-pressed) +* [acceleration](/reference/input/acceleration) +* [rotation](/functions/rotation) +* [button is pressed](/reference/input/button-is-pressed) +* [compass heading](/reference/input/compass-heading) +* [temperature](/reference/input/temperature) +* [running time](/reference/input/running-time) +* [on shake](/reference/input/on-gesture) +* [on button pressed](/reference/input/on-button-pressed) +* [on logo down](/functions/on-logo-down) +* [on logo up](/functions/on-logo-up) +* [on pin pressed](/reference/input/on-pin-pressed) +* [on screen down](/functions/on-screen-down) +* [on screen up](/functions/on-screen-up) +* [pin is pressed](/reference/input/pin-is-pressed) ### Image -* [create image](/microbit/reference/images/create-image) -* [clear](/microbit/reference/basic/clear-screen) -* [pixel](/microbit/reference/images/pixel) -* [plot frame](/microbit/reference/led/plot-frame) -* [plot image](/microbit/reference/led/plot-image) -* [scroll image](/microbit/reference/images/scroll-image) -* [show frame](/microbit/functions/show-frame) -* [set pixel](/microbit/reference/images/set-pixel) -* [show image](/microbit/reference/images/show-image) -* [width](/microbit/functions/width) +* [create image](/reference/images/create-image) +* [clear](/reference/basic/clear-screen) +* [pixel](/reference/images/pixel) +* [plot frame](/reference/led/plot-frame) +* [plot image](/reference/led/plot-image) +* [scroll image](/reference/images/scroll-image) +* [show frame](/functions/show-frame) +* [set pixel](/reference/images/set-pixel) +* [show image](/reference/images/show-image) +* [width](/functions/width) ### Music -* [play note](/microbit/functions/play-note) -* [note](/microbit/functions/note) -* [ring](/microbit/reference/music/ring) +* [play note](/functions/play-note) +* [note](/functions/note) +* [ring](/reference/music/ring) ### Pins -* [digital read pin](/microbit/reference/pins/digital-read-pin) -* [digital write pin](/microbit/reference/pins/digital-write-pin) -* [analog read pin](/microbit/reference/pins/analog-read-pin) -* [analog write pin](/microbit/reference/pins/analog-write-pin) -* [analog set period](/microbit/reference/pins/analog-set-period) -* [analog pitch](/microbit/reference/pins/analog-pitch) -* [analog set pitch pin](/microbit/reference/pins/analog-set-pitch-pin) -* [servo write pin](/microbit/reference/pins/servo-write-pin) -* [servo set pulse](/microbit/reference/pins/servo-set-pulse) -* [map](/microbit/functions/map) +* [digital read pin](/reference/pins/digital-read-pin) +* [digital write pin](/reference/pins/digital-write-pin) +* [analog read pin](/reference/pins/analog-read-pin) +* [analog write pin](/reference/pins/analog-write-pin) +* [analog set period](/reference/pins/analog-set-period) +* [analog pitch](/reference/pins/analog-pitch) +* [analog set pitch pin](/reference/pins/analog-set-pitch-pin) +* [servo write pin](/reference/pins/servo-write-pin) +* [servo set pulse](/reference/pins/servo-set-pulse) +* [map](/functions/map) ### Control -* [in background](/microbit/reference/control/in-background) -* [reset](/microbit/functions/reset) +* [in background](/reference/control/in-background) +* [reset](/functions/reset) ### Devices Functions in this category require to be connected to a remote device. -* [tell camera to](/microbit/reference/devices/tell-camera-to) -* [tell remote control to](/microbit/reference/devices/tell-remote-control-to) -* [raise alert to](/microbit/reference/devices/raise-alert-to) -* [on notified](/microbit/reference/devices/on-notified) +* [tell camera to](/reference/devices/tell-camera-to) +* [tell remote control to](/reference/devices/tell-remote-control-to) +* [raise alert to](/reference/devices/raise-alert-to) +* [on notified](/reference/devices/on-notified) ### Libraries -* [game library](/microbit/js/game-library) -* [serial library](/microbit/js/serial-library) +* [game library](/js/game-library) +* [serial library](/js/serial-library) ### ~ @@ -194,23 +194,23 @@ Functions in this category require to be connected to a remote device. ## Run -* [scripts in the browser](/microbit/js/simulator) -* [scripts on your BBC micro:bit](/microbit/device/usb) +* [scripts in the browser](/js/simulator) +* [scripts on your BBC micro:bit](/device/usb) ## Debugging -* use the [serial library](/microbit/js/serial-library) to print data from your micro:bit on your computer -* learn about the [device error codes](/microbit/device/errors) that are displayed when sad faces occur +* use the [serial library](/js/serial-library) to print data from your micro:bit on your computer +* learn about the [device error codes](/device/errors) that are displayed when sad faces occur ## Edit/Publish -* [the Touch Develop Editor](/microbit/js/editor) -* [publish a script](/microbit/js/publishing) +* [the Touch Develop Editor](/js/editor) +* [publish a script](/js/publishing) ## Creating Tutorials -* [create a tutorial](/microbit/js/create-tutorials) -* [markdown syntax](/microbit/js/markdown) +* [create a tutorial](/js/create-tutorials) +* [markdown syntax](/js/markdown) ### ~ diff --git a/docs/reference/js/data.md b/docs/reference/js/data.md index e07baa54..bcfb7c9e 100644 --- a/docs/reference/js/data.md +++ b/docs/reference/js/data.md @@ -8,7 +8,7 @@ A variable is a place where you can store data so that you can use it later in y ### Block Editor -In the Block Editor, all variables are global. See [Block Editor](/microbit/blocks/editor) for info on creating global variables in a Block Editor script. The following block is used to set (assign) global variable's value: +In the Block Editor, all variables are global. See [Block Editor](/blocks/editor) for info on creating global variables in a Block Editor script. The following block is used to set (assign) global variable's value: ![](/static/mb/antenna-0.png) @@ -18,23 +18,23 @@ The block below retrieves (gets) the current value of a global variable: ### Touch Develop -In Touch Develop variables are either [global](/microbit/js/data) or [local](/microbit/reference/variables/var). Variables have a name, a [type](/microbit/js/types), and value: +In Touch Develop variables are either [global](/js/data) or [local](/reference/variables/var). Variables have a name, a [type](/js/types), and value: * the *name* is how you'll refer to the variable * the *type* refers to the kind of value a variable can store * the *value* refers to what's stored in the variable -[Global variables](/microbit/js/data) are variables that are available throughout your script. Unlike [local variables](/microbit/reference/variables/var), global variables are accessible across functions and in nested code blocks. +[Global variables](/js/data) are variables that are available throughout your script. Unlike [local variables](/reference/variables/var), global variables are accessible across functions and in nested code blocks. ### Create a global variable To create a new global variable: -1. In the Touch Develop [editor](/microbit/js/editor), click `script` (to the right of the search box). +1. In the Touch Develop [editor](/js/editor), click `script` (to the right of the search box). 2. Click `+` **add new**. -3. Click `data->` **data** and then choose a [type](/microbit/js/types). +3. Click `data->` **data** and then choose a [type](/js/types). 4. Enter a name for your global variable and click **OK**. @@ -42,7 +42,7 @@ To create a new global variable: To use a global variable that you've declared (using steps above): -1. In the Touch Develop [editor](/microbit/js/editor), click `data-> ` **data** or `data->` + *variable name*. +1. In the Touch Develop [editor](/js/editor), click `data-> ` **data** or `data->` + *variable name*. 2. Click `:=` (assignment). @@ -68,7 +68,7 @@ name2 = "Mike" bool = true ``` -(for info on creating image variables, see [Image](/microbit/reference/image/image)) +(for info on creating image variables, see [Image](/reference/image/image)) Once you've defined a variable and set it's initial value, use the variable's name whenever you need what's stored in the variable. For example, the following code gets the value stored in the global `counter` variable and shows it on the screen: @@ -76,7 +76,7 @@ Once you've defined a variable and set it's initial value, use the variable's na basic.showNumber(counter, 100) ``` -To change the contents of a variable use the [assignment operator](/microbit/reference/variables/assign) `:=`. The following code increments `counter` by 10: +To change the contents of a variable use the [assignment operator](/reference/variables/assign) `:=`. The following code increments `counter` by 10: ``` counter = counter + 10 @@ -86,7 +86,7 @@ counter = counter + 10 To **promote** a local variable to a global variable: -* select the local variable name and click `promote to data`. The [var](/microbit/reference/variables/var) keyword changes to the data symbol `data->`. +* select the local variable name and click `promote to data`. The [var](/reference/variables/var) keyword changes to the data symbol `data->`. To **demote** a global variable to a local variable: @@ -104,9 +104,9 @@ To see a list of the global variables in your script: ### Lessons -[counter](/microbit/lessons/counter), [rotation animation](/microbit/lessons/rotation-animation), [digital pet](/microbit/lessons/digital-pet), [offset image](/microbit/lessons/offset-image) +[counter](/lessons/counter), [rotation animation](/lessons/rotation-animation), [digital pet](/lessons/digital-pet), [offset image](/lessons/offset-image) ### See also -[local variables](/microbit/reference/variables/var), [types](/microbit/js/types), [assignment operator](/microbit/reference/variables/assign) +[local variables](/reference/variables/var), [types](/js/types), [assignment operator](/reference/variables/assign) diff --git a/docs/reference/js/editor.md b/docs/reference/js/editor.md index fa03ed06..a7a91e32 100644 --- a/docs/reference/js/editor.md +++ b/docs/reference/js/editor.md @@ -5,7 +5,7 @@ The Touch Develop editor. ### @parent js/contents -The Touch Develop editor is where you write and test your code. If you're new to Touch Develop, check out the [Touch Develop editor video](/microbit/getting-started/touchdevelop-editor). +The Touch Develop editor is where you write and test your code. If you're new to Touch Develop, check out the [Touch Develop editor video](/getting-started/touchdevelop-editor). To create a new Touch Develop script: @@ -15,7 +15,7 @@ To create a new Touch Develop script: 3. Type a name for your script and click **create**. -An empty script with a [function](/microbit/js/function) called `main` is created. +An empty script with a [function](/js/function) called `main` is created. ## The Editor Menu Bar @@ -24,8 +24,8 @@ The Touch Develop editor has a bar of options above the code area: ![](/static/mb/data-1.jpg) * `my scripts` takes you back to a list of your scripts (My Scripts). The open script is automatically saved (in the cloud) when you leave the editor. -* `run` executes your script, showing you the results on the on-screen micro:bit device. See [run scripts in the browser](/microbit/js/simulator) for more about this. -* `compile` sends your script to an ARM compiler, which creates a file that you can run on your micro:bit. See [run scripts on your micro:bit](/microbit/device/usb) for more info. +* `run` executes your script, showing you the results on the on-screen micro:bit device. See [run scripts in the browser](/js/simulator) for more about this. +* `compile` sends your script to an ARM compiler, which creates a file that you can run on your micro:bit. See [run scripts on your micro:bit](/device/usb) for more info. * `undo` undoes changes that you made to your script. * `search code...` search for functions in libraries such as the micro:bit library. * `script` opens script options, where you can do things like publish and preview. See **script options** below. @@ -34,7 +34,7 @@ Many of the above buttons aren't much use until you've written some code, so let ## Code Keyboard -The Code Keyboard makes it easy to write code on a touch screen device or by using your mouse. You can also type code using your computer keyboard if you know what function or statement you want (see [Touch Develop documentation](/microbit/js/contents) for a complete list). +The Code Keyboard makes it easy to write code on a touch screen device or by using your mouse. You can also type code using your computer keyboard if you know what function or statement you want (see [Touch Develop documentation](/js/contents) for a complete list). To open the Code Keyboard, click on a line of code: @@ -44,13 +44,13 @@ An on-screen keyboard appears, with buttons that vary depending on what's select ### Statements -The first row of the Code Keyboard has Touch Develop [statements](/microbit/js/statements) that you can insert into your code. These buttons are blue and include things like [var](/microbit/reference/variables/var), [if](/microbit/reference/logic/if), [for](/microbit/reference/loops/for) , and [while](/microbit/js/while). Click `more` to see additional statements. +The first row of the Code Keyboard has Touch Develop [statements](/js/statements) that you can insert into your code. These buttons are blue and include things like [var](/reference/variables/var), [if](/reference/logic/if), [for](/reference/loops/for) , and [while](/js/while). Click `more` to see additional statements. ### The BBC micro:bit, math, and code buttons -* `micro:bit`: click to see all the [micro:bit functions](/microbit/js/contents); click `more` to scroll left to right. The micro:bit functions are also grouped together behind the following category buttons: `basic`, `control`, `input`, `image`, `led`, and`pins` -* `code`: click to access functions you've written (see [call a function](/microbit/js/call) for more info) -* `math`: click to see [math functions](/microbit/js/math); such as `abs` and `round` +* `micro:bit`: click to see all the [micro:bit functions](/js/contents); click `more` to scroll left to right. The micro:bit functions are also grouped together behind the following category buttons: `basic`, `control`, `input`, `image`, `led`, and`pins` +* `code`: click to access functions you've written (see [call a function](/js/call) for more info) +* `math`: click to see [math functions](/js/math); such as `abs` and `round` * `bits`: click to see functions for bit-level manipulation of integers ### Editing code: add, copy, paste, and cut @@ -68,7 +68,7 @@ To copy, cut, or comment out a block of code (more than one line): 2. Press and hold the `Shift` key, and then press the `Up arrow` or `Down arrow` key on your keyboard (this selects multiple lines). -3. Choose a block editing option like copy, cut, or [comment out](/microbit/js/comment). +3. Choose a block editing option like copy, cut, or [comment out](/js/comment). ### Script options @@ -79,12 +79,12 @@ Click `script` (in the upper-right corner) to open the script options: Here you'll find options like... * `script properties`: the script name, description, and whether or not the script is a library (more info below) -* `publish`: share a script with other users by [publishing](/microbit/js/publishing) it -* `share`: share a link to a published script (see [publish as script](/microbit/js/publishing) for more info) +* `publish`: share a script with other users by [publishing](/js/publishing) it +* `share`: share a link to a published script (see [publish as script](/js/publishing) for more info) * `preview`: preview a documentation script -* `+` `add new`: add a new [function](/microbit/js/function), [global variable](/microbit/js/data), picture, or library to a script +* `+` `add new`: add a new [function](/js/function), [global variable](/js/data), picture, or library to a script * *code*: the functions in your script; click a function to open it in the editor -* *global vars*: the [global variables](/microbit/js/data) in your script; click a variable to go to that variable +* *global vars*: the [global variables](/js/data) in your script; click a variable to go to that variable * *libraries*: the libraries added to your script * *art*: picture and video resources added to your script @@ -100,13 +100,13 @@ To edit a script's properties, click `script` (in the upper-right corner), and t ### Comments -Comments are notes within your scripts. To learn how to insert comments into your scripts, see [Comments](/microbit/js/comment). You can format your comments using [markdown syntax](/microbit/js/markdown). +Comments are notes within your scripts. To learn how to insert comments into your scripts, see [Comments](/js/comment). You can format your comments using [markdown syntax](/js/markdown). ### Share your scripts -Share your scripts with other people by publishing them. See [publish a script](/microbit/js/publishing) for more info. +Share your scripts with other people by publishing them. See [publish a script](/js/publishing) for more info. ### See also -[publish a script](/microbit/js/publishing), [Touch Develop documentation](/microbit/js/contents) +[publish a script](/js/publishing), [Touch Develop documentation](/js/contents) diff --git a/docs/reference/js/event-handler.md b/docs/reference/js/event-handler.md index fc26fb8f..dcc5db12 100644 --- a/docs/reference/js/event-handler.md +++ b/docs/reference/js/event-handler.md @@ -51,9 +51,9 @@ input.onButtonPressed(Button.A, () => { ### To learn more -To learn more about how the BBC micro:bit queues up and schedules event handlers, see [the BBC micro:bit - a reactive system](/microbit/device/reactive) +To learn more about how the BBC micro:bit queues up and schedules event handlers, see [the BBC micro:bit - a reactive system](/device/reactive) ### see also -[on button pressed](/microbit/reference/input/on-button-pressed), [on logo up](/microbit/functions/on-logo-up), [on logo down](/microbit/functions/on-logo-down), [on screen up](/microbit/functions/on-screen-up), [on screen down](/microbit/functions/on-screen-down), [on shake](/microbit/reference/input/on-gesture), [on pin pressed](/microbit/reference/input/on-pin-pressed) +[on button pressed](/reference/input/on-button-pressed), [on logo up](/functions/on-logo-up), [on logo down](/functions/on-logo-down), [on screen up](/functions/on-screen-up), [on screen down](/functions/on-screen-down), [on shake](/reference/input/on-gesture), [on pin pressed](/reference/input/on-pin-pressed) diff --git a/docs/reference/js/for.md b/docs/reference/js/for.md index b4a91250..eb6a2835 100644 --- a/docs/reference/js/for.md +++ b/docs/reference/js/for.md @@ -55,7 +55,7 @@ for (let i = 0; i < 5; i++) { ### Example: draw a box -The [LED screen](/microbit/device/screen) has a fixed number of rows and columns (5x5), which is ideal for a for loop. This example uses a for loop to turn on the LEDs along the edge of the screen, making a square. +The [LED screen](/device/screen) has a fixed number of rows and columns (5x5), which is ideal for a for loop. This example uses a for loop to turn on the LEDs along the edge of the screen, making a square. ``` for (let i1 = 0; i1 < 5; i1++) { @@ -69,15 +69,15 @@ for (let i1 = 0; i1 < 5; i1++) { ### ~hint -Want to exit a loop early? The [break](/microbit/js/break) statement exits a loop before the end value is reached. +Want to exit a loop early? The [break](/js/break) statement exits a loop before the end value is reached. ### ~ ### Lessons -[looper](/microbit/lessons/looper), [strobe light](/microbit/lessons/strobe-light) +[looper](/lessons/looper), [strobe light](/lessons/strobe-light) ### See also -[while](/microbit/js/while), [break](/microbit/js/break), [if](/microbit/reference/logic/if) +[while](/js/while), [break](/js/break), [if](/reference/logic/if) diff --git a/docs/reference/js/function.md b/docs/reference/js/function.md index d7f69c81..c9b052d9 100644 --- a/docs/reference/js/function.md +++ b/docs/reference/js/function.md @@ -7,7 +7,7 @@ How to define a function with input and output parameters. A function is a unit of code that performs a specific task and returns a result. -Functions are ideal when you need to perform an action multiple times. Instead of repeating a block of code in your script, you can put the code in a function and simply [call the function](/microbit/js/call) when needed. +Functions are ideal when you need to perform an action multiple times. Instead of repeating a block of code in your script, you can put the code in a function and simply [call the function](/js/call) when needed. *Why use functions?* Functions makes your code easier to read, debug, and update. @@ -40,10 +40,10 @@ Click the function name to edit the function properties (i.e. change the name or Functions have three parts: -* [input and output parameters](/microbit/js/functionparameters) +* [input and output parameters](/js/functionparameters) * the function *body* (the code that performs a task) -- one or more [return](/microbit/js/return) statements (the output of the function) +- one or more [return](/js/return) statements (the output of the function) #### Example function @@ -61,8 +61,8 @@ export function square(x: number) : number { In the above code... -* ``x `` is the [input parameter](/microbit/js/functionparameters) ([Number](/microbit/reference/types/number) type) -* ``result`` is the [output parameter](/microbit/js/functionparameters) ([Number](/microbit/reference/types/number) type) +* ``x `` is the [input parameter](/js/functionparameters) ([Number](/reference/types/number) type) +* ``result`` is the [output parameter](/js/functionparameters) ([Number](/reference/types/number) type) * `return x * x` is the function body (which returns the value of the expression `x * x`) ### Add function parameters @@ -75,7 +75,7 @@ In the above code... 4. Click **add input parameter** or **add output parameter**. The parameter is added to your function. -Click the parameter name to rename it and click the [type](/microbit/js/types) to change the variable type. For more info, see [function parameters](/microbit/js/functionparameters). +Click the parameter name to rename it and click the [type](/js/types) to change the variable type. For more info, see [function parameters](/js/functionparameters). ### ~hide @@ -93,7 +93,7 @@ If you've already written some code that you'd like to have in a function, you c ### Function documentation -Use a [comment](/microbit/js/comment) at the beginning of your functions to describe the function. When you insert a function into your code, the comment text appears in the help area of the Code Keyboard. +Use a [comment](/js/comment) at the beginning of your functions to describe the function. When you insert a function into your code, the comment text appears in the help area of the Code Keyboard. ### See all your functions @@ -109,9 +109,9 @@ If you don't want people to see the code in your function, you can make the func ### Lessons -[digital pet](/microbit/lessons/digital-pet) +[digital pet](/lessons/digital-pet) ### See also -[function parameters](/microbit/js/functionparameters), [call a function](/microbit/js/call), [return from a function](/microbit/js/return) +[function parameters](/js/functionparameters), [call a function](/js/call), [return from a function](/js/return) diff --git a/docs/reference/js/functionparameters.md b/docs/reference/js/functionparameters.md index ab48246d..26ae4272 100644 --- a/docs/reference/js/functionparameters.md +++ b/docs/reference/js/functionparameters.md @@ -5,9 +5,9 @@ How to use parameters to pass info in and out of an function. ### @parent js/function -A [function](/microbit/js/function) can have multiple input parameters and/or a single output parameter. The parameters must be one of the supported variable [types](/microbit/js/types). +A [function](/js/function) can have multiple input parameters and/or a single output parameter. The parameters must be one of the supported variable [types](/js/types). -When you first [create a function](/microbit/js/function), it looks like this: +When you first [create a function](/js/function), it looks like this: ``` export function doStuff() { } @@ -25,18 +25,18 @@ export function doStuff() { #### Input parameters -The default type for an input parameter is [Number](/microbit/reference/types/number): +The default type for an input parameter is [Number](/reference/types/number): ``` export function oneInput(p: number) { } ``` -To change the default type, click the type ([Number](/microbit/reference/types/number) in this case) and change it to [String](/microbit/reference/types/string), [Boolean](/microbit/reference/types/boolean), or [Image](/microbit/reference/image/image). You can add multiple input parameters to a function. +To change the default type, click the type ([Number](/reference/types/number) in this case) and change it to [String](/reference/types/string), [Boolean](/reference/types/boolean), or [Image](/reference/image/image). You can add multiple input parameters to a function. #### Output parameter -the default type for an output parameter is [Number](/microbit/reference/types/number): +the default type for an output parameter is [Number](/reference/types/number): ``` export function output() : number { @@ -46,7 +46,7 @@ export function output() : number { } ``` -To change the default type, click the type ([Number](/microbit/reference/types/number) in this case) and change it to [String](/microbit/reference/types/string), [Boolean](/microbit/reference/types/boolean), or [Image](/microbit/reference/image/image). +To change the default type, click the type ([Number](/reference/types/number) in this case) and change it to [String](/reference/types/string), [Boolean](/reference/types/boolean), or [Image](/reference/image/image). ### Inputs and output function @@ -62,5 +62,5 @@ export function inputsAndOutput(p: number, q: number) : number { ### See also -[call a function](/microbit/js/call), [create a function](/microbit/js/function), [return](/microbit/js/return) +[call a function](/js/call), [create a function](/js/function), [return](/js/return) diff --git a/docs/reference/js/gallery.md b/docs/reference/js/gallery.md index c662d272..8bd16243 100644 --- a/docs/reference/js/gallery.md +++ b/docs/reference/js/gallery.md @@ -9,34 +9,34 @@ Overview of Touch Develop lessons for the BBC micro:bit. ## Maker -* [Telegraph](/microbit/pzeagwoudd), play the telegraph game between 2 BBC micro:bits -* [Ornament Chain](/microbit/rnvpgo), play the ornament chain game between 2 BBC micro:bits +* [Telegraph](/pzeagwoudd), play the telegraph game between 2 BBC micro:bits +* [Ornament Chain](/rnvpgo), play the ornament chain game between 2 BBC micro:bits ### ~hide -* [The Watch](/microbit/lessons/the-watch), design and create The Watch -* [Hack your headphones](/microbit/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones -* [Banana Keyboard](/microbit/lessons/banana-keyboard), create music with fruits +* [The Watch](/lessons/the-watch), design and create The Watch +* [Hack your headphones](/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones +* [Banana Keyboard](/lessons/banana-keyboard), create music with fruits ### ~ ## Beginner -* [Night light](/microbit/vltwrzuqto), dim the LEDs with set brightness -* [Beautiful image](/microbit/nudwzmphyx), show a beautiful image with show LEDs -* [Smiley,](/microbit/zsohipimef) smiley and frowney with show animation -* [Lucky 7](/microbit/rqhxxqppqu), show a number on the LED screen with show number -* [Answering machine](/microbit/bnkmeqymuh), show a text message with show string -* [Snowflake fall](/microbit/zhcfmiejlg), repeat an animation with forever -* [Screen wipe](/microbit/hlnitnqjjk), turn off the LEDs with clear screen -* [Flashing heart](/microbit/bwmxfwqswx), display images with a pause -* [Blink](/microbit/jbbutifslm), turn an LED on and off with plot +* [Night light](/vltwrzuqto), dim the LEDs with set brightness +* [Beautiful image](/nudwzmphyx), show a beautiful image with show LEDs +* [Smiley,](/zsohipimef) smiley and frowney with show animation +* [Lucky 7](/rqhxxqppqu), show a number on the LED screen with show number +* [Answering machine](/bnkmeqymuh), show a text message with show string +* [Snowflake fall](/zhcfmiejlg), repeat an animation with forever +* [Screen wipe](/hlnitnqjjk), turn off the LEDs with clear screen +* [Flashing heart](/bwmxfwqswx), display images with a pause +* [Blink](/jbbutifslm), turn an LED on and off with plot ### ~hide -* [Bounce image](/microbit/lessons/bounce-image), scroll an image across the screen on shake -* [Magic logo](/microbit/lessons/magic-logo), show an image on logo up -* [Glowing sword](/microbit/lessons/glowing-sword), make a glowing sword with fade in and fade out +* [Bounce image](/lessons/bounce-image), scroll an image across the screen on shake +* [Magic logo](/lessons/magic-logo), show an image on logo up +* [Glowing sword](/lessons/glowing-sword), make a glowing sword with fade in and fade out ### ~ @@ -44,24 +44,24 @@ Overview of Touch Develop lessons for the BBC micro:bit. ## Intermediate -* [Zoomer](/microbit/fwrohhjqql), measure the force with acceleration -* [Strobe light](/microbit/jguqlzeayr), develop shapes with a nested for loops -* [Digi yoyo](/microbit/lppocrbpys), create a counter with a while loop -* [Die roll](/microbit/lzblatmknq), spin with more if statements -* [Spinner](/microbit/dzijduruek), spin the arrow with multiple if statements -* [Truth or dare](/microbit/filuzbwauo), a game that forces each player to reveal a secret or do something funny with if statement -* [Love meter](/microbit/rrmlrvojfa), create a love meter with on pin pressed -* [Guess the number](/microbit/ftsenbvqwz), guess a random number with random -* [Magic 8](/microbit/fyjinpjuqu), a fortune teller game with the BBC micro:bit -* [Counter](/microbit/rerlmjgjut), display a number with a variable -* [Glowing pendulum](/microbit/xrnsveuwxj), construct a pendulum that glows using acceleration -* [Looper](/microbit/nxcddtbizi), display a series of numbers with a for loop index +* [Zoomer](/fwrohhjqql), measure the force with acceleration +* [Strobe light](/jguqlzeayr), develop shapes with a nested for loops +* [Digi yoyo](/lppocrbpys), create a counter with a while loop +* [Die roll](/lzblatmknq), spin with more if statements +* [Spinner](/dzijduruek), spin the arrow with multiple if statements +* [Truth or dare](/filuzbwauo), a game that forces each player to reveal a secret or do something funny with if statement +* [Love meter](/rrmlrvojfa), create a love meter with on pin pressed +* [Guess the number](/ftsenbvqwz), guess a random number with random +* [Magic 8](/fyjinpjuqu), a fortune teller game with the BBC micro:bit +* [Counter](/rerlmjgjut), display a number with a variable +* [Glowing pendulum](/xrnsveuwxj), construct a pendulum that glows using acceleration +* [Looper](/nxcddtbizi), display a series of numbers with a for loop index ### ~hide -* [Rotation animation](/microbit/lessons/rotation-animation), control an animation with a boolean variable -* [Offset image](/microbit/lessons/offset-image), shift an image horizontally with image offset -* [Compass](/microbit/lessons/compass), displays the direction the BBC micro:bit is pointing +* [Rotation animation](/lessons/rotation-animation), control an animation with a boolean variable +* [Offset image](/lessons/offset-image), shift an image horizontally with image offset +* [Compass](/lessons/compass), displays the direction the BBC micro:bit is pointing ### ~ @@ -69,38 +69,38 @@ Overview of Touch Develop lessons for the BBC micro:bit. ## Advanced -* [Rock paper scissors](/microbit/tnmtbvyyma), use image offsets with local variables -* [Digital pet](/microbit/vefocoajpb), a display of pet images with sub-functions -* [Catch the egg](/microbit/reczlreqob), catch falling eggs in a basket with an acceleration controller -* [Headbands](/microbit/bzrusu), create a charades game with a collection of strings that hold the words -* [Prank WiFi](/microbit/dceikq), create fake WiFi to trick your friends -* [Flipping bird](/microbit/lbhvywjzkv), use modulo with a conditional -* [Runaway pac man](/microbit/loafab), construct the game pac man with the BBC micro:bit -* [Line of Fire](/microbit/fzcoly), make a game to test hand-eye coordination -* [The hat game](/microbit/njynsd), make a game to test your focus on the moving ball -* [Pong](/microbit/xcenyy), a light bouncing from left to right -* [Meteorite](/microbit/zaidka), a game where meteorites are coming for you one by one -* [Minesweeper](/microbit/jaeeve), make a game to test your memory for placing a LED mine then finding the hidden LED mine -* [Bop it](/microbit/zlpndm), a game where you have to keep up with the commands -* [Letter Up](/microbit/ftlqjo), a guessing game with string operators with string at -* [Racing Buttons](/microbit/hcuxid), racing game to determine if player 1 presses Button A faster or if player 2 presses Button B faster +* [Rock paper scissors](/tnmtbvyyma), use image offsets with local variables +* [Digital pet](/vefocoajpb), a display of pet images with sub-functions +* [Catch the egg](/reczlreqob), catch falling eggs in a basket with an acceleration controller +* [Headbands](/bzrusu), create a charades game with a collection of strings that hold the words +* [Prank WiFi](/dceikq), create fake WiFi to trick your friends +* [Flipping bird](/lbhvywjzkv), use modulo with a conditional +* [Runaway pac man](/loafab), construct the game pac man with the BBC micro:bit +* [Line of Fire](/fzcoly), make a game to test hand-eye coordination +* [The hat game](/njynsd), make a game to test your focus on the moving ball +* [Pong](/xcenyy), a light bouncing from left to right +* [Meteorite](/zaidka), a game where meteorites are coming for you one by one +* [Minesweeper](/jaeeve), make a game to test your memory for placing a LED mine then finding the hidden LED mine +* [Bop it](/zlpndm), a game where you have to keep up with the commands +* [Letter Up](/ftlqjo), a guessing game with string operators with string at +* [Racing Buttons](/hcuxid), racing game to determine if player 1 presses Button A faster or if player 2 presses Button B faster ### ~hide -* [Transformers](/microbit/lessons/transformers), use functions to return values -* [Speed button](/microbit/lessons/speed-button), code a speed game with running time -* [Jailbreak](/microbit/lessons/jailbreak), break out of a counting loop by pressing button "A" -* [2 player pong](/microbit/bzycll), collaborate with a classmate to develop Pong on multiple BBC micro:bits +* [Transformers](/lessons/transformers), use functions to return values +* [Speed button](/lessons/speed-button), code a speed game with running time +* [Jailbreak](/lessons/jailbreak), break out of a counting loop by pressing button "A" +* [2 player pong](/bzycll), collaborate with a classmate to develop Pong on multiple BBC micro:bits ### ~ ### ~hide -* [Number psych](/microbit/lessons/number-psych), collaborate with multiple classmates to develop a game on multiple BBC micro:bits and a breadboard +* [Number psych](/lessons/number-psych), collaborate with multiple classmates to develop a game on multiple BBC micro:bits and a breadboard ### ~ ### @section full -The lessons promote computational thinking and computer science literacy[ read more...](/microbit/lessons/teach) +The lessons promote computational thinking and computer science literacy[ read more...](/lessons/teach) diff --git a/docs/reference/js/game-library.md b/docs/reference/js/game-library.md index 0864c55e..ecb1b5c0 100644 --- a/docs/reference/js/game-library.md +++ b/docs/reference/js/game-library.md @@ -15,7 +15,7 @@ input.onButtonPressed(Button.A, () => { game.startCountdown(10000) ``` -### [Countdown](/microbit/js/game-library/start-countdown) +### [Countdown](/js/game-library/start-countdown) If your game has a time limit, you can start a countdown in which case `game->current time` returns the remaining time. @@ -25,7 +25,7 @@ If your game has a time limit, you can start a countdown in which case `game->cu export function startCountdown(ms: number) ``` -### [Game over](/microbit/js/game-library/game-over) +### [Game over](/js/game-library/game-over) If the `life` reaches zero or the time expires (see countdown), the game enters the **game over** mode. When the game is over, `game->is running` returns false @@ -51,7 +51,7 @@ export function gameOver() When a player achieves a goal, you can increase the game score -[Add Point to Score](/microbit/js/game-library/add-point-to-score) +[Add Point to Score](/js/game-library/add-point-to-score) * add score points to the current score @@ -59,7 +59,7 @@ When a player achieves a goal, you can increase the game score export function addScore(points: number) ``` -[Score](/microbit/js/game-library/score) +[Score](/js/game-library/score) * set the current score to a particular value. @@ -151,5 +151,5 @@ export function setBlink(sprite: micro_bitSprites.LedSprite, ms: number) ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/js/game-library/add-point-to-score.md b/docs/reference/js/game-library/add-point-to-score.md index ed88ff39..d90ccc53 100644 --- a/docs/reference/js/game-library/add-point-to-score.md +++ b/docs/reference/js/game-library/add-point-to-score.md @@ -39,5 +39,5 @@ export function score() : number ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/js/game-library/change-score-by.md b/docs/reference/js/game-library/change-score-by.md index a8c2166b..514e11dc 100644 --- a/docs/reference/js/game-library/change-score-by.md +++ b/docs/reference/js/game-library/change-score-by.md @@ -39,5 +39,5 @@ export function score() : number ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/js/game-library/game-over.md b/docs/reference/js/game-library/game-over.md index c89a389f..755861d7 100644 --- a/docs/reference/js/game-library/game-over.md +++ b/docs/reference/js/game-library/game-over.md @@ -20,5 +20,5 @@ game.gameOver() ### Lessons -[game of chance](/microbit/lessons/game-of-chance) +[game of chance](/lessons/game-of-chance) diff --git a/docs/reference/js/game-library/score.md b/docs/reference/js/game-library/score.md index ee6f7b33..274462fd 100644 --- a/docs/reference/js/game-library/score.md +++ b/docs/reference/js/game-library/score.md @@ -55,5 +55,5 @@ export function startCountdown(ms: number) ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/js/game-library/start-countdown.md b/docs/reference/js/game-library/start-countdown.md index 03173700..32d8f35d 100644 --- a/docs/reference/js/game-library/start-countdown.md +++ b/docs/reference/js/game-library/start-countdown.md @@ -53,5 +53,5 @@ export function startCountdown(ms: number) ### Lessons -[bop it](/microbit/lessons/bop-it) | [game of chance](/microbit/lessons/game-of-chance) | [game counter](/microbit/lessons/game-counter) +[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter) diff --git a/docs/reference/js/games.md b/docs/reference/js/games.md index 82de978d..5d9b8a43 100644 --- a/docs/reference/js/games.md +++ b/docs/reference/js/games.md @@ -8,49 +8,49 @@ Overview of Games for the BBC micro:bit. ## Beginner Games -* [The Watch](/microbit/lessons/the-watch/activity), design and create The Watch -* [Banana Keyboard](/microbit/lessons/banana-keyboard), create music with fruits +* [The Watch](/lessons/the-watch/activity), design and create The Watch +* [Banana Keyboard](/lessons/banana-keyboard), create music with fruits ### ~hide -* [Smiley,](/microbit/lessons/smiley) smiley and frowney with show animation -* [Lucky 7](/microbit/lessons/lucky-7), show a number on the LED screen with show number -* [Snowflake fall](/microbit/lessons/snowflake-fall), repeat an animation with forever -* [Answering machine](/microbit/lessons/answering-machine), show a text message with show string -* [Bounce image](/microbit/lessons/bounce-image), scroll an image across the screen on shake -* [Magic logo](/microbit/lessons/magic-logo), show an image on logo up -* [Screen wipe](/microbit/lessons/screen-wipe), turn off the LEDs with clear screen -* [Blink](/microbit/lessons/blink), turn an LED on and off with plot -* [Flashing heart](/microbit/lessons/flashing-heart/tutorial), display images with a pause +* [Smiley,](/lessons/smiley) smiley and frowney with show animation +* [Lucky 7](/lessons/lucky-7), show a number on the LED screen with show number +* [Snowflake fall](/lessons/snowflake-fall), repeat an animation with forever +* [Answering machine](/lessons/answering-machine), show a text message with show string +* [Bounce image](/lessons/bounce-image), scroll an image across the screen on shake +* [Magic logo](/lessons/magic-logo), show an image on logo up +* [Screen wipe](/lessons/screen-wipe), turn off the LEDs with clear screen +* [Blink](/lessons/blink), turn an LED on and off with plot +* [Flashing heart](/lessons/flashing-heart/tutorial), display images with a pause ### ~ -* [Night light](/microbit/lessons/night-light/tutorial), dim the LEDs with set brightness -* [Glowing sword](/microbit/lessons/glowing-sword/tutorial), make a glowing sword with fade in and fade out -* [Guess the number](/microbit/lessons/guess-the-number/tutorial), guess a random number with random -* [Rock paper scissors](/microbit/lessons/rock-paper-scissors/tutorial), use image offsets with local variables -* [Counter](/microbit/lessons/counter/tutorial), display a number with a variable -* [Love meter](/microbit/lessons/love-meter/tutorial), create a love meter with on pin pressed +* [Night light](/lessons/night-light/tutorial), dim the LEDs with set brightness +* [Glowing sword](/lessons/glowing-sword/tutorial), make a glowing sword with fade in and fade out +* [Guess the number](/lessons/guess-the-number/tutorial), guess a random number with random +* [Rock paper scissors](/lessons/rock-paper-scissors/tutorial), use image offsets with local variables +* [Counter](/lessons/counter/tutorial), display a number with a variable +* [Love meter](/lessons/love-meter/tutorial), create a love meter with on pin pressed ### ~column ## Intermediate Games -* [Truth or dare](/microbit/lessons/truth-or-dare/tutorial), a game that forces each player to reveal a secret or do something funny with if statement -* [Spinner](/microbit/lessons/spinner/tutorial), spin the arrow with multiple if statements -* [Die roll](/microbit/lessons/die-roll/tutorial), spin with more if statements -* [Looper](/microbit/lessons/looper/tutorial), display a series of numbers with a for loop index -* [Strobe light](/microbit/lessons/strobe-light/tutorial), develop shapes with a nested for loops -* [Digi yoyo](/microbit/lessons/digi-yoyo/tutorial), create a counter with a while loop -* [Magic 8](/microbit/lessons/magic-8/tutorial), a fortune teller game with the BBC micro:bit -* [Compass](/microbit/lessons/compass/tutorial), displays the direction the BBC micro:bit is pointing -* [Speed button](/microbit/lessons/speed-button/tutorial), code a speed game with running time +* [Truth or dare](/lessons/truth-or-dare/tutorial), a game that forces each player to reveal a secret or do something funny with if statement +* [Spinner](/lessons/spinner/tutorial), spin the arrow with multiple if statements +* [Die roll](/lessons/die-roll/tutorial), spin with more if statements +* [Looper](/lessons/looper/tutorial), display a series of numbers with a for loop index +* [Strobe light](/lessons/strobe-light/tutorial), develop shapes with a nested for loops +* [Digi yoyo](/lessons/digi-yoyo/tutorial), create a counter with a while loop +* [Magic 8](/lessons/magic-8/tutorial), a fortune teller game with the BBC micro:bit +* [Compass](/lessons/compass/tutorial), displays the direction the BBC micro:bit is pointing +* [Speed button](/lessons/speed-button/tutorial), code a speed game with running time ### ~hide -* [Zoomer](/microbit/lessons/zoomer/tutorial), measure the force with acceleration -* [Rotation animation](/microbit/lessons/rotation-animation/tutorial), control an animation with a boolean variable -* [Offset image](/microbit/lessons/offset-image/tutorial), shift an image horizontally with image offset +* [Zoomer](/lessons/zoomer/tutorial), measure the force with acceleration +* [Rotation animation](/lessons/rotation-animation/tutorial), control an animation with a boolean variable +* [Offset image](/lessons/offset-image/tutorial), shift an image horizontally with image offset ### ~ @@ -60,30 +60,30 @@ Overview of Games for the BBC micro:bit. ### ~hide -* [Digital pet](/microbit/lessons/digital-pet/tutorial), a display of pet images with sub-functions -* [Jailbreak](/microbit/lessons/jailbreak/tutorial), break out of a counting loop by pressing button "A" -* [Transformers](/microbit/lessons/transformers/tutorial), use functions to return values -* [Flipping bird](/microbit/lessons/flipping-bird/tutorial), use modulo with a conditional +* [Digital pet](/lessons/digital-pet/tutorial), a display of pet images with sub-functions +* [Jailbreak](/lessons/jailbreak/tutorial), break out of a counting loop by pressing button "A" +* [Transformers](/lessons/transformers/tutorial), use functions to return values +* [Flipping bird](/lessons/flipping-bird/tutorial), use modulo with a conditional ### ~ -* [Catch the egg](/microbit/lessons/catch-the-egg-game/tutorial), catch falling eggs in a basket with an acceleration controller -* [Headbands](/microbit/lessons/headbands/tutorial), create a charades game with a collection of strings that hold the words -* [Pong](/microbit/lessons/pong/tutorial), a light bouncing from left to right -* [Meteorite](/microbit/lessons/meteorite/tutorial), a game where meteorites are coming for you one by one -* [Minesweeper](/microbit/lessons/minesweeper/tutorial), make a game to test your memory for placing a LED mine then finding the hidden LED mine -* [Bop it](/microbit/lessons/bop-it/tutorial), a game where you have to keep up with the commands -* [Letter Up](/microbit/lessons/letter-up/tutorial), a guessing game with string operators with string at -* [Prank WiFi](/microbit/lessons/prank-wifi/tutorial), create fake WiFi to trick your friends -* [Runaway pac man](/microbit/lessons/runaway-pacman/tutorial), construct the game pac man with the BBC micro:bit -* [The hat game](/microbit/lessons/the-hat-game/tutorial), make a game to test your focus on the moving ball -* [2 player pong](/microbit/lessons/2-player-pong/tutorial), collaborate with a classmate to develop Pong on multiple BBC micro:bits +* [Catch the egg](/lessons/catch-the-egg-game/tutorial), catch falling eggs in a basket with an acceleration controller +* [Headbands](/lessons/headbands/tutorial), create a charades game with a collection of strings that hold the words +* [Pong](/lessons/pong/tutorial), a light bouncing from left to right +* [Meteorite](/lessons/meteorite/tutorial), a game where meteorites are coming for you one by one +* [Minesweeper](/lessons/minesweeper/tutorial), make a game to test your memory for placing a LED mine then finding the hidden LED mine +* [Bop it](/lessons/bop-it/tutorial), a game where you have to keep up with the commands +* [Letter Up](/lessons/letter-up/tutorial), a guessing game with string operators with string at +* [Prank WiFi](/lessons/prank-wifi/tutorial), create fake WiFi to trick your friends +* [Runaway pac man](/lessons/runaway-pacman/tutorial), construct the game pac man with the BBC micro:bit +* [The hat game](/lessons/the-hat-game/tutorial), make a game to test your focus on the moving ball +* [2 player pong](/lessons/2-player-pong/tutorial), collaborate with a classmate to develop Pong on multiple BBC micro:bits ### ~hide -* [Glowing pendulum](/microbit/lessons/glowing-pendulum/tutorial), construct a pendulum that glows using acceleration -* [Line of Fire](/microbit/lessons/line-of-fire/tutorial), make a game to test hand-eye coordination -* [Number psych](/microbit/lessons/number-psych/tutorial), collaborate with multiple classmates to develop a game on multiple BBC micro:bits and a breadboard +* [Glowing pendulum](/lessons/glowing-pendulum/tutorial), construct a pendulum that glows using acceleration +* [Line of Fire](/lessons/line-of-fire/tutorial), make a game to test hand-eye coordination +* [Number psych](/lessons/number-psych/tutorial), collaborate with multiple classmates to develop a game on multiple BBC micro:bits and a breadboard ### ~ diff --git a/docs/reference/js/guides/blink-symbols.md b/docs/reference/js/guides/blink-symbols.md index fe6bf756..fe10db26 100644 --- a/docs/reference/js/guides/blink-symbols.md +++ b/docs/reference/js/guides/blink-symbols.md @@ -2,7 +2,7 @@ ### Challenge 0 -You have successfully following the [blink tutorial](/microbit/hcwxud). If not, then let's start the tutorial now. Your micro:bit script should start by displaying a blinking script on screen. We want to plot the x and y coordinates to 2, 2. Additionally, you will pause by 100 milliseconds then clear the screen of the micro:bit. +You have successfully following the [blink tutorial](/hcwxud). If not, then let's start the tutorial now. Your micro:bit script should start by displaying a blinking script on screen. We want to plot the x and y coordinates to 2, 2. Additionally, you will pause by 100 milliseconds then clear the screen of the micro:bit. Let's give it a go! diff --git a/docs/reference/js/guides/scroll-image-docs.md b/docs/reference/js/guides/scroll-image-docs.md index 119b2f94..025211cc 100644 --- a/docs/reference/js/guides/scroll-image-docs.md +++ b/docs/reference/js/guides/scroll-image-docs.md @@ -4,7 +4,7 @@ My script. #docs **Challenge 0** -This [guided tutorial](/microbit/xuhkviyyxa) introduces how to make an image look like it's scrolling across the micro:bit! +This [guided tutorial](/xuhkviyyxa) introduces how to make an image look like it's scrolling across the micro:bit! We can use an animation to make an image look like its moving! diff --git a/docs/reference/js/guides/touchdevelop-lessons.md b/docs/reference/js/guides/touchdevelop-lessons.md index 68cf5f41..793d6310 100644 --- a/docs/reference/js/guides/touchdevelop-lessons.md +++ b/docs/reference/js/guides/touchdevelop-lessons.md @@ -8,12 +8,12 @@ Overview of TouchDevelop lessons for the micro:bit. ### LED screen -* [plot guided](/microbit/hcwxud) `guided tutorial ` `video available` -* [plots an LED](/microbit/njuzbvocit) [guided tutorial] -* [blink symbols](/microbit/rfchtfjmag) `docs` -* [clear screen](/microbit/jwqywu) -* [point](/microbit/reference/led/point) -* [set brightness](/microbit/tfrmcgdtxk) +* [plot guided](/hcwxud) `guided tutorial ` `video available` +* [plots an LED](/njuzbvocit) [guided tutorial] +* [blink symbols](/rfchtfjmag) `docs` +* [clear screen](/jwqywu) +* [point](/reference/led/point) +* [set brightness](/tfrmcgdtxk) ## micro:bit @@ -21,49 +21,49 @@ Overview of TouchDevelop lessons for the micro:bit. ### Basic -* [show number](/microbit/doxhko) -* [show string](/microbit/hgsfxg) -* [forever - show image](/microbit/bniyze) `guided tutorial` -* [forever - show animation - two frames 1a](/microbit/rwsjmubtaa) -* [forever - show animation - two frames 1c](/microbit/fomtaxxdkk) -* [forever - show animation - two frames 1 d](/microbit/huguhgjmmn) -* [forever - show animation - multliple frames](/microbit/tweyhx) +* [show number](/doxhko) +* [show string](/hgsfxg) +* [forever - show image](/bniyze) `guided tutorial` +* [forever - show animation - two frames 1a](/rwsjmubtaa) +* [forever - show animation - two frames 1c](/fomtaxxdkk) +* [forever - show animation - two frames 1 d](/huguhgjmmn) +* [forever - show animation - multliple frames](/tweyhx) ## Language {#pconst} ### Variables -* [global variables ](/microbit/nkecii) `guided tutorial` -* [local variable - create image, show image](/microbit/dcvnwv) -* data types: [number](/microbit/reference/types/number), [boolean](/microbit/reference/types/boolean), [string](/microbit/reference/types/string), [image](/microbit/reference/image/image) +* [global variables ](/nkecii) `guided tutorial` +* [local variable - create image, show image](/dcvnwv) +* data types: [number](/reference/types/number), [boolean](/reference/types/boolean), [string](/reference/types/string), [image](/reference/image/image) ### Statements and control structures -* [if](/microbit/reference/logic/if) -* [for](/microbit/reference/loops/for) -* [for loop nested - plot](/microbit/vpvhdnaqfm) **script** -* [while](/microbit/js/while) -* [while - show string, show number, show animation](/microbit/bidtzqdips) `docs` -* [while - create image ](/microbit/bnqbom) -* [return](/microbit/js/return) -* [break](/microbit/js/break) -* [function](/microbit/js/function) -* [assignment operation](/microbit/reference/variables/assign) `:=` +* [if](/reference/logic/if) +* [for](/reference/loops/for) +* [for loop nested - plot](/vpvhdnaqfm) **script** +* [while](/js/while) +* [while - show string, show number, show animation](/bidtzqdips) `docs` +* [while - create image ](/bnqbom) +* [return](/js/return) +* [break](/js/break) +* [function](/js/function) +* [assignment operation](/reference/variables/assign) `:=` ### Maths -* arithmetic operators (`+`, `-`, `*`, `/`, mod) on [numbers](/microbit/reference/types/number) -* comparison operators (such as `>`, `=`) on [numbers](/microbit/reference/types/number) -* the [math](/microbit/js/math) library -* the [bits](/microbit/js/bits) library +* arithmetic operators (`+`, `-`, `*`, `/`, mod) on [numbers](/reference/types/number) +* comparison operators (such as `>`, `=`) on [numbers](/reference/types/number) +* the [math](/js/math) library +* the [bits](/js/bits) library ### Logical -* boolean operators (`not`, `or`, `and`) on [booleans](/microbit/reference/types/boolean) +* boolean operators (`not`, `or`, `and`) on [booleans](/reference/types/boolean) ### Strings -* concat operator combines [strings](/microbit/reference/types/string) +* concat operator combines [strings](/reference/types/string) ### ~ @@ -71,17 +71,17 @@ Overview of TouchDevelop lessons for the micro:bit. ### Input -* [button is pressed](/microbit/reference/input/button-is-pressed) -* [on button pressed](/microbit/reference/input/on-button-pressed) -* [acceleration](/microbit/reference/input/acceleration) -* [compass heading](/microbit/reference/input/compass-heading) -* [calibrate](/microbit/functions/calibrate) -* [running time](/microbit/reference/input/running-time) -* [on shake](/microbit/reference/input/on-gesture) -* [on screen up](/microbit/functions/on-screen-up) -* [on screen down](/microbit/functions/on-screen-down) -* [on logo up](/microbit/functions/on-logo-up) -* [on logo down](/microbit/functions/on-logo-down) +* [button is pressed](/reference/input/button-is-pressed) +* [on button pressed](/reference/input/on-button-pressed) +* [acceleration](/reference/input/acceleration) +* [compass heading](/reference/input/compass-heading) +* [calibrate](/functions/calibrate) +* [running time](/reference/input/running-time) +* [on shake](/reference/input/on-gesture) +* [on screen up](/functions/on-screen-up) +* [on screen down](/functions/on-screen-down) +* [on logo up](/functions/on-logo-up) +* [on logo down](/functions/on-logo-down) ### ~ @@ -89,42 +89,42 @@ Overview of TouchDevelop lessons for the micro:bit. ### Authoring & Other Bits -* [TouchDevelop editor](/microbit/js/editor) -* [markdown](/microbit/js/markdown) -* [creating interactive tutorials](/microbit/js/creatinginteractivetutorials) -* [run scripts in a web browser](/microbit/js/simulator) -* [run scripts on your micro:bit](/microbit/usb) -* [libraries](/microbit/js/libraries) +* [TouchDevelop editor](/js/editor) +* [markdown](/js/markdown) +* [creating interactive tutorials](/js/creatinginteractivetutorials) +* [run scripts in a web browser](/js/simulator) +* [run scripts on your micro:bit](/usb) +* [libraries](/js/libraries) ### Functions and libraries -* [creating functions](/microbit/js/function) -* [function parameters](/microbit/js/functionparameters) -* [calling functions](/microbit/js/call) -* [libraries](/microbit/js/libraries) +* [creating functions](/js/function) +* [function parameters](/js/functionparameters) +* [calling functions](/js/call) +* [libraries](/js/libraries) ### Images -* [create image](/microbit/reference/images/create-image) -* [clear](/microbit/reference/basic/clear-screen) -* [set pixel](/microbit/reference/images/set-pixel) -* [pixel](/microbit/reference/images/pixel) -* [show image](/microbit/reference/images/show-image) -* [scroll image](/microbit/reference/images/scroll-image) -* [width](/microbit/functions/width) -* [show animation](/microbit/reference/basic/show-animation) +* [create image](/reference/images/create-image) +* [clear](/reference/basic/clear-screen) +* [set pixel](/reference/images/set-pixel) +* [pixel](/reference/images/pixel) +* [show image](/reference/images/show-image) +* [scroll image](/reference/images/scroll-image) +* [width](/functions/width) +* [show animation](/reference/basic/show-animation) ### Pins -* [analog read pin](/microbit/reference/pins/analog-read-pin) -* [analog write pin](/microbit/reference/pins/analog-write-pin) -* [digital read pin](/microbit/reference/pins/digital-read-pin) -* [digital write pin](/microbit/reference/pins/digital-write-pin) +* [analog read pin](/reference/pins/analog-read-pin) +* [analog write pin](/reference/pins/analog-write-pin) +* [digital read pin](/reference/pins/digital-read-pin) +* [digital write pin](/reference/pins/digital-write-pin) ### Accessories -* [forever](/microbit/reference/basic/forever) -* [in background](/microbit/reference/control/in-background) +* [forever](/reference/basic/forever) +* [in background](/reference/control/in-background) ## Tutorials diff --git a/docs/reference/js/hourofcode.md b/docs/reference/js/hourofcode.md index 01691a33..26a07732 100644 --- a/docs/reference/js/hourofcode.md +++ b/docs/reference/js/hourofcode.md @@ -30,22 +30,22 @@ The BBC micro:bit can be used to run an Hour Of Code™ events for beginner of a Print the following **activities** (1 handout per student): -* [answering machine](/microbit/lessons/answering-machine/activity) -* [happy birthday](/microbit/lessons/happy-birthday/activity) -* [love meter](/microbit/lessons/love-meter/activity) +* [answering machine](/lessons/answering-machine/activity) +* [happy birthday](/lessons/happy-birthday/activity) +* [love meter](/lessons/love-meter/activity) Print the following **challenges** (1 handout per student): -* [answering machine](/microbit/lessons/answering-machine/challenges) -* [happy birthday](/microbit/lessons/happy-birthday/challenges) -* [love meter](/microbit/lessons/love-meter/challenges) +* [answering machine](/lessons/answering-machine/challenges) +* [happy birthday](/lessons/happy-birthday/challenges) +* [love meter](/lessons/love-meter/challenges) ## Timeline * ``00:00`` students enter the website address (see step 3) -* ``10:00`` [answering machine](/microbit/lessons/answering-machine/activity) -* ``25:00`` [happy birthday](/microbit/lessons/happy-birthday/activity) -* ``35:00`` [love meter](/microbit/lessons/love-meter/activity) +* ``10:00`` [answering machine](/lessons/answering-machine/activity) +* ``25:00`` [happy birthday](/lessons/happy-birthday/activity) +* ``35:00`` [love meter](/lessons/love-meter/activity) * ``55:00`` raffle * ``60:00`` that's it! @@ -53,7 +53,7 @@ Print the following **challenges** (1 handout per student): After your Hour Of Code™, you will want to provide plenty of material for students to continue learning about coding. Here are some good places to start: -* [more challenges](/microbit/js/games) are available with BBC micro:bit Tutorials +* [more challenges](/js/games) are available with BBC micro:bit Tutorials * [the Quick Start Guide for Teachers](http://www.slideshare.net/Microsofteduk/bbc-microbit-guide-from-hodder-education) are available within BBC micro:bit The 'Hour of Code™' is a nationwide initiative by [Computer Science Education Week](http://csedweek.org) and [Code.org](http://code.org) to introduce millions of students to one hour of computer science and computer programming. diff --git a/docs/reference/js/hourofcode/notes.md b/docs/reference/js/hourofcode/notes.md index 06152642..06135b5a 100644 --- a/docs/reference/js/hourofcode/notes.md +++ b/docs/reference/js/hourofcode/notes.md @@ -20,7 +20,7 @@ Create a classroom in https://www.microbit.co.uk and pre-populate the classroom 4) Print the activity challenges (1 copy per participant): -* [hour of code](/microbit/js/hourofcode/challenges) +* [hour of code](/js/hourofcode/challenges) 4) (optional) Raffle tickets and prizes @@ -33,7 +33,7 @@ Bring more energy in the room by playing music. ## Timeline * ``00:00`` student sign in using **printed passwords** (see step 3) -* ``10:00`` [hour of code tutorial](/microbit/js/hourofcode) +* ``10:00`` [hour of code tutorial](/js/hourofcode) * ``40:00`` raffle and demoes * ``50:00`` that's it! @@ -41,7 +41,7 @@ Bring more energy in the room by playing music. After your Hour Of Code™, you will want to provide plenty of material for students to continue learning about coding. Here are some good places to start: -* [more challenges](/microbit/lessonss) are available for BBC micro:bit +* [more challenges](/lessonss) are available for BBC micro:bit * [the Quick Start Guide for Teachers](http://www.slideshare.net/Microsofteduk/bbc-microbit-guide-from-hodder-education) are available within BBC micro:bit _The Hour of Code™ is a nationwide initiative by [Computer Science Education Week](http://csedweek.org) and [Code.org](http://code.org) to introduce millions of students to one hour of computer science and computer programming._ diff --git a/docs/reference/js/if.md b/docs/reference/js/if.md index 661d23ca..78c3978d 100644 --- a/docs/reference/js/if.md +++ b/docs/reference/js/if.md @@ -5,7 +5,7 @@ Run code based on a condition. ### @parent js/language -Conditionally run code depending on whether a [Boolean](/microbit/reference/types/boolean) condition is true or false. +Conditionally run code depending on whether a [Boolean](/reference/types/boolean) condition is true or false. ### Block Editor @@ -33,7 +33,7 @@ if (condition) { ### Example: adjusting screen brightness -If the screen [brightness](/microbit/reference/led/brightness) is `< 100`, this code sets the brightness to `255`: +If the screen [brightness](/reference/led/brightness) is `< 100`, this code sets the brightness to `255`: ``` if (led.brightness() < 100) { @@ -68,7 +68,7 @@ else { ### Example: compass heading -The following example gets the [compass heading](/microbit/reference/input/compass-heading) and then uses ``if-then-else`` statements to display a letter on the screen (N for north, E for East, S for South, and W for West). +The following example gets the [compass heading](/reference/input/compass-heading) and then uses ``if-then-else`` statements to display a letter on the screen (N for north, E for East, S for South, and W for West). ``` while (true) { @@ -93,9 +93,9 @@ You can move an entire ``if`` block by clicking the ``if`` keyword and dragging ### Lessons -[love meter](/microbit/lessons/love-meter), [zoomer](/microbit/lessons/zoomer), [offset image](/microbit/lessons/offset-image) +[love meter](/lessons/love-meter), [zoomer](/lessons/zoomer), [offset image](/lessons/offset-image) ### See also -[while loop](/microbit/js/while), [for](/microbit/reference/loops/for), [boolean](/microbit/reference/types/boolean) +[while loop](/js/while), [for](/reference/loops/for), [boolean](/reference/types/boolean) diff --git a/docs/reference/js/image.md b/docs/reference/js/image.md index 0561a7da..69b7025b 100644 --- a/docs/reference/js/image.md +++ b/docs/reference/js/image.md @@ -4,11 +4,11 @@ An image for the micro:bit screen. ### @parent js/language -An *Image* is a matrix of pixels to show on the [LED screen](/microbit/device/screen) +An *Image* is a matrix of pixels to show on the [LED screen](/device/screen) ### Touch Develop editor: plot an image -To display an image using the [Touch Develop editor](/microbit/js/editor): +To display an image using the [Touch Develop editor](/js/editor): * click `image` , `plot image`, and then `edit` * click the rectangles to create an image @@ -30,11 +30,11 @@ basic.plotImage(` ### Creating an image -To create an image that you can later modify, see the [create image](/microbit/reference/images/create-image) function. +To create an image that you can later modify, see the [create image](/reference/images/create-image) function. ### Block editor: create and show images -To create images using the [Block editor](/microbit/blocks/editor): +To create images using the [Block editor](/blocks/editor): 1. Click the **Images** category on the left. @@ -46,26 +46,26 @@ To create images using the [Block editor](/microbit/blocks/editor): ### Global image variables -Images that you create in the [Touch Develop editor](/microbit/js/editor) are [local variables](/microbit/reference/variables/var). To promote a local image variable to a global variable, select the local image variable and click `promote to data`. The *var* keyword changes to the [data](/microbit/js/data) symbol `data->`. +Images that you create in the [Touch Develop editor](/js/editor) are [local variables](/reference/variables/var). To promote a local image variable to a global variable, select the local image variable and click `promote to data`. The *var* keyword changes to the [data](/js/data) symbol `data->`. ### Image functions -* [create image](/microbit/reference/images/create-image): create an image from a series of on/off LED states -* [clear](/microbit/reference/basic/clear-screen): turn off all the pixels in an image -* [set pixel](/microbit/reference/images/set-pixel): set the state of a pixel in an image -* [pixel](/microbit/reference/images/pixel): get the state of a pixel in an image -* [plot-image](/microbit/reference/led/plot-image): show a single-frame image on the LED screen -* [show animation](/microbit/reference/basic/show-animation): show a series of image frames -* [show image](/microbit/reference/images/show-image): show an image on the screen -* [scroll image](/microbit/reference/images/scroll-image): scroll an image on the screen -* [width](/microbit/functions/width): get the width of an image +* [create image](/reference/images/create-image): create an image from a series of on/off LED states +* [clear](/reference/basic/clear-screen): turn off all the pixels in an image +* [set pixel](/reference/images/set-pixel): set the state of a pixel in an image +* [pixel](/reference/images/pixel): get the state of a pixel in an image +* [plot-image](/reference/led/plot-image): show a single-frame image on the LED screen +* [show animation](/reference/basic/show-animation): show a series of image frames +* [show image](/reference/images/show-image): show an image on the screen +* [scroll image](/reference/images/scroll-image): scroll an image on the screen +* [width](/functions/width): get the width of an image ### Lessons -* [bounce image ](/microbit/lessons/bounce-image) -* [offset image](/microbit/lessons/offset-image) +* [bounce image ](/lessons/bounce-image) +* [offset image](/lessons/offset-image) ### See also -[plot image](/microbit/reference/led/plot-image), [create image](/microbit/reference/images/create-image), [show image](/microbit/reference/images/show-image), [LED screen](/microbit/device/screen) +[plot image](/reference/led/plot-image), [create image](/reference/images/create-image), [show image](/reference/images/show-image), [LED screen](/device/screen) diff --git a/docs/reference/js/lessons.md b/docs/reference/js/lessons.md index 13ab630d..3286bb20 100644 --- a/docs/reference/js/lessons.md +++ b/docs/reference/js/lessons.md @@ -8,53 +8,53 @@ Overview of Touch Develop lessons for the BBC micro:bit. ## Maker -* [The Watch](/microbit/lessons/the-watch), design and create The Watch -* [Hack your Headphones](/microbit/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones -* [Banana Keyboard](/microbit/lessons/banana-keyboard), create music with fruits -* [Telegraph](/microbit/lessons/telegraph), play the telegraph game between 2 BBC micro:bits -* [Ornament Chain](/microbit/lessons/ornament-chain), play the ornament chain game between 2 BBC micro:bits +* [The Watch](/lessons/the-watch), design and create The Watch +* [Hack your Headphones](/lessons/hack-your-headphones), create music on the BBC micro:bit by hacking your headphones +* [Banana Keyboard](/lessons/banana-keyboard), create music with fruits +* [Telegraph](/lessons/telegraph), play the telegraph game between 2 BBC micro:bits +* [Ornament Chain](/lessons/ornament-chain), play the ornament chain game between 2 BBC micro:bits ## Beginner -* [Beautiful Image](/microbit/lessons/beautiful-image), show a beautiful image with show LEDs -* [Smiley,](/microbit/lessons/smiley) smiley and frowney with show animation -* [Lucky 7](/microbit/lessons/lucky-7), show a number on the LED screen with show number -* [Answering Machine](/microbit/lessons/answering-machine), show a text message with show string -* [Snowflake Fall](/microbit/lessons/snowflake-fall), repeat an animation with forever +* [Beautiful Image](/lessons/beautiful-image), show a beautiful image with show LEDs +* [Smiley,](/lessons/smiley) smiley and frowney with show animation +* [Lucky 7](/lessons/lucky-7), show a number on the LED screen with show number +* [Answering Machine](/lessons/answering-machine), show a text message with show string +* [Snowflake Fall](/lessons/snowflake-fall), repeat an animation with forever ### ~hide -* [Bounce Image](/microbit/lessons/bounce-image), scroll an image across the screen on shake +* [Bounce Image](/lessons/bounce-image), scroll an image across the screen on shake ### ~ -* [Magic Logo](/microbit/lessons/magic-logo), show an image on logo up -* [Screen Wipe](/microbit/lessons/screen-wipe), turn off the LEDs with clear screen -* [Flashing Heart](/microbit/lessons/flashing-heart), display images with a pause -* [Blink](/microbit/lessons/blink), turn an LED on and off with plot -* [Night Light](/microbit/lessons/night-light), dim the LEDs with set brightness -* [Glowing Sword](/microbit/lessons/glowing-sword), make a glowing sword with fade in and fade out +* [Magic Logo](/lessons/magic-logo), show an image on logo up +* [Screen Wipe](/lessons/screen-wipe), turn off the LEDs with clear screen +* [Flashing Heart](/lessons/flashing-heart), display images with a pause +* [Blink](/lessons/blink), turn an LED on and off with plot +* [Night Light](/lessons/night-light), dim the LEDs with set brightness +* [Glowing Sword](/lessons/glowing-sword), make a glowing sword with fade in and fade out ### ~column ## Intermediate -* [Magic 8](/microbit/lessons/magic-8), a fortune teller game with the BBC micro:bit -* [Guess the Number](/microbit/lessons/guess-the-number), guess a random number with random -* [Rock Paper Scissors](/microbit/lessons/rock-paper-scissors), use image offsets with local variables -* [Counter](/microbit/lessons/counter), display a number with a variable -* [Love meter](/microbit/lessons/love-meter), create a love meter with on pin pressed -* [Zoomer](/microbit/lessons/zoomer), measure the force with acceleration -* [Glowing Pendulum](/microbit/lessons/glowing-pendulum), construct a pendulum that glows using acceleration -* [Truth or Dare](/microbit/lessons/truth-or-dare), a game that forces each player to reveal a secret or do something funny with if statement -* [Spinner](/microbit/lessons/spinner), spin the arrow with multiple if statements -* [Die Roll](/microbit/lessons/die-roll), spin with more if statements -* [Looper](/microbit/lessons/looper), display a series of numbers with a for loop index -* [Strobe Light](/microbit/lessons/strobe-light), develop shapes with a nested for loops -* [Digi Yoyo](/microbit/lessons/digi-yoyo), create a counter with a while loop -* [Rotation Animation](/microbit/lessons/rotation-animation), control an animation with a boolean variable -* [Offset Image](/microbit/lessons/offset-image), shift an image horizontally with image offset -* [Compass](/microbit/lessons/compass), displays the direction the BBC micro:bit is pointing +* [Magic 8](/lessons/magic-8), a fortune teller game with the BBC micro:bit +* [Guess the Number](/lessons/guess-the-number), guess a random number with random +* [Rock Paper Scissors](/lessons/rock-paper-scissors), use image offsets with local variables +* [Counter](/lessons/counter), display a number with a variable +* [Love meter](/lessons/love-meter), create a love meter with on pin pressed +* [Zoomer](/lessons/zoomer), measure the force with acceleration +* [Glowing Pendulum](/lessons/glowing-pendulum), construct a pendulum that glows using acceleration +* [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 +* [Die Roll](/lessons/die-roll), spin with more if statements +* [Looper](/lessons/looper), display a series of numbers with a for loop index +* [Strobe Light](/lessons/strobe-light), develop shapes with a nested for loops +* [Digi Yoyo](/lessons/digi-yoyo), create a counter with a while loop +* [Rotation Animation](/lessons/rotation-animation), control an animation with a boolean variable +* [Offset Image](/lessons/offset-image), shift an image horizontally with image offset +* [Compass](/lessons/compass), displays the direction the BBC micro:bit is pointing ### ~ @@ -62,36 +62,36 @@ Overview of Touch Develop lessons for the BBC micro:bit. ## Advanced -* [Digital Pet](/microbit/lessons/digital-pet), a display of pet images with sub-functions -* [Transformers](/microbit/lessons/transformers), use functions to return values -* [Speed Button](/microbit/lessons/speed-button), code a speed game with running time -* [Catch the Egg](/microbit/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller -* [Headbands](/microbit/lessons/headbands), create a charades game with a collection of strings that hold the words -* [Prank WiFi](/microbit/lessons/prank-wifi), create fake WiFi to trick your friends -* [Jailbreak](/microbit/lessons/jailbreak), break out of a counting loop by pressing button "A" -* [Flipping Bird](/microbit/lessons/flipping-bird), use modulo with a conditional -* [Runaway Pac Man](/microbit/lessons/runaway-pacman), construct the game pac man with the BBC micro:bit -* [Line of Fire](/microbit/lessons/line-of-fire), make a game to test hand-eye coordination -* [The Hat Game](/microbit/lessons/the-hat-game), make a game to test your focus on the moving ball -* [2 Player Pong](/microbit/lessons/2-player-pong), collaborate with a classmate to develop Pong on multiple BBC micro:bits +* [Digital Pet](/lessons/digital-pet), a display of pet images with sub-functions +* [Transformers](/lessons/transformers), use functions to return values +* [Speed Button](/lessons/speed-button), code a speed game with running time +* [Catch the Egg](/lessons/catch-the-egg-game), catch falling eggs in a basket with an acceleration controller +* [Headbands](/lessons/headbands), create a charades game with a collection of strings that hold the words +* [Prank WiFi](/lessons/prank-wifi), create fake WiFi to trick your friends +* [Jailbreak](/lessons/jailbreak), break out of a counting loop by pressing button "A" +* [Flipping Bird](/lessons/flipping-bird), use modulo with a conditional +* [Runaway Pac Man](/lessons/runaway-pacman), construct the game pac man with the BBC micro:bit +* [Line of Fire](/lessons/line-of-fire), make a game to test hand-eye coordination +* [The Hat Game](/lessons/the-hat-game), make a game to test your focus on the moving ball +* [2 Player Pong](/lessons/2-player-pong), collaborate with a classmate to develop Pong on multiple BBC micro:bits ### Games -* [Pong](/microbit/lessons/pong), a light bouncing from left to right -* [Meteorite](/microbit/lessons/meteorite), a game where meteorites are coming for you one by one -* [Minesweeper](/microbit/lessons/minesweeper), make a game to test your memory for placing a LED mine then finding the hidden LED mine -* [Bop it](/microbit/lessons/bop-it), a game where you have to keep up with the commands -* [Letter up](/microbit/lessons/letter-up), a guessing game with string operators with string at +* [Pong](/lessons/pong), a light bouncing from left to right +* [Meteorite](/lessons/meteorite), a game where meteorites are coming for you one by one +* [Minesweeper](/lessons/minesweeper), make a game to test your memory for placing a LED mine then finding the hidden LED mine +* [Bop it](/lessons/bop-it), a game where you have to keep up with the commands +* [Letter up](/lessons/letter-up), a guessing game with string operators with string at ### ~ ### ~hide -* [Number Psych](/microbit/lessons/number-psych), collaborate with multiple classmates to develop a game on multiple BBC micro:bits and a breadboard +* [Number Psych](/lessons/number-psych), collaborate with multiple classmates to develop a game on multiple BBC micro:bits and a breadboard ### ~ ### @section full -The lessons promote computational thinking and computer science literacy[ read more...](/microbit/lessons/teach) +The lessons promote computational thinking and computer science literacy[ read more...](/lessons/teach) diff --git a/docs/reference/js/lessons/2-player-pong.md b/docs/reference/js/lessons/2-player-pong.md index 65db46e2..64422230 100644 --- a/docs/reference/js/lessons/2-player-pong.md +++ b/docs/reference/js/lessons/2-player-pong.md @@ -8,7 +8,7 @@ Functions ## Quick Links -* [tutorial](/microbit/lessons/2-player-pong/tutorial) +* [tutorial](/lessons/2-player-pong/tutorial) ## Class @@ -36,15 +36,15 @@ Learn how to create **functions**, `function()` as a unit of code that performs ## Documentation -* **functions** : [read more...](/microbit/js/function) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **for** : [read more...](/microbit/reference/loops/for) -* **if** : [read more...](/microbit/reference/logic/if) -* **show animation** : [read more...](/microbit/reference/basic/show-animation) +* **functions** : [read more...](/js/function) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **for** : [read more...](/reference/loops/for) +* **if** : [read more...](/reference/logic/if) +* **show animation** : [read more...](/reference/basic/show-animation) ## Resources -* Activity: [tutorial](/microbit/lessons/2-player-pong/tutorial) +* Activity: [tutorial](/lessons/2-player-pong/tutorial) ## Objectives @@ -95,7 +95,7 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/2-player-pong/tutorial) +* [tutorial](/lessons/2-player-pong/tutorial) ## Intended follow on diff --git a/docs/reference/js/lessons/2-player-pong/quiz-answers.md b/docs/reference/js/lessons/2-player-pong/quiz-answers.md index f2d41075..9979f272 100644 --- a/docs/reference/js/lessons/2-player-pong/quiz-answers.md +++ b/docs/reference/js/lessons/2-player-pong/quiz-answers.md @@ -6,7 +6,7 @@ a two-player game of Pong using TWO BBC micro:bits!. ## Directions -Use this activity document to guide your work in the [2 player pong tutorial](/microbit/lessons/2-player-pong/tutorial) +Use this activity document to guide your work in the [2 player pong tutorial](/lessons/2-player-pong/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/2-player-pong/quiz.md b/docs/reference/js/lessons/2-player-pong/quiz.md index 93e93bf3..a764fb06 100644 --- a/docs/reference/js/lessons/2-player-pong/quiz.md +++ b/docs/reference/js/lessons/2-player-pong/quiz.md @@ -6,7 +6,7 @@ a two-player game of Pong using TWO BBC micro:bits!. ## Directions -Use this activity document to guide your work in the [2 player pong tutorial](/microbit/lessons/2-player-pong/tutorial) +Use this activity document to guide your work in the [2 player pong tutorial](/lessons/2-player-pong/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/answering-machine.md b/docs/reference/js/lessons/answering-machine.md index 6523b2f8..8b8024aa 100644 --- a/docs/reference/js/lessons/answering-machine.md +++ b/docs/reference/js/lessons/answering-machine.md @@ -10,11 +10,11 @@ Show String ## Quick Links -* [activity](/microbit/lessons/answering-machine/activity) -* [quiz](/microbit/lessons/answering-machine/quiz) -* [quiz answers](/microbit/lessons/answering-machine/quiz-answers) -* [challenges](/microbit/lessons/answering-machine/challenges) -* [tutorial](/microbit/lessons/answering-machine/tutorial) +* [activity](/lessons/answering-machine/activity) +* [quiz](/lessons/answering-machine/quiz) +* [quiz answers](/lessons/answering-machine/quiz-answers) +* [challenges](/lessons/answering-machine/challenges) +* [tutorial](/lessons/answering-machine/tutorial) ## Class @@ -26,8 +26,8 @@ Learn how to creating a message with a **string**, `basic->show string` to write ## Documentation -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) +* **show string** : [read more...](/reference/basic/show-string) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) ## Objectives @@ -67,15 +67,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/answering-machine/activity) -* [quiz](/microbit/lessons/answering-machine/quiz) +* [activity](/lessons/answering-machine/activity) +* [quiz](/lessons/answering-machine/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/answering-machine/challenges) +* [challenges](/lessons/answering-machine/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/answering-machine/challenges) +* Extended Activity: [challenges](/lessons/answering-machine/challenges) diff --git a/docs/reference/js/lessons/banana-keyboard.md b/docs/reference/js/lessons/banana-keyboard.md index 2f3ab935..3e51bdd4 100644 --- a/docs/reference/js/lessons/banana-keyboard.md +++ b/docs/reference/js/lessons/banana-keyboard.md @@ -8,7 +8,7 @@ Music ## Quick Links -* [activity](/microbit/lessons/banana-keyboard/activity) +* [activity](/lessons/banana-keyboard/activity) ## Class diff --git a/docs/reference/js/lessons/beautiful-image.md b/docs/reference/js/lessons/beautiful-image.md index 999539fc..c2d364ee 100644 --- a/docs/reference/js/lessons/beautiful-image.md +++ b/docs/reference/js/lessons/beautiful-image.md @@ -10,11 +10,11 @@ Show LEDs ## Quick Links -* [activity](/microbit/lessons/beautiful-image/activity) -* [quiz](/microbit/lessons/beautiful-image/quiz) -* [quiz answers](/microbit/lessons/beautiful-image/quiz-answers) -* [challenges](/microbit/lessons/beautiful-image/challenges) -* [tutorial](/microbit/lessons/beautiful-image/tutorial) +* [activity](/lessons/beautiful-image/activity) +* [quiz](/lessons/beautiful-image/quiz) +* [quiz answers](/lessons/beautiful-image/quiz-answers) +* [challenges](/lessons/beautiful-image/challenges) +* [tutorial](/lessons/beautiful-image/tutorial) ## Class @@ -26,8 +26,8 @@ Learn how to **show LEDs**, to show an image on the BBC micro:bit's LED screen. ## Documentation -* **show LEDs** : [read more...](/microbit/reference/basic/show-leds) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **show LEDs** : [read more...](/reference/basic/show-leds) +* **pause** : [read more...](/reference/basic/pause) ## Objectives @@ -62,15 +62,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/beautiful-image/tutorial) -* [quiz](/microbit/lessons/beautiful-image/quiz) +* [tutorial](/lessons/beautiful-image/tutorial) +* [quiz](/lessons/beautiful-image/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/beautiful-image/challenges) +* [challenges](/lessons/beautiful-image/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/beautiful-image/challenges) +* Extended Activity: [challenges](/lessons/beautiful-image/challenges) diff --git a/docs/reference/js/lessons/blink.md b/docs/reference/js/lessons/blink.md index 4a477622..758634c8 100644 --- a/docs/reference/js/lessons/blink.md +++ b/docs/reference/js/lessons/blink.md @@ -10,11 +10,11 @@ Plot ## Quick links -* [activity](/microbit/lessons/blink/activity) -* [quiz](/microbit/lessons/blink/quiz) -* [quiz answers](/microbit/lessons/blink/quiz-answers) -* [challenges](/microbit/lessons/blink/challenges) -* [tutorial](/microbit/lessons/blink/tutorial) +* [activity](/lessons/blink/activity) +* [quiz](/lessons/blink/quiz) +* [quiz answers](/lessons/blink/quiz-answers) +* [challenges](/lessons/blink/challenges) +* [tutorial](/lessons/blink/tutorial) ## Class @@ -36,16 +36,16 @@ Learn how to control a blinking LED. We will be learning how to create a blinkin ## Documentation -* **plot**: [read more...](/microbit/reference/led/plot) -* **unplot**: [read more...](/microbit/reference/led/unplot) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **forever**: [read more...](/microbit/reference/basic/forever) +* **plot**: [read more...](/reference/led/plot) +* **unplot**: [read more...](/reference/led/unplot) +* **pause**: [read more...](/reference/basic/pause) +* **forever**: [read more...](/reference/basic/forever) ## Resources -* Activity: [tutorial](/microbit/lessons/blink/tutorial) -* Activity: [quiz](/microbit/lessons/blink/quiz) -* Extended Activity: [challenges](/microbit/lessons/blink/challenges) +* Activity: [tutorial](/lessons/blink/tutorial) +* Activity: [quiz](/lessons/blink/quiz) +* Extended Activity: [challenges](/lessons/blink/challenges) ## Objectives @@ -78,18 +78,18 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/blink/tutorial) -* [quiz](/microbit/lessons/blink/quiz) -* [quiz answers](/microbit/lessons/blink/quiz-answers) +* [tutorial](/lessons/blink/tutorial) +* [quiz](/lessons/blink/quiz) +* [quiz answers](/lessons/blink/quiz-answers) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/blink/challenges) +* [challenges](/lessons/blink/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/blink/challenges) +* Extended Activity: [challenges](/lessons/blink/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/blink/activity.md b/docs/reference/js/lessons/blink/activity.md index 42994f44..68d94fb2 100644 --- a/docs/reference/js/lessons/blink/activity.md +++ b/docs/reference/js/lessons/blink/activity.md @@ -49,7 +49,7 @@ basic.forever(() => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/blink/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/blink/challenges)! ### ~ diff --git a/docs/reference/js/lessons/blink/challenges.md b/docs/reference/js/lessons/blink/challenges.md index 2346172c..858c47d6 100644 --- a/docs/reference/js/lessons/blink/challenges.md +++ b/docs/reference/js/lessons/blink/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the blink tutorial. ## Before we get started -Complete the [blink](/microbit/lessons/blink/activity) activity and your code will look like this: +Complete the [blink](/lessons/blink/activity) activity and your code will look like this: ``` basic.forever(() => { diff --git a/docs/reference/js/lessons/blink/lesson-plan.md b/docs/reference/js/lessons/blink/lesson-plan.md index 8f62d6e7..69adb936 100644 --- a/docs/reference/js/lessons/blink/lesson-plan.md +++ b/docs/reference/js/lessons/blink/lesson-plan.md @@ -10,10 +10,10 @@ Plot - Blinking LED ## Quick links -* [tutorial](/microbit/lessons/blink/tutorial) -* [quiz](/microbit/js/blink/quiz) -* [quiz answers](/microbit/lessons/blink/quiz-answers) -* [challenges](/microbit/lessons/blink/challenges) +* [tutorial](/lessons/blink/tutorial) +* [quiz](/js/blink/quiz) +* [quiz answers](/lessons/blink/quiz-answers) +* [challenges](/lessons/blink/challenges) ## Class @@ -37,16 +37,16 @@ Learn how to control a blinking LED. We will be learning how to create a blinkin ## Documentation -* **plot**: [read more...](/microbit/reference/led/plot) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **clear screen**: [read more...](/microbit/reference/basic/clear-screen) -* **forever**: [read more...](/microbit/reference/basic/forever) +* **plot**: [read more...](/reference/led/plot) +* **pause**: [read more...](/reference/basic/pause) +* **clear screen**: [read more...](/reference/basic/clear-screen) +* **forever**: [read more...](/reference/basic/forever) ## Resources -* Activity: [tutorial](/microbit/lessons/blink/tutorial) -* Activity: [quiz](/microbit/lessons/blink/quiz) -* Extended Activity: [challenges](/microbit/lessons/blink/challenges) +* Activity: [tutorial](/lessons/blink/tutorial) +* Activity: [quiz](/lessons/blink/quiz) +* Extended Activity: [challenges](/lessons/blink/challenges) ## Objectives @@ -81,19 +81,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/blink/tutorial) -* [quiz](/microbit/lessons/blink/quiz) +* [tutorial](/lessons/blink/tutorial) +* [quiz](/lessons/blink/quiz) * assessment opportunities: forever, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/blink/challenges) +* [challenges](/lessons/blink/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/blink/challenges) +* Extended Activity: [challenges](/lessons/blink/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/blink/quiz-answers.md b/docs/reference/js/lessons/blink/quiz-answers.md index a6a830ee..36b855d7 100644 --- a/docs/reference/js/lessons/blink/quiz-answers.md +++ b/docs/reference/js/lessons/blink/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create a blinking LED script. -This is the answer key for the [blink quiz](/microbit/lessons/blink/quiz). +This is the answer key for the [blink quiz](/lessons/blink/quiz). ## 1. Describe what `led->plot` does? diff --git a/docs/reference/js/lessons/blink/quiz.md b/docs/reference/js/lessons/blink/quiz.md index bf6eaa1f..8256e10d 100644 --- a/docs/reference/js/lessons/blink/quiz.md +++ b/docs/reference/js/lessons/blink/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking LED script. ## Directions -Use this activity document to guide your work in the [blink tutorial](/microbit/lessons/blink/tutorial). +Use this activity document to guide your work in the [blink tutorial](/lessons/blink/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/bop-it.md b/docs/reference/js/lessons/bop-it.md index a5f9b133..c78a79f5 100644 --- a/docs/reference/js/lessons/bop-it.md +++ b/docs/reference/js/lessons/bop-it.md @@ -8,10 +8,10 @@ Game Library ## Quick Links -* [tutorial](/microbit/lessons/bop-it/tutorial) -* [quiz](/microbit/lessons/bop-it/quiz) -* [quiz answers](/microbit/lessons/bop-it/quiz-answers) -* [challenges](/microbit/lessons/bop-it/challenges) +* [tutorial](/lessons/bop-it/tutorial) +* [quiz](/lessons/bop-it/quiz) +* [quiz answers](/lessons/bop-it/quiz-answers) +* [challenges](/lessons/bop-it/challenges) ## Class @@ -23,18 +23,18 @@ Learn how to create a minesweeper game with **if**, `if condition do` , **global ## Documentation -* **game library** : [read more...](/microbit/js/game-library) -* **global variables** : [read more...](/microbit/js/data) -* **assignment operator** : [read more...](/microbit/reference/variables/assignment) -* **functions** : [read more...](/microbit/js/function) -* **call** : [read more...](/microbit/js/call) -* **math random number** : [read more...](/microbit/js/math) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **on logo down** : [read more...](/microbit/functions/on-logo-down) -* **on shake** : [read more...](/microbit/reference/input/on-gesture) -* **if** : [read more...](/microbit/reference/logic/if) -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **show string** : [read more...](/microbit/reference/basic/show-string) +* **game library** : [read more...](/js/game-library) +* **global variables** : [read more...](/js/data) +* **assignment operator** : [read more...](/reference/variables/assignment) +* **functions** : [read more...](/js/function) +* **call** : [read more...](/js/call) +* **math random number** : [read more...](/js/math) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **on logo down** : [read more...](/functions/on-logo-down) +* **on shake** : [read more...](/reference/input/on-gesture) +* **if** : [read more...](/reference/logic/if) +* **show number** : [read more...](/reference/basic/show-number) +* **show string** : [read more...](/reference/basic/show-string) ## Objectives @@ -83,15 +83,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/bop-it/tutorial) -* [quiz](/microbit/lessons/bop-it/quiz) +* [tutorial](/lessons/bop-it/tutorial) +* [quiz](/lessons/bop-it/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/bop-it/challenges) +* [challenges](/lessons/bop-it/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/bop-it/challenges) +* Extended Activity: [challenges](/lessons/bop-it/challenges) diff --git a/docs/reference/js/lessons/bounce-image.md b/docs/reference/js/lessons/bounce-image.md index be0bfe25..bc953445 100644 --- a/docs/reference/js/lessons/bounce-image.md +++ b/docs/reference/js/lessons/bounce-image.md @@ -10,10 +10,10 @@ Basic- Show Animation ## Quick Links -* [tutorial](/microbit/lessons/bounce-image/tutorial) -* [quiz](/microbit/lessons/bounce-image/quiz) -* [quiz answers](/microbit/lessons/bounce-image/quiz-answers) -* [challenges](/microbit/lessons/bounce-image/challenges) +* [tutorial](/lessons/bounce-image/tutorial) +* [quiz](/lessons/bounce-image/quiz) +* [quiz answers](/lessons/bounce-image/quiz-answers) +* [challenges](/lessons/bounce-image/challenges) ## Class @@ -39,15 +39,15 @@ Learn how to creating an **animation**, `basic->show animation` to display a ser ## Documentation -* **forever** : [read more...](/microbit/reference/basic/forever) -* **show animation** : [read more...](/microbit/reference/basic/show-animation) -* **on shake** : [read more...](/microbit/reference/input/on-gesture) +* **forever** : [read more...](/reference/basic/forever) +* **show animation** : [read more...](/reference/basic/show-animation) +* **on shake** : [read more...](/reference/input/on-gesture) ## Resources -* Activity: [tutorial](/microbit/lessons/bounce-image/tutorial) -* Activity: [quiz](/microbit/lessons/bounce-image/quiz) -* Extended Activity: [challenges](/microbit/lessons/bounce-image/challenges) +* Activity: [tutorial](/lessons/bounce-image/tutorial) +* Activity: [quiz](/lessons/bounce-image/quiz) +* Extended Activity: [challenges](/lessons/bounce-image/challenges) ## Objectives @@ -90,17 +90,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/bounce-image/tutorial) -* [quiz](/microbit/lessons/bounce-image/quiz) +* [tutorial](/lessons/bounce-image/tutorial) +* [quiz](/lessons/bounce-image/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/bounce-image/challenges) +* [challenges](/lessons/bounce-image/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/bounce-image/challenges) +* Extended Activity: [challenges](/lessons/bounce-image/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/bounce-image/challenges.md b/docs/reference/js/lessons/bounce-image/challenges.md index 2fad0f7d..5c3b6ea9 100644 --- a/docs/reference/js/lessons/bounce-image/challenges.md +++ b/docs/reference/js/lessons/bounce-image/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the bounce image tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/bounce-image/tutorial) +* [tutorial](/lessons/bounce-image/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/bounce-image/quiz-answers.md b/docs/reference/js/lessons/bounce-image/quiz-answers.md index 9b2afee0..123096ba 100644 --- a/docs/reference/js/lessons/bounce-image/quiz-answers.md +++ b/docs/reference/js/lessons/bounce-image/quiz-answers.md @@ -2,7 +2,7 @@ scroll an image on the BBC micro:bit. -This is the answer key for the [bounce image quiz](/microbit/lessons/bounce-image/quiz). +This is the answer key for the [bounce image quiz](/lessons/bounce-image/quiz). ## 1. What does it mean to 'add frames' ? diff --git a/docs/reference/js/lessons/bounce-image/quiz.md b/docs/reference/js/lessons/bounce-image/quiz.md index 2d36a51f..9d889c91 100644 --- a/docs/reference/js/lessons/bounce-image/quiz.md +++ b/docs/reference/js/lessons/bounce-image/quiz.md @@ -6,7 +6,7 @@ scroll an image on the BBC micro:bit. ## Directions -Use this document to guide your work in the [bounce image tutorial](/microbit/lessons/bounce-image/tutorial) ! +Use this document to guide your work in the [bounce image tutorial](/lessons/bounce-image/tutorial) ! Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/boxer-mania/challenges.md b/docs/reference/js/lessons/boxer-mania/challenges.md index 049dff47..0ff1748f 100644 --- a/docs/reference/js/lessons/boxer-mania/challenges.md +++ b/docs/reference/js/lessons/boxer-mania/challenges.md @@ -2,7 +2,7 @@ My script. #docs -This [guided tutorial](/microbit/lessons/boxer-mania/tutorial) will help you create an animation! +This [guided tutorial](/lessons/boxer-mania/tutorial) will help you create an animation! **Challenge 0** diff --git a/docs/reference/js/lessons/break/challenges.md b/docs/reference/js/lessons/break/challenges.md index a0cc2d0b..4c4caf65 100644 --- a/docs/reference/js/lessons/break/challenges.md +++ b/docs/reference/js/lessons/break/challenges.md @@ -4,7 +4,7 @@ This guide will show you how to use a break statement within a while loop. #docs ### Challenge 0 -Welcome! This [guided tutorial](/microbit/lessons/break/tutorial) will assist you with this activity. +Welcome! This [guided tutorial](/lessons/break/tutorial) will assist you with this activity. ``` count = 0 diff --git a/docs/reference/js/lessons/button/challenges.md b/docs/reference/js/lessons/button/challenges.md index 70cf1696..441ff77a 100644 --- a/docs/reference/js/lessons/button/challenges.md +++ b/docs/reference/js/lessons/button/challenges.md @@ -4,7 +4,7 @@ My script. #docs ### Challenge 0 -Howdy! This [guided tutorial](/microbit/rxqgzy) will help you complete this activity! +Howdy! This [guided tutorial](/rxqgzy) will help you complete this activity! In this guide, you will learn how to use buttons and show text on the screen. Let's start by adding to respond **when the left button is pressed**. diff --git a/docs/reference/js/lessons/cascade/quiz.md b/docs/reference/js/lessons/cascade/quiz.md index ebfaf24e..734cca53 100644 --- a/docs/reference/js/lessons/cascade/quiz.md +++ b/docs/reference/js/lessons/cascade/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking LED script with a for loop. ## Directions -Use this activity document to guide your work in the [light column cascade tutorial](/microbit/js/light-column-cascade/tutorial). +Use this activity document to guide your work in the [light column cascade tutorial](/js/light-column-cascade/tutorial). Answer the questions below while working on or after you finish the tutorial. Pay attention to the dialogs! diff --git a/docs/reference/js/lessons/clear-screen/challenges.md b/docs/reference/js/lessons/clear-screen/challenges.md index 1b604f19..6cc12e92 100644 --- a/docs/reference/js/lessons/clear-screen/challenges.md +++ b/docs/reference/js/lessons/clear-screen/challenges.md @@ -4,7 +4,7 @@ My script. #docs ### Challenge 0 -Welcome! This [guided tutorial](/microbit/hzckbb) will help you create the script to clear the screen! +Welcome! This [guided tutorial](/hzckbb) will help you create the script to clear the screen! Your goal is to clear the screen after displaying an animation. Begin by showing and displaying an animation. Remember that the `show animation` is in the `basic` namespace. We then need to detect when the "A" button is pressed. Finally, clear the screen by typing in `basic->clear screen`. diff --git a/docs/reference/js/lessons/column/quiz.md b/docs/reference/js/lessons/column/quiz.md index 2b662e4b..b9ccf639 100644 --- a/docs/reference/js/lessons/column/quiz.md +++ b/docs/reference/js/lessons/column/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking LED script with a for loop. ## Directions -Use this activity document to guide your work in the [light column cascade tutorial](/microbit/js/light-column-cascade/tutorial). +Use this activity document to guide your work in the [light column cascade tutorial](/js/light-column-cascade/tutorial). Answer the questions below while working on or after you finish the tutorial. Pay attention to the dialogs! diff --git a/docs/reference/js/lessons/compare-machine/challenges.md b/docs/reference/js/lessons/compare-machine/challenges.md index 44aafca2..5de2802a 100644 --- a/docs/reference/js/lessons/compare-machine/challenges.md +++ b/docs/reference/js/lessons/compare-machine/challenges.md @@ -4,7 +4,7 @@ These challenges allow you to set the value of a counter to 1 when button B is p ### Challenge 0 -Welcome! This [guided tutorial](/microbit/lessons/comparison/tutorial) will assist you with using the comparison operator. +Welcome! This [guided tutorial](/lessons/comparison/tutorial) will assist you with using the comparison operator. ``` counter = 0 diff --git a/docs/reference/js/lessons/compass.md b/docs/reference/js/lessons/compass.md index 01d49c6d..e7fa23ce 100644 --- a/docs/reference/js/lessons/compass.md +++ b/docs/reference/js/lessons/compass.md @@ -4,5 +4,5 @@ build a compass app that applies the BBC micro:bit magnetic sensor (magnetometer build a compass app that applies the BBC micro:bit magnetic sensor (magnetometer) -* [tutorial](/microbit/lessons/compass/tutorial) -* [challenges](/microbit/lessons/compass/challenges) +* [tutorial](/lessons/compass/tutorial) +* [challenges](/lessons/compass/challenges) diff --git a/docs/reference/js/lessons/compass/challenges.md b/docs/reference/js/lessons/compass/challenges.md index 5a001be5..05e47f6d 100644 --- a/docs/reference/js/lessons/compass/challenges.md +++ b/docs/reference/js/lessons/compass/challenges.md @@ -6,7 +6,7 @@ Display the direction that the BBC micro:bit is facing using the compass Complete the following guided tutorial: -* [tutorial](/microbit/lessons/compass/tutorial) +* [tutorial](/lessons/compass/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/compass/quiz-answers.md b/docs/reference/js/lessons/compass/quiz-answers.md index 0748971f..7666b8c2 100644 --- a/docs/reference/js/lessons/compass/quiz-answers.md +++ b/docs/reference/js/lessons/compass/quiz-answers.md @@ -6,7 +6,7 @@ Create an actual compass to show your direction: North, South, East, or West ## Directions -Use this activity document to guide your work in the [compass tutorial](/microbit/lessons/compass/tutorial). +Use this activity document to guide your work in the [compass tutorial](/lessons/compass/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/compass/quiz.md b/docs/reference/js/lessons/compass/quiz.md index 7b8c4e08..02b715de 100644 --- a/docs/reference/js/lessons/compass/quiz.md +++ b/docs/reference/js/lessons/compass/quiz.md @@ -6,7 +6,7 @@ Create an actual compass to show your direction: North, South, East, or West ## Directions -Use this activity document to guide your work in the [compass tutorial](/microbit/lessons/compass/tutorial). +Use this activity document to guide your work in the [compass tutorial](/lessons/compass/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/counter.md b/docs/reference/js/lessons/counter.md index 2ea33de2..d89eaaef 100644 --- a/docs/reference/js/lessons/counter.md +++ b/docs/reference/js/lessons/counter.md @@ -10,11 +10,11 @@ Variables ## Quick Links -* [activity](/microbit/lessons/counter/activity) -* [challenges](/microbit/lessons/counter/challenges) -* [quiz](/microbit/lessons/counter/quiz) -* [quiz answers](/microbit/lessons/counter/quiz-answers) -* [tutorial](/microbit/lessons/counter/tutorial) +* [activity](/lessons/counter/activity) +* [challenges](/lessons/counter/challenges) +* [quiz](/lessons/counter/quiz) +* [quiz answers](/lessons/counter/quiz-answers) +* [tutorial](/lessons/counter/tutorial) ## Class @@ -26,10 +26,10 @@ Learn how to creating a **variable** to keep track of the current count. We will ## Documentation -* **variable**: [read more...](/microbit/reference/variables/var) -* **arithmetic operators**: [read more...](/microbit/reference/types/number) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **variable**: [read more...](/reference/variables/var) +* **arithmetic operators**: [read more...](/reference/types/number) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **show number** : [read more...](/reference/basic/show-number) ## Objectives @@ -65,16 +65,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/counter/activity) -* [tutorial](/microbit/lessons/counter/tutorial) -* [quiz](/microbit/lessons/counter/quiz) +* [activity](/lessons/counter/activity) +* [tutorial](/lessons/counter/tutorial) +* [quiz](/lessons/counter/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/counter/challenges) +* [challenges](/lessons/counter/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/counter/challenges) +* Extended Activity: [challenges](/lessons/counter/challenges) diff --git a/docs/reference/js/lessons/counter/activity.md b/docs/reference/js/lessons/counter/activity.md index 7b54757d..f953b7aa 100644 --- a/docs/reference/js/lessons/counter/activity.md +++ b/docs/reference/js/lessons/counter/activity.md @@ -10,7 +10,7 @@ Welcome! This tutorial will teach you how to make a counter that increments when ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. Let's start by creating a **local variable** `count` to keep track of the current count. @@ -39,7 +39,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/counter/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/counter/challenges)! ### ~ diff --git a/docs/reference/js/lessons/counter/challenges.md b/docs/reference/js/lessons/counter/challenges.md index a45e968e..21ecd3a2 100644 --- a/docs/reference/js/lessons/counter/challenges.md +++ b/docs/reference/js/lessons/counter/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the counter tutorial. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/counter/activity) At the end of the tutorial, your code should look like this: +Complete the following [guided tutorial](/lessons/counter/activity) At the end of the tutorial, your code should look like this: ``` let count = 0 diff --git a/docs/reference/js/lessons/counter/lesson-plan.md b/docs/reference/js/lessons/counter/lesson-plan.md index 1f1d7397..dff82fe2 100644 --- a/docs/reference/js/lessons/counter/lesson-plan.md +++ b/docs/reference/js/lessons/counter/lesson-plan.md @@ -30,15 +30,15 @@ Learn how to creating a **variable** to keep track of the current count. We will ## Documentation -* **variables**: [read more...](/microbit/reference/variables/var) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **variables**: [read more...](/reference/variables/var) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **show number** : [read more...](/reference/basic/show-number) ## Resources -* Activity: [tutorial](/microbit/lessons/counter/tutorial) -* Activity: [quiz](/microbit/lessons/counter/quiz) -* Extended Activity: [challenges](/microbit/lessons/counter/challenges) +* Activity: [tutorial](/lessons/counter/tutorial) +* Activity: [quiz](/lessons/counter/quiz) +* Extended Activity: [challenges](/lessons/counter/challenges) ## Objectives @@ -71,19 +71,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/counter/tutorial) -* [quiz](/microbit/lessons/counter/quiz) +* [tutorial](/lessons/counter/tutorial) +* [quiz](/lessons/counter/quiz) * assessment opportunities: forever, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/counter/challenges) +* [challenges](/lessons/counter/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/counter/challenges) +* Extended Activity: [challenges](/lessons/counter/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/die-roll.md b/docs/reference/js/lessons/die-roll.md index ff934e4d..01e771ca 100644 --- a/docs/reference/js/lessons/die-roll.md +++ b/docs/reference/js/lessons/die-roll.md @@ -8,11 +8,11 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/die-roll/activity) -* [challenges](/microbit/lessons/die-roll/challenges) -* [quiz](/microbit/lessons/die-roll/quiz) -* [quiz answers](/microbit/lessons/die-roll/quiz-answers) -* [tutorial](/microbit/lessons/die-roll/tutorial) +* [activity](/lessons/die-roll/activity) +* [challenges](/lessons/die-roll/challenges) +* [quiz](/lessons/die-roll/quiz) +* [quiz answers](/lessons/die-roll/quiz-answers) +* [tutorial](/lessons/die-roll/tutorial) ## Class @@ -24,12 +24,12 @@ Learn how to use an if statements to run code run code depending on whether a co ## Documentation -* **Variables** : [read more...](/microbit/reference/variables/var) -* **If** : [read more...](/microbit/reference/logic/if) -* **On Shake** : [read more...](/microbit/reference/input/on-gesture) -* **Assignment Operator** : [read more...](/microbit/reference/variables/assign) -* **Math Random** : [read more...](/microbit/js/math) -* **Show LEDs** : [read more...](/microbit/reference/basic/show-leds) +* **Variables** : [read more...](/reference/variables/var) +* **If** : [read more...](/reference/logic/if) +* **On Shake** : [read more...](/reference/input/on-gesture) +* **Assignment Operator** : [read more...](/reference/variables/assign) +* **Math Random** : [read more...](/js/math) +* **Show LEDs** : [read more...](/reference/basic/show-leds) ## Objectives @@ -76,16 +76,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/die-roll/activity) -* [tutorial](/microbit/lessons/die-roll/tutorial) -* [quiz](/microbit/lessons/die-roll/quiz) +* [activity](/lessons/die-roll/activity) +* [tutorial](/lessons/die-roll/tutorial) +* [quiz](/lessons/die-roll/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/die-roll/challenges) +* [challenges](/lessons/die-roll/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/die-roll/challenges) +* Extended Activity: [challenges](/lessons/die-roll/challenges) diff --git a/docs/reference/js/lessons/die-roll/activity.md b/docs/reference/js/lessons/die-roll/activity.md index b2b1c558..127b112d 100644 --- a/docs/reference/js/lessons/die-roll/activity.md +++ b/docs/reference/js/lessons/die-roll/activity.md @@ -2,7 +2,7 @@ Create a die on the BBC micro:bit -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **KindScript**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **KindScript**. Let's create a condition for when the BBC micro:bit is shaken. @@ -124,7 +124,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/die-roll/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/die-roll/challenges)! ### ~ diff --git a/docs/reference/js/lessons/die-roll/challenges.md b/docs/reference/js/lessons/die-roll/challenges.md index e1f245fc..2c8d2b39 100644 --- a/docs/reference/js/lessons/die-roll/challenges.md +++ b/docs/reference/js/lessons/die-roll/challenges.md @@ -6,7 +6,7 @@ Create a die on the BBC micro:bit. Complete the following guided tutorial: -* [tutorial](/microbit/lessons/die-roll/tutorial) +* [tutorial](/lessons/die-roll/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/digi-yoyo.md b/docs/reference/js/lessons/digi-yoyo.md index cbfbfa06..63ff9d30 100644 --- a/docs/reference/js/lessons/digi-yoyo.md +++ b/docs/reference/js/lessons/digi-yoyo.md @@ -10,10 +10,10 @@ While Loop ## Quick Links -* [tutorial](/microbit/lessons/digi-yoyo/tutorial) -* [quiz](/microbit/lessons/digi-yoyo/quiz) -* [quiz answers](/microbit/lessons/digi-yoyo/quiz-answers) -* [challenges](/microbit/lessons/digi-yoyo/challenges) +* [tutorial](/lessons/digi-yoyo/tutorial) +* [quiz](/lessons/digi-yoyo/quiz) +* [quiz answers](/lessons/digi-yoyo/quiz-answers) +* [challenges](/lessons/digi-yoyo/challenges) ## Class @@ -25,12 +25,12 @@ Learn how to creating a **while loop**, `while condition do` to repeat code whil ## Documentation -* **local variables** : [read more...](/microbit/reference/variables/var) -* **assignment operator** : [read more...](/microbit/reference/variables/assign) -* **while loop** : [read more...](/microbit/js/while) -* **relational operator ** : [read more...](/microbit/reference/types/number) -* **pause** : [read more...](/microbit/reference/basic/pause) -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **local variables** : [read more...](/reference/variables/var) +* **assignment operator** : [read more...](/reference/variables/assign) +* **while loop** : [read more...](/js/while) +* **relational operator ** : [read more...](/reference/types/number) +* **pause** : [read more...](/reference/basic/pause) +* **show number** : [read more...](/reference/basic/show-number) ## Objectives @@ -77,15 +77,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/digi-yoyo/tutorial) -* [quiz](/microbit/lessons/digi-yoyo/quiz) +* [tutorial](/lessons/digi-yoyo/tutorial) +* [quiz](/lessons/digi-yoyo/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/digi-yoyo/challenges) +* [challenges](/lessons/digi-yoyo/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/digi-yoyo/challenges) +* Extended Activity: [challenges](/lessons/digi-yoyo/challenges) diff --git a/docs/reference/js/lessons/digi-yoyo/challenges.md b/docs/reference/js/lessons/digi-yoyo/challenges.md index 1c383c67..497f478c 100644 --- a/docs/reference/js/lessons/digi-yoyo/challenges.md +++ b/docs/reference/js/lessons/digi-yoyo/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the digi yoyo. Complete the following guided tutorial: -* [tutorial](/microbit/lessons/digi-yoyo/tutorial) +* [tutorial](/lessons/digi-yoyo/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/digital-pet.md b/docs/reference/js/lessons/digital-pet.md index da08ef11..19213a40 100644 --- a/docs/reference/js/lessons/digital-pet.md +++ b/docs/reference/js/lessons/digital-pet.md @@ -10,10 +10,10 @@ Functions ## Quick Links -* [tutorial](/microbit/lessons/digital-pet/tutorial) -* [quiz](/microbit/lessons/digital-pet/quiz) -* [quiz answers](/microbit/lessons/digital-pet/quiz-answers) -* [challenges](/microbit/lessons/digital-pet/challenges) +* [tutorial](/lessons/digital-pet/tutorial) +* [quiz](/lessons/digital-pet/quiz) +* [quiz answers](/lessons/digital-pet/quiz-answers) +* [challenges](/lessons/digital-pet/challenges) ## Class @@ -43,23 +43,23 @@ Learn how to create **functions**, `function()` that perform a specific task and ## Documentation -* **function** : [read more...](/microbit/js/function) -* **call** : [read more...](/microbit/js/call) -* **global variable** : [read more...](/microbit/js/data) -* **assignment operator** : [read more...](/microbit/reference/variables/assign) -* **forever** : [read more...](/microbit/reference/basic/forever) -* **button is pressed** : [read more...](/microbit/reference/input/button-is-pressed) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **create image** : [read more...](/microbit/reference/images/create-image) -* **show image** : [read more...](/microbit/reference/images/show-image) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **function** : [read more...](/js/function) +* **call** : [read more...](/js/call) +* **global variable** : [read more...](/js/data) +* **assignment operator** : [read more...](/reference/variables/assign) +* **forever** : [read more...](/reference/basic/forever) +* **button is pressed** : [read more...](/reference/input/button-is-pressed) +* **show string** : [read more...](/reference/basic/show-string) +* **show number** : [read more...](/reference/basic/show-number) +* **create image** : [read more...](/reference/images/create-image) +* **show image** : [read more...](/reference/images/show-image) +* **pause** : [read more...](/reference/basic/pause) ## Resources -* Activity: [tutorial](/microbit/lessons/digital-pet/tutorial) -* Activity: [quiz](/microbit/lessons/digital-pet/quiz) -* Extended Activity: [challenges](/microbit/lessons/digital-pet/challenges) +* Activity: [tutorial](/lessons/digital-pet/tutorial) +* Activity: [quiz](/lessons/digital-pet/quiz) +* Extended Activity: [challenges](/lessons/digital-pet/challenges) ## Objectives @@ -115,17 +115,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/digital-pet/tutorial) -* [quiz](/microbit/lessons/digital-pet/quiz) +* [tutorial](/lessons/digital-pet/tutorial) +* [quiz](/lessons/digital-pet/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/digital-pet/challenges) +* [challenges](/lessons/digital-pet/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/digital-pet/challenges) +* Extended Activity: [challenges](/lessons/digital-pet/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/digital-pet/challenges.md b/docs/reference/js/lessons/digital-pet/challenges.md index f63ae4df..d81044d0 100644 --- a/docs/reference/js/lessons/digital-pet/challenges.md +++ b/docs/reference/js/lessons/digital-pet/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the digital pet tutorial. Complete the following guided tutorial: -* [tutorial](/microbit/lessons/digital-pet/tutorial) +* [tutorial](/lessons/digital-pet/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/digital-pet/quiz-answers.md b/docs/reference/js/lessons/digital-pet/quiz-answers.md index 02d0b87a..ba9649fa 100644 --- a/docs/reference/js/lessons/digital-pet/quiz-answers.md +++ b/docs/reference/js/lessons/digital-pet/quiz-answers.md @@ -6,7 +6,7 @@ A display of pet images for the BBC micro:bit ## Directions -Use this activity document to guide your work in the [digital pet tutorial](/microbit/lessons/digital-pet/tutorial) +Use this activity document to guide your work in the [digital pet tutorial](/lessons/digital-pet/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/digital-pet/quiz.md b/docs/reference/js/lessons/digital-pet/quiz.md index 1f637101..bf10346b 100644 --- a/docs/reference/js/lessons/digital-pet/quiz.md +++ b/docs/reference/js/lessons/digital-pet/quiz.md @@ -6,7 +6,7 @@ A display of pet images for the BBC micro:bit ## Directions -Use this activity document to guide your work in the [digital pet tutorial](/microbit/lessons/digital-pet/tutorial) +Use this activity document to guide your work in the [digital pet tutorial](/lessons/digital-pet/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/flashing-heart.md b/docs/reference/js/lessons/flashing-heart.md index fae302be..7bba387b 100644 --- a/docs/reference/js/lessons/flashing-heart.md +++ b/docs/reference/js/lessons/flashing-heart.md @@ -10,11 +10,11 @@ Pause ## Quick links -* [activity](/microbit/lessons/flashing-heart/activity) -* [quiz](/microbit/lessons/flashing-heart/quiz) -* [quiz answers](/microbit/lessons/flashing-heart/quiz-answers) -* [challenges](/microbit/lessons/flashing-heart/challenges) -* [tutorial](/microbit/lessons/flashing-heart/tutorial) +* [activity](/lessons/flashing-heart/activity) +* [quiz](/lessons/flashing-heart/quiz) +* [quiz answers](/lessons/flashing-heart/quiz-answers) +* [challenges](/lessons/flashing-heart/challenges) +* [tutorial](/lessons/flashing-heart/tutorial) ## Class @@ -36,10 +36,10 @@ Learn how to **plot image** by turning on a series of LED lights on the LED scre ## Documentation -* **forever**: [read more...](/microbit/reference/basic/forever) -* **plot image** : [read more...](/microbit/reference/led/plot-image) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **clear screen**: [read more...](/microbit/reference/basic/clear-screen) +* **forever**: [read more...](/reference/basic/forever) +* **plot image** : [read more...](/reference/led/plot-image) +* **pause**: [read more...](/reference/basic/pause) +* **clear screen**: [read more...](/reference/basic/clear-screen) ## Objectives @@ -75,17 +75,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Exercise * time: 20 min. -* [activity](/microbit/lessons/flashing-heart/activity) or [tutorial](/microbit/lessons/flashing-heart/tutorial) -* [quiz](/microbit/lessons/flashing-heart/quiz) +* [activity](/lessons/flashing-heart/activity) or [tutorial](/lessons/flashing-heart/tutorial) +* [quiz](/lessons/flashing-heart/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/flashing-heart/challenges) +* [challenges](/lessons/flashing-heart/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/flashing-heart/challenges) +* Extended Activity: [challenges](/lessons/flashing-heart/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/flashing-heart/activity.md b/docs/reference/js/lessons/flashing-heart/activity.md index f96e0d1f..ca2b4db7 100644 --- a/docs/reference/js/lessons/flashing-heart/activity.md +++ b/docs/reference/js/lessons/flashing-heart/activity.md @@ -57,7 +57,7 @@ basic.forever(() => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/flashing-heart/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/flashing-heart/challenges)! ### ~ diff --git a/docs/reference/js/lessons/flashing-heart/challenges.md b/docs/reference/js/lessons/flashing-heart/challenges.md index 640cf368..0031c942 100644 --- a/docs/reference/js/lessons/flashing-heart/challenges.md +++ b/docs/reference/js/lessons/flashing-heart/challenges.md @@ -4,7 +4,7 @@ Coding challenges for flashing heart. ## Before we get started -Complete the [flashing heart](/microbit/lessons/flashing-heart/activity) activity and your code will look like this: +Complete the [flashing heart](/lessons/flashing-heart/activity) activity and your code will look like this: ``` basic.forever(() => { diff --git a/docs/reference/js/lessons/flashing-heart/lesson-plan.md b/docs/reference/js/lessons/flashing-heart/lesson-plan.md index d260a094..f611533c 100644 --- a/docs/reference/js/lessons/flashing-heart/lesson-plan.md +++ b/docs/reference/js/lessons/flashing-heart/lesson-plan.md @@ -30,18 +30,18 @@ Learn how to control a blinking LED image. We will be learning how to create a b ## Documentation -* **global variables**: [read more...](/microbit/js/data) -* **create image** : [read more...](/microbit/reference/images/create-image) -* **show image** : [read more...](/microbit/reference/images/show-image) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **clear screen**: [read more...](/microbit/reference/basic/clear-screen) -* **forever**: [read more...](/microbit/reference/basic/forever) +* **global variables**: [read more...](/js/data) +* **create image** : [read more...](/reference/images/create-image) +* **show image** : [read more...](/reference/images/show-image) +* **pause**: [read more...](/reference/basic/pause) +* **clear screen**: [read more...](/reference/basic/clear-screen) +* **forever**: [read more...](/reference/basic/forever) ## Resources -* Activity: [tutorial](/microbit/lessons/flashing-heart/tutorial) -* Activity: [quiz](/microbit/lessons/flashing-heart/quiz) -* Extended Activity: [challenges](/microbit/lessons/flashing-heart/challenges) +* Activity: [tutorial](/lessons/flashing-heart/tutorial) +* Activity: [quiz](/lessons/flashing-heart/quiz) +* Extended Activity: [challenges](/lessons/flashing-heart/challenges) ## Objectives @@ -82,19 +82,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/flashing-heart/tutorial) -* [quiz](/microbit/lessons/flashing-heart/quiz) +* [tutorial](/lessons/flashing-heart/tutorial) +* [quiz](/lessons/flashing-heart/quiz) * assessment opportunities: forever, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/flashing-heart/challenges) +* [challenges](/lessons/flashing-heart/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/flashing-heart/challenges) +* Extended Activity: [challenges](/lessons/flashing-heart/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/flashing-heart/quiz-answers.md b/docs/reference/js/lessons/flashing-heart/quiz-answers.md index 2111d41a..7410a6c8 100644 --- a/docs/reference/js/lessons/flashing-heart/quiz-answers.md +++ b/docs/reference/js/lessons/flashing-heart/quiz-answers.md @@ -2,7 +2,7 @@ Learn how to create images with global variables. -This is the answer key for the [flashing heart quiz](/microbit/lessons/flashing-heart/quiz). +This is the answer key for the [flashing heart quiz](/lessons/flashing-heart/quiz). ## 1. Describe what `basic->show leds` does diff --git a/docs/reference/js/lessons/flashing-heart/quiz.md b/docs/reference/js/lessons/flashing-heart/quiz.md index 5332c411..9518321a 100644 --- a/docs/reference/js/lessons/flashing-heart/quiz.md +++ b/docs/reference/js/lessons/flashing-heart/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking LED script with a variable. ## Directions -Use this activity document to guide your work in the [flashing heart activity](/microbit/lessons/flashing-heart/activity). +Use this activity document to guide your work in the [flashing heart activity](/lessons/flashing-heart/activity). Answer the questions while completing the activity. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/flipping-bird.md b/docs/reference/js/lessons/flipping-bird.md index 27d2a8db..699a62d8 100644 --- a/docs/reference/js/lessons/flipping-bird.md +++ b/docs/reference/js/lessons/flipping-bird.md @@ -10,10 +10,10 @@ Math - Modulo ## Quick Links -* [tutorial](/microbit/lessons/flipping-bird/tutorial) -* [quiz](/microbit/lessons/flipping-bird/quiz) -* [quiz answers](/microbit/lessons/flipping-bird/quiz-answers) -* [challenges](/microbit/lessons/flipping-bird/challenges) +* [tutorial](/lessons/flipping-bird/tutorial) +* [quiz](/lessons/flipping-bird/quiz) +* [quiz answers](/lessons/flipping-bird/quiz-answers) +* [challenges](/lessons/flipping-bird/challenges) ## Class @@ -36,17 +36,17 @@ Learn how to return the **modulus**, `math->mod` to determine if you will plot i ## Documentation -* **global variables** : [read more...](/microbit/js/data) -* **on shake** : [read more...](/microbit/reference/input/on-gesture) -* **if** : [read more...](/microbit/reference/logic/if) -* **math modulo** : [read more...](/microbit/js/math) -* **plot image** : [read more...](/microbit/reference/led/plot-image) +* **global variables** : [read more...](/js/data) +* **on shake** : [read more...](/reference/input/on-gesture) +* **if** : [read more...](/reference/logic/if) +* **math modulo** : [read more...](/js/math) +* **plot image** : [read more...](/reference/led/plot-image) ## Resources -* Activity: [tutorial](/microbit/lessons/flipping-bird/tutorial) -* Activity: [quiz](/microbit/lessons/flipping-bird/quiz) -* Extended Activity: [challenges](/microbit/lessons/flipping-bird/challenges) +* Activity: [tutorial](/lessons/flipping-bird/tutorial) +* Activity: [quiz](/lessons/flipping-bird/quiz) +* Extended Activity: [challenges](/lessons/flipping-bird/challenges) ## Objectives @@ -105,18 +105,18 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/flipping-bird/tutorial) -* [quiz](/microbit/lessons/flipping-bird/quiz) +* [tutorial](/lessons/flipping-bird/tutorial) +* [quiz](/lessons/flipping-bird/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/flipping-bird/challenges) +* [challenges](/lessons/flipping-bird/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/flipping-bird/challenges) +* Extended Activity: [challenges](/lessons/flipping-bird/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/flipping-bird/challenges.md b/docs/reference/js/lessons/flipping-bird/challenges.md index d989aafe..9735281e 100644 --- a/docs/reference/js/lessons/flipping-bird/challenges.md +++ b/docs/reference/js/lessons/flipping-bird/challenges.md @@ -6,7 +6,7 @@ Coding challenges for flipping bird. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/flipping-bird/tutorial) +* [tutorial](/lessons/flipping-bird/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/flipping-bird/quiz-answers.md b/docs/reference/js/lessons/flipping-bird/quiz-answers.md index ebac3449..2b956327 100644 --- a/docs/reference/js/lessons/flipping-bird/quiz-answers.md +++ b/docs/reference/js/lessons/flipping-bird/quiz-answers.md @@ -2,7 +2,7 @@ use modulo with a conditional. -This is the answer key for the [flipping bird quiz](/microbit/lessons/flipping-bird/quiz). +This is the answer key for the [flipping bird quiz](/lessons/flipping-bird/quiz). ## 1. What does "modulo" mean in math? diff --git a/docs/reference/js/lessons/flipping-bird/quiz.md b/docs/reference/js/lessons/flipping-bird/quiz.md index f69216ae..9017688d 100644 --- a/docs/reference/js/lessons/flipping-bird/quiz.md +++ b/docs/reference/js/lessons/flipping-bird/quiz.md @@ -6,7 +6,7 @@ use modulo with a conditional. ## Directions -Use this activity document to guide your work in the [flipping bird tutorial](/microbit/lessons/flipping-bird/tutorial). +Use this activity document to guide your work in the [flipping bird tutorial](/lessons/flipping-bird/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/foo.md b/docs/reference/js/lessons/foo.md index 9b9f830d..2f9dca9b 100644 --- a/docs/reference/js/lessons/foo.md +++ b/docs/reference/js/lessons/foo.md @@ -14,10 +14,10 @@ Basic - Show Number ## Quick Links TODO: -* [tutorial](/microbit/lessons/lucky-7/tutorial) -* [quiz](/microbit/lessons/lucky-7/quiz) -* [quiz answers](/microbit/lessons/lucky-7/quiz-answers) -* [challenges](/microbit/lessons/lucky-7/challenges) +* [tutorial](/lessons/lucky-7/tutorial) +* [quiz](/lessons/lucky-7/quiz) +* [quiz answers](/lessons/lucky-7/quiz-answers) +* [challenges](/lessons/lucky-7/challenges) ## Class @@ -73,13 +73,13 @@ Learn how to creating a **global number variable**, `data->count` to keep track ## Documentation TODO: -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **show number** : [read more...](/reference/basic/show-number) ## Resources TODO: -* Activity: [tutorial](/microbit/lessons/lucky-7/tutorial) -* Activity: [quiz](/microbit/lessons/lucky-7/quiz) -* Extended Activity: [challenges](/microbit/lessons/lucky-7/challenges) +* Activity: [tutorial](/lessons/lucky-7/tutorial) +* Activity: [quiz](/lessons/lucky-7/quiz) +* Extended Activity: [challenges](/lessons/lucky-7/challenges) ## Objectives TODO: @@ -171,19 +171,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity TODO: * time: 20 min. -* [tutorial](/microbit/lessons/lucky-7/tutorial) -* [quiz](/microbit/lessons/lucky-7/quiz) +* [tutorial](/lessons/lucky-7/tutorial) +* [quiz](/lessons/lucky-7/quiz) * assessment opportunities: forever, plot, pause, clear screen ## Extended Activity TODO: * time: 20 min. -* [challenges](/microbit/lessons/lucky-7/challenges) +* [challenges](/lessons/lucky-7/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework TODO: -* Extended Activity: [challenges](/microbit/lessons/lucky-7/challenges) +* Extended Activity: [challenges](/lessons/lucky-7/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/for-loop/challenges.md b/docs/reference/js/lessons/for-loop/challenges.md index aad3db23..470d7f6c 100644 --- a/docs/reference/js/lessons/for-loop/challenges.md +++ b/docs/reference/js/lessons/for-loop/challenges.md @@ -4,7 +4,7 @@ These challenges will allow you to create a counter from 0-5 and then from 5-0. ### Challenge 0 -Welcome! This [guided tutorial](/microbit/bcvgkf) will assist you with the following activity: +Welcome! This [guided tutorial](/bcvgkf) will assist you with the following activity: ``` for (let i = 0; i < 6; i++) { diff --git a/docs/reference/js/lessons/glowing-pendulum.md b/docs/reference/js/lessons/glowing-pendulum.md index 031e5532..ebf7d9bb 100644 --- a/docs/reference/js/lessons/glowing-pendulum.md +++ b/docs/reference/js/lessons/glowing-pendulum.md @@ -8,11 +8,11 @@ Acceleration ## Quick Links -* [activity](/microbit/lessons/glowing-pendulum/activity) -* [challenges](/microbit/lessons/glowing-pendulum/challenges) -* [quiz](/microbit/lessons/glowing-pendulum/quiz) -* [quiz answers](/microbit/lessons/glowing-pendulum/quiz-answers) -* [tutorial](/microbit/lessons/glowing-pendulum/tutorial) +* [activity](/lessons/glowing-pendulum/activity) +* [challenges](/lessons/glowing-pendulum/challenges) +* [quiz](/lessons/glowing-pendulum/quiz) +* [quiz answers](/lessons/glowing-pendulum/quiz-answers) +* [tutorial](/lessons/glowing-pendulum/tutorial) ## Class @@ -24,12 +24,12 @@ Learn how to get the acceleration **acceleration**, `input->acceleration` value ## Documentation -* **forever** : [read more...](/microbit/reference/basic/forever) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **acceleration** : [read more...](/microbit/reference/input/acceleration) -* **absolute value** : [read more...](/microbit/js/math) -* **set brightness** : [read more...](/microbit/reference/led/set-brightness) -* **plot** : [read more...](/microbit/reference/led/set-brightness) +* **forever** : [read more...](/reference/basic/forever) +* **local variable** : [read more...](/reference/variables/var) +* **acceleration** : [read more...](/reference/input/acceleration) +* **absolute value** : [read more...](/js/math) +* **set brightness** : [read more...](/reference/led/set-brightness) +* **plot** : [read more...](/reference/led/set-brightness) ## Objectives @@ -75,16 +75,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/glowing-pendulum/activity) -* [tutorial](/microbit/lessons/glowing-pendulum/tutorial) -* [quiz](/microbit/lessons/glowing-pendulum/quiz) +* [activity](/lessons/glowing-pendulum/activity) +* [tutorial](/lessons/glowing-pendulum/tutorial) +* [quiz](/lessons/glowing-pendulum/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/glowing-pendulum/challenges) +* [challenges](/lessons/glowing-pendulum/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/glowing-pendulum/challenges) +* Extended Activity: [challenges](/lessons/glowing-pendulum/challenges) diff --git a/docs/reference/js/lessons/glowing-pendulum/activity.md b/docs/reference/js/lessons/glowing-pendulum/activity.md index 2aed3212..18496365 100644 --- a/docs/reference/js/lessons/glowing-pendulum/activity.md +++ b/docs/reference/js/lessons/glowing-pendulum/activity.md @@ -8,7 +8,7 @@ Welcome! This guided activity will teach how to construct a pendulum that glows ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. Create a **forever** loop that will constantly display the appropriate brightness on the LED display. @@ -69,7 +69,7 @@ basic.forever(() => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/glowing-pendulum/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/glowing-pendulum/challenges)! ### ~ diff --git a/docs/reference/js/lessons/glowing-pendulum/challenges.md b/docs/reference/js/lessons/glowing-pendulum/challenges.md index b670b774..82ca37fa 100644 --- a/docs/reference/js/lessons/glowing-pendulum/challenges.md +++ b/docs/reference/js/lessons/glowing-pendulum/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the glowing pendulum tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/glowing-pendulum/tutorial) +* [tutorial](/lessons/glowing-pendulum/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/glowing-sword.md b/docs/reference/js/lessons/glowing-sword.md index 9fd94997..760bdd5f 100644 --- a/docs/reference/js/lessons/glowing-sword.md +++ b/docs/reference/js/lessons/glowing-sword.md @@ -10,11 +10,11 @@ Fade Out ## Quick Links -* [activity](/microbit/lessons/glowing-sword/activity) -* [quiz](/microbit/lessons/glowing-sword/quiz) -* [quiz answers](/microbit/lessons/glowing-sword/quiz-answers) -* [challenges](/microbit/lessons/glowing-sword/challenges) -* [tutorial](/microbit/lessons/glowing-sword/tutorial) +* [activity](/lessons/glowing-sword/activity) +* [quiz](/lessons/glowing-sword/quiz) +* [quiz answers](/lessons/glowing-sword/quiz-answers) +* [challenges](/lessons/glowing-sword/challenges) +* [tutorial](/lessons/glowing-sword/tutorial) ## Class @@ -36,16 +36,16 @@ Learn how to manipulate an image through **fade out**, `led->fade out` to gradua ## Documentation -* **plot image** : [read more...](/microbit/reference/led/plot-image) -* **fade out** : [read more...](/microbit/reference/led/fade-out) -* **pause** : [read more...](/microbit/reference/basic/pause) -* **fade in** : [read more...](/microbit/reference/led/fade-in) +* **plot image** : [read more...](/reference/led/plot-image) +* **fade out** : [read more...](/reference/led/fade-out) +* **pause** : [read more...](/reference/basic/pause) +* **fade in** : [read more...](/reference/led/fade-in) ## Resources -* Activity: [tutorial](/microbit/lessons/glowing-sword/tutorial) -* Activity: [quiz](/microbit/lessons/glowing-sword/quiz) -* Extended Activity: [challenges](/microbit/lessons/glowing-sword/challenges) +* Activity: [tutorial](/lessons/glowing-sword/tutorial) +* Activity: [quiz](/lessons/glowing-sword/quiz) +* Extended Activity: [challenges](/lessons/glowing-sword/challenges) ## Objectives @@ -79,17 +79,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/glowing-sword/tutorial) -* [quiz](/microbit/lessons/lucky-7/quiz) +* [tutorial](/lessons/glowing-sword/tutorial) +* [quiz](/lessons/lucky-7/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/glowing-sword/challenges) +* [challenges](/lessons/glowing-sword/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/glowing-sword/challenges) +* Extended Activity: [challenges](/lessons/glowing-sword/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/glowing-sword/activity.md b/docs/reference/js/lessons/glowing-sword/activity.md index 3c3df32b..d17c66ab 100644 --- a/docs/reference/js/lessons/glowing-sword/activity.md +++ b/docs/reference/js/lessons/glowing-sword/activity.md @@ -57,7 +57,7 @@ led.fadeIn(700) // *** ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/glowing-sword/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/glowing-sword/challenges)! ### ~ diff --git a/docs/reference/js/lessons/glowing-sword/challenges.md b/docs/reference/js/lessons/glowing-sword/challenges.md index cad6ce01..6c2472ca 100644 --- a/docs/reference/js/lessons/glowing-sword/challenges.md +++ b/docs/reference/js/lessons/glowing-sword/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the glowing sword tutorial. #docs ## Before we get started -Complete the [glowing sword](/microbit/lessons/glowing-sword/activity) activity and your code will look like this: +Complete the [glowing sword](/lessons/glowing-sword/activity) activity and your code will look like this: ``` basic.plotImage(` diff --git a/docs/reference/js/lessons/glowing-sword/quiz-answers.md b/docs/reference/js/lessons/glowing-sword/quiz-answers.md index 864cc0f1..f06bcf94 100644 --- a/docs/reference/js/lessons/glowing-sword/quiz-answers.md +++ b/docs/reference/js/lessons/glowing-sword/quiz-answers.md @@ -2,7 +2,7 @@ The answers for the glowing sword quiz. -This is the answer key for the [glowing sword quiz](/microbit/lessons/glowing-sword/quiz). +This is the answer key for the [glowing sword quiz](/lessons/glowing-sword/quiz). ## 1. What is "fade out" ? diff --git a/docs/reference/js/lessons/glowing-sword/quiz.md b/docs/reference/js/lessons/glowing-sword/quiz.md index 94fb999f..1f50ec2e 100644 --- a/docs/reference/js/lessons/glowing-sword/quiz.md +++ b/docs/reference/js/lessons/glowing-sword/quiz.md @@ -6,7 +6,7 @@ make a glowing sword. ## Directions -Use this activity document to guide your work in the [glowing sword tutorial](/microbit/lessons/glowing-sword/tutorial) +Use this activity document to guide your work in the [glowing sword tutorial](/lessons/glowing-sword/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/guess-the-number.md b/docs/reference/js/lessons/guess-the-number.md index 96d20cd5..e5d6f370 100644 --- a/docs/reference/js/lessons/guess-the-number.md +++ b/docs/reference/js/lessons/guess-the-number.md @@ -10,11 +10,11 @@ Math - Random Numbers ## Quick links -* [activity](/microbit/lessons/guess-the-number/activity) -* [challenges](/microbit/lessons/guess-the-number/challenges) -* [quiz](/microbit/lessons/guess-the-number/quiz) -* [quiz answers](/microbit/lessons/guess-the-number/quiz-answers) -* [tutorial](/microbit/lessons/guess-the-number/tutorial) +* [activity](/lessons/guess-the-number/activity) +* [challenges](/lessons/guess-the-number/challenges) +* [quiz](/lessons/guess-the-number/quiz) +* [quiz answers](/lessons/guess-the-number/quiz-answers) +* [tutorial](/lessons/guess-the-number/tutorial) ## Class @@ -26,12 +26,12 @@ Learn how to create numbers randomly by using the input of the BBC micro:bit. We ## Documentation -* **on button pressed**: [read more...](/microbit/reference/input/on-button-pressed) -* **local variable **: [read more...](/microbit/reference/variables/var) -* **assignment operator**: [read more...](/microbit/reference/variables/assign) -* **show number**: [read more...](/microbit/reference/basic/show-number) -* **random numbers**: [read more...](/microbit/js/math) -* **clear screen**: [read more...](/microbit/reference/basic/clear-screen) +* **on button pressed**: [read more...](/reference/input/on-button-pressed) +* **local variable **: [read more...](/reference/variables/var) +* **assignment operator**: [read more...](/reference/variables/assign) +* **show number**: [read more...](/reference/basic/show-number) +* **random numbers**: [read more...](/js/math) +* **clear screen**: [read more...](/reference/basic/clear-screen) ## Objectives @@ -69,16 +69,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/guess-the-number/activity) -* [tutorial](/microbit/lessons/guess-the-number/tutorial) -* [quiz](/microbit/lessons/guess-the-number/quiz) +* [activity](/lessons/guess-the-number/activity) +* [tutorial](/lessons/guess-the-number/tutorial) +* [quiz](/lessons/guess-the-number/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/guess-the-number/challenges) +* [challenges](/lessons/guess-the-number/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/guess-the-number/challenges) +* Extended Activity: [challenges](/lessons/guess-the-number/challenges) diff --git a/docs/reference/js/lessons/guess-the-number/activity.md b/docs/reference/js/lessons/guess-the-number/activity.md index 8db1c0fe..0d5e1d7f 100644 --- a/docs/reference/js/lessons/guess-the-number/activity.md +++ b/docs/reference/js/lessons/guess-the-number/activity.md @@ -10,7 +10,7 @@ Welcome! This tutorial will help you create a guess the number game! Let's get s ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap New Project under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap New Project under **Touch Develop**. Add an event handler when button `A` is pressed. @@ -38,7 +38,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/guess-the-number/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/guess-the-number/challenges)! ### ~ diff --git a/docs/reference/js/lessons/guess-the-number/challenges.md b/docs/reference/js/lessons/guess-the-number/challenges.md index 57d67dab..adbd3bfd 100644 --- a/docs/reference/js/lessons/guess-the-number/challenges.md +++ b/docs/reference/js/lessons/guess-the-number/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the guess the number tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/guess-the-number/tutorial) +* [tutorial](/lessons/guess-the-number/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/guess-the-number/lesson-plan.md b/docs/reference/js/lessons/guess-the-number/lesson-plan.md index 93fe8f82..8a5514ab 100644 --- a/docs/reference/js/lessons/guess-the-number/lesson-plan.md +++ b/docs/reference/js/lessons/guess-the-number/lesson-plan.md @@ -30,15 +30,15 @@ Learn how to create numbers randomly by using the input of the BBC micro:bit. We ## Documentation -* **local variables**: [read more...](/microbit/reference/variables/var) -* **math**: [read more...](/microbit/js/math) -* **on button pressed**: [read more...](/microbit/reference/input/on-button-pressed) +* **local variables**: [read more...](/reference/variables/var) +* **math**: [read more...](/js/math) +* **on button pressed**: [read more...](/reference/input/on-button-pressed) ## Resources -* Activity: [tutorial](/microbit/lessons/guess-the-number/tutorial) -* Activity: [quiz](/microbit/lessons/guess-the-number/quiz) -* Extended Activity: [challenges](/microbit/lessons/guess-the-number/challenges) +* Activity: [tutorial](/lessons/guess-the-number/tutorial) +* Activity: [quiz](/lessons/guess-the-number/quiz) +* Extended Activity: [challenges](/lessons/guess-the-number/challenges) ## Objectives @@ -79,19 +79,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/guess-the-number/tutorial) -* [quiz](/microbit/lessons/guess-the-number/quiz) +* [tutorial](/lessons/guess-the-number/tutorial) +* [quiz](/lessons/guess-the-number/quiz) * assessment opportunities: forever, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/guess-the-number/challenges) +* [challenges](/lessons/guess-the-number/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/guess-the-number/challenges) +* Extended Activity: [challenges](/lessons/guess-the-number/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/hack-your-headphones.md b/docs/reference/js/lessons/hack-your-headphones.md index 80c38fa0..b30df49d 100644 --- a/docs/reference/js/lessons/hack-your-headphones.md +++ b/docs/reference/js/lessons/hack-your-headphones.md @@ -8,7 +8,7 @@ Hack your headphone ## Quick Links -* [activity](/microbit/lessons/hack-your-headphones/activity) +* [activity](/lessons/hack-your-headphones/activity) ## Class diff --git a/docs/reference/js/lessons/hack-your-headphones/activity.md b/docs/reference/js/lessons/hack-your-headphones/activity.md index 0dabf790..9c86ab39 100644 --- a/docs/reference/js/lessons/hack-your-headphones/activity.md +++ b/docs/reference/js/lessons/hack-your-headphones/activity.md @@ -52,5 +52,5 @@ You hacked your headphones! ### Step 6 -Connect your BBC micro:bit to your computer using your USB cable and run the [happy birthday](/microbit/dnnzgd) script on it. Press the reset button to restart your music player! +Connect your BBC micro:bit to your computer using your USB cable and run the [happy birthday](/dnnzgd) script on it. Press the reset button to restart your music player! diff --git a/docs/reference/js/lessons/jailbreak.md b/docs/reference/js/lessons/jailbreak.md index 9362c49f..1ba45f2d 100644 --- a/docs/reference/js/lessons/jailbreak.md +++ b/docs/reference/js/lessons/jailbreak.md @@ -10,10 +10,10 @@ Break ## Quick Links -* [tutorial](/microbit/lessons/jailbreak/tutorial) -* [quiz](/microbit/lessons/jailbreak/quiz) -* [quiz answers](/microbit/lessons/jailbreak/quiz-answers) -* [challenges](/microbit/lessons/jailbreak/challenges) +* [tutorial](/lessons/jailbreak/tutorial) +* [quiz](/lessons/jailbreak/quiz) +* [quiz answers](/lessons/jailbreak/quiz-answers) +* [challenges](/lessons/jailbreak/challenges) ## Class @@ -25,16 +25,16 @@ Learn how to create a **break**, `break` to exit a while or for loop before the ## Documentation -* **Global Variable** : [read more...](/microbit/js/data) -* **Boolean** : [read more...](/microbit/reference/types/boolean) -* **On Button Pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **While Loop** : [read more...](/microbit/js/while) -* **Break** : [read more...](/microbit/js/break) -* **If (Conditional)** : [read more...](/microbit/reference/logic/if) -* **Show String** : [read more...](/microbit/reference/basic/show-string) -* **Plot Image ** : [read more...](/microbit/reference/led/plot-image) -* **Show Number** : [read more...](/microbit/reference/basic/show-number) -* **Pause** : [read more...](/microbit/reference/basic/pause) +* **Global Variable** : [read more...](/js/data) +* **Boolean** : [read more...](/reference/types/boolean) +* **On Button Pressed** : [read more...](/reference/input/on-button-pressed) +* **While Loop** : [read more...](/js/while) +* **Break** : [read more...](/js/break) +* **If (Conditional)** : [read more...](/reference/logic/if) +* **Show String** : [read more...](/reference/basic/show-string) +* **Plot Image ** : [read more...](/reference/led/plot-image) +* **Show Number** : [read more...](/reference/basic/show-number) +* **Pause** : [read more...](/reference/basic/pause) ## Objectives @@ -94,15 +94,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/jailbreak/tutorial) -* [quiz](/microbit/lessons/jailbreak/quiz) +* [tutorial](/lessons/jailbreak/tutorial) +* [quiz](/lessons/jailbreak/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/jailbreak/challenges) +* [challenges](/lessons/jailbreak/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/jailbreak/challenges) +* Extended Activity: [challenges](/lessons/jailbreak/challenges) diff --git a/docs/reference/js/lessons/jailbreak/challenges.md b/docs/reference/js/lessons/jailbreak/challenges.md index dafd2958..e3821667 100644 --- a/docs/reference/js/lessons/jailbreak/challenges.md +++ b/docs/reference/js/lessons/jailbreak/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the jailbreak tutorial.#docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/jailbreak/tutorial) +* [tutorial](/lessons/jailbreak/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/jailbreak/quiz-answers.md b/docs/reference/js/lessons/jailbreak/quiz-answers.md index 181ee20b..c4a2b03f 100644 --- a/docs/reference/js/lessons/jailbreak/quiz-answers.md +++ b/docs/reference/js/lessons/jailbreak/quiz-answers.md @@ -2,7 +2,7 @@ break out of a counting loop by pressing button "A". -This is the answer key for the [jailbreak quiz](/microbit/lessons/jailbreak/quiz). +This is the answer key for the [jailbreak quiz](/lessons/jailbreak/quiz). ## 1. What does a 'break' statement do to a 'loop' ? diff --git a/docs/reference/js/lessons/jailbreak/quiz.md b/docs/reference/js/lessons/jailbreak/quiz.md index 89d7d330..a33bd51e 100644 --- a/docs/reference/js/lessons/jailbreak/quiz.md +++ b/docs/reference/js/lessons/jailbreak/quiz.md @@ -6,7 +6,7 @@ break out of a counting loop by pressing button "A". ## Directions -Use this activity document to guide your work in the [jailbreak tutorial](/microbit/lessons/jailbreak/tutorial) +Use this activity document to guide your work in the [jailbreak tutorial](/lessons/jailbreak/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/landslide.md b/docs/reference/js/lessons/landslide.md index e1120ef5..76fbfc75 100644 --- a/docs/reference/js/lessons/landslide.md +++ b/docs/reference/js/lessons/landslide.md @@ -4,5 +4,5 @@ Turn a LED on and off. #docs Detect and show an image when the micro:bit falls. -* [tutorial](/microbit/lessons/landslide/tutorial) -* [challenges](/microbit/lessons/landslide/challenges) +* [tutorial](/lessons/landslide/tutorial) +* [challenges](/lessons/landslide/challenges) diff --git a/docs/reference/js/lessons/landslide/challenges.md b/docs/reference/js/lessons/landslide/challenges.md index 21303a72..5fcc1a04 100644 --- a/docs/reference/js/lessons/landslide/challenges.md +++ b/docs/reference/js/lessons/landslide/challenges.md @@ -12,7 +12,7 @@ Don't drop me on the ground without protection! I'm very fragile. Ouch! Complete the following guided tutorial: -* [tutorial](/microbit/lessons/landslide/tutorial) +* [tutorial](/lessons/landslide/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/letter-up.md b/docs/reference/js/lessons/letter-up.md index 7984e543..7c49d211 100644 --- a/docs/reference/js/lessons/letter-up.md +++ b/docs/reference/js/lessons/letter-up.md @@ -8,7 +8,7 @@ String Functions ## Quick Links -* [tutorial](/microbit/lessons/letter-up/tutorial) +* [tutorial](/lessons/letter-up/tutorial) ## Class @@ -38,20 +38,20 @@ Learn how to create a guessing game with **global variables** `var str: "this is ## Documentation -* **string** : [read more...](/microbit/reference/types/string) -* **string functions** : [read more...](/microbit/reference/types/string-functions) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **local variables** : [read more...](/microbit/reference/variables/var) -* **assignment operator** : [read more...](/microbit/reference/variables/assign) -* **on logo up** [read more...](/microbit/functions/on-logo-up) -* **on screen down** [read more...](/microbit/functions/on-screen-down) -* **on screen up** [read more...](/microbit/functions/on-screen-up) -* **math random** : [read more...](/microbit/js/math) -* **game library** [read more...](/microbit/js/game-library) +* **string** : [read more...](/reference/types/string) +* **string functions** : [read more...](/reference/types/string-functions) +* **show string** : [read more...](/reference/basic/show-string) +* **local variables** : [read more...](/reference/variables/var) +* **assignment operator** : [read more...](/reference/variables/assign) +* **on logo up** [read more...](/functions/on-logo-up) +* **on screen down** [read more...](/functions/on-screen-down) +* **on screen up** [read more...](/functions/on-screen-up) +* **math random** : [read more...](/js/math) +* **game library** [read more...](/js/game-library) ## Resources -* Activity: [tutorial](/microbit/lessons/letter-up/tutorial) +* Activity: [tutorial](/lessons/letter-up/tutorial) ## Objectives @@ -108,7 +108,7 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/letter-up/tutorial) +* [tutorial](/lessons/letter-up/tutorial) ## Intended follow on diff --git a/docs/reference/js/lessons/light-column-cascade/quiz.md b/docs/reference/js/lessons/light-column-cascade/quiz.md index 2b662e4b..b9ccf639 100644 --- a/docs/reference/js/lessons/light-column-cascade/quiz.md +++ b/docs/reference/js/lessons/light-column-cascade/quiz.md @@ -6,7 +6,7 @@ Learn how to create a blinking LED script with a for loop. ## Directions -Use this activity document to guide your work in the [light column cascade tutorial](/microbit/js/light-column-cascade/tutorial). +Use this activity document to guide your work in the [light column cascade tutorial](/js/light-column-cascade/tutorial). Answer the questions below while working on or after you finish the tutorial. Pay attention to the dialogs! diff --git a/docs/reference/js/lessons/line-of-fire.md b/docs/reference/js/lessons/line-of-fire.md index f3736cd3..730c5012 100644 --- a/docs/reference/js/lessons/line-of-fire.md +++ b/docs/reference/js/lessons/line-of-fire.md @@ -10,9 +10,9 @@ Functions ## Quick Links -* [tutorial](/microbit/lessons/line-of-fire/tutorial) -* [quiz](/microbit/lessons/line-of-fire/quiz) -* [quiz answers](/microbit/lessons/line-of-fire/quiz-answers) +* [tutorial](/lessons/line-of-fire/tutorial) +* [quiz](/lessons/line-of-fire/quiz) +* [quiz answers](/lessons/line-of-fire/quiz-answers) ## Class @@ -24,20 +24,20 @@ Learn how to create **functions**, `function()` that perform a specific task and ## Documentation -* **function** : [read more...](/microbit/js/function) -* **return** : [read more...](/microbit/js/return) -* **call** : [read more...](/microbit/js/call) -* **global variable** : [read more...](/microbit/js/data) -* **arithmetic operator** : [read more...](/microbit/reference/types/number) -* **Boolean** : [read more...](/microbit/reference/types/boolean) -* **forever** : [read more...](/microbit/reference/basic/forever) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **if** : [read more...](/microbit/reference/logic/if) -* **clear screen** : [read more...](/microbit/reference/basic/clear-screen) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **plot** : [read more...](/microbit/reference/led/plot) -* **unplot** : [read more...](/microbit/reference/led/unplot) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **function** : [read more...](/js/function) +* **return** : [read more...](/js/return) +* **call** : [read more...](/js/call) +* **global variable** : [read more...](/js/data) +* **arithmetic operator** : [read more...](/reference/types/number) +* **Boolean** : [read more...](/reference/types/boolean) +* **forever** : [read more...](/reference/basic/forever) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **if** : [read more...](/reference/logic/if) +* **clear screen** : [read more...](/reference/basic/clear-screen) +* **show string** : [read more...](/reference/basic/show-string) +* **plot** : [read more...](/reference/led/plot) +* **unplot** : [read more...](/reference/led/unplot) +* **pause** : [read more...](/reference/basic/pause) ## Objectives @@ -83,14 +83,14 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/line-of-fire/tutorial) +* [tutorial](/lessons/line-of-fire/tutorial) ## Extended Activity * time: 20 min. -* [quiz](/microbit/lessons/line-of-fire/quiz) +* [quiz](/lessons/line-of-fire/quiz) ## Homework -* Extended Activity: [quiz](/microbit/lessons/line-of-fire/quiz) +* Extended Activity: [quiz](/lessons/line-of-fire/quiz) diff --git a/docs/reference/js/lessons/line-of-fire/quiz-answers.md b/docs/reference/js/lessons/line-of-fire/quiz-answers.md index 0e3ff888..eb4f8de0 100644 --- a/docs/reference/js/lessons/line-of-fire/quiz-answers.md +++ b/docs/reference/js/lessons/line-of-fire/quiz-answers.md @@ -6,7 +6,7 @@ create a game that relies on precise instincts and timing reflexes. ## Directions -Use this activity document to guide your work in the [line of fire tutorial](/microbit/lessons/line-of-fire/tutorial) +Use this activity document to guide your work in the [line of fire tutorial](/lessons/line-of-fire/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/line-of-fire/quiz.md b/docs/reference/js/lessons/line-of-fire/quiz.md index 612d06e9..ab5574c3 100644 --- a/docs/reference/js/lessons/line-of-fire/quiz.md +++ b/docs/reference/js/lessons/line-of-fire/quiz.md @@ -6,7 +6,7 @@ create a game that relies on precise instincts and timing reflexes. ## Directions -Use this activity document to guide your work in the [line of fire tutorial](/microbit/lessons/line-of-fire/tutorial) +Use this activity document to guide your work in the [line of fire tutorial](/lessons/line-of-fire/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/logo-pointer/challenges.md b/docs/reference/js/lessons/logo-pointer/challenges.md index 6fe9fa02..e81c4602 100644 --- a/docs/reference/js/lessons/logo-pointer/challenges.md +++ b/docs/reference/js/lessons/logo-pointer/challenges.md @@ -6,7 +6,7 @@ These challenges will help you show arrows that point which way the logo is poin ### @video vimeo/134638098 -This [guided tutorial](/microbit/zysycw) will help you display an arrow pointing the direction the logo is oriented! +This [guided tutorial](/zysycw) will help you display an arrow pointing the direction the logo is oriented! Let's display and upward pointing arrow when the logo is up! diff --git a/docs/reference/js/lessons/looper.md b/docs/reference/js/lessons/looper.md index 50b4b3b7..188b4672 100644 --- a/docs/reference/js/lessons/looper.md +++ b/docs/reference/js/lessons/looper.md @@ -10,10 +10,10 @@ For Loop ## Quick links -* [tutorial](/microbit/lessons/looper/tutorial) -* [quiz](/microbit/lessons/looper/quiz) -* [quiz answers](/microbit/lessons/looper/quiz-answers) -* [challenges](/microbit/lessons/looper/challenges) +* [tutorial](/lessons/looper/tutorial) +* [quiz](/lessons/looper/quiz) +* [quiz answers](/lessons/looper/quiz-answers) +* [challenges](/lessons/looper/challenges) ## Class @@ -25,10 +25,10 @@ Learn how to control a blinking LED. We will be learning how to create a blinkin ## Documentation -* **for**: [read more...](/microbit/reference/loops/for) -* **show number**: [read more...](/microbit/reference/basic/show-number) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **arithmetic operators**: [read more...](/microbit/reference/types/number) +* **for**: [read more...](/reference/loops/for) +* **show number**: [read more...](/reference/basic/show-number) +* **pause**: [read more...](/reference/basic/pause) +* **arithmetic operators**: [read more...](/reference/types/number) ## Objectives @@ -66,15 +66,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 10 min. -* [tutorial](/microbit/lessons/looper/tutorial) -* [quiz](/microbit/lessons/looper/quiz) +* [tutorial](/lessons/looper/tutorial) +* [quiz](/lessons/looper/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/looper/challenges) +* [challenges](/lessons/looper/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/looper/challenges) +* Extended Activity: [challenges](/lessons/looper/challenges) diff --git a/docs/reference/js/lessons/looper/challenges.md b/docs/reference/js/lessons/looper/challenges.md index 5e239994..b915deff 100644 --- a/docs/reference/js/lessons/looper/challenges.md +++ b/docs/reference/js/lessons/looper/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the looper tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/looper/tutorial) +* [tutorial](/lessons/looper/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/looper/lesson.md b/docs/reference/js/lessons/looper/lesson.md index a640d9e2..6e99f25b 100644 --- a/docs/reference/js/lessons/looper/lesson.md +++ b/docs/reference/js/lessons/looper/lesson.md @@ -10,10 +10,10 @@ For loop - Blinking LED ## Quick links -* [tutorial](/microbit/lessons/looper/tutorial) -* [quiz](/microbit/lessons/looper/quiz) -* [quiz answers](/microbit/lessons/looper/quiz-answers) -* [challenges](/microbit/lessons/looper/challenges) +* [tutorial](/lessons/looper/tutorial) +* [quiz](/lessons/looper/quiz) +* [quiz answers](/lessons/looper/quiz-answers) +* [challenges](/lessons/looper/challenges) ## Class @@ -37,15 +37,15 @@ Learn how to control a blinking LED. We will be learning how to create a blinkin ## Documentation -* **plot**: [read more...](/microbit/reference/led/plot) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **for**: [read more...](/microbit/reference/loops/for) +* **plot**: [read more...](/reference/led/plot) +* **pause**: [read more...](/reference/basic/pause) +* **for**: [read more...](/reference/loops/for) ## Resources -* Activity: [tutorial](/microbit/lessons/looper/tutorial) -* Activity: [quiz](/microbit/lessons/looper/quiz) -* Extended Activity: [challenges](/microbit/lessons/looper/challenges) +* Activity: [tutorial](/lessons/looper/tutorial) +* Activity: [quiz](/lessons/looper/quiz) +* Extended Activity: [challenges](/lessons/looper/challenges) ## Objectives @@ -85,19 +85,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 10 min. -* [tutorial](/microbit/lessons/looper/tutorial) -* [quiz](/microbit/lessons/looper/quiz) +* [tutorial](/lessons/looper/tutorial) +* [quiz](/lessons/looper/quiz) * assessment opportunities: loops, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/looper/challenges) +* [challenges](/lessons/looper/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/looper/challenges) +* Extended Activity: [challenges](/lessons/looper/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/love-meter.md b/docs/reference/js/lessons/love-meter.md index fda01cfc..ec733a74 100644 --- a/docs/reference/js/lessons/love-meter.md +++ b/docs/reference/js/lessons/love-meter.md @@ -10,11 +10,11 @@ On Pin Pressed ## Quick Links -* [activity](/microbit/lessons/love-meter/activity) -* [challenges](/microbit/lessons/love-meter/challenges) -* [quiz](/microbit/lessons/love-meter/quiz) -* [quiz answers](/microbit/lessons/love-meter/quiz-answers) -* [tutorial](/microbit/lessons/love-meter/tutorial) +* [activity](/lessons/love-meter/activity) +* [challenges](/lessons/love-meter/challenges) +* [quiz](/lessons/love-meter/quiz) +* [quiz answers](/lessons/love-meter/quiz-answers) +* [tutorial](/lessons/love-meter/tutorial) ## Class @@ -26,14 +26,14 @@ Learn how to use the pins **pin pressed**, `input->on pin pressed` to run code w ## Documentation -* **on pin pressed** : [read more...](/microbit/reference/input/on-pin-pressed) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **Boolean** : [read more...](/microbit/reference/types/boolean) -* **math random** : [read more...](/microbit/js/math) -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **pause** : [read more...](/microbit/reference/basic/pause) -* **If** : [read more...](/microbit/reference/logic/if) -* **show string** : [read more...](/microbit/reference/basic/show-string) +* **on pin pressed** : [read more...](/reference/input/on-pin-pressed) +* **local variable** : [read more...](/reference/variables/var) +* **Boolean** : [read more...](/reference/types/boolean) +* **math random** : [read more...](/js/math) +* **show number** : [read more...](/reference/basic/show-number) +* **pause** : [read more...](/reference/basic/pause) +* **If** : [read more...](/reference/logic/if) +* **show string** : [read more...](/reference/basic/show-string) ## Objectives @@ -89,16 +89,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/love-meter/activity) -* [tutorial](/microbit/lessons/love-meter/tutorial) -* [quiz](/microbit/lessons/love-meter/quiz) +* [activity](/lessons/love-meter/activity) +* [tutorial](/lessons/love-meter/tutorial) +* [quiz](/lessons/love-meter/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/love-meter/challenges) +* [challenges](/lessons/love-meter/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/love-meter/challenges) +* Extended Activity: [challenges](/lessons/love-meter/challenges) diff --git a/docs/reference/js/lessons/love-meter/activity.md b/docs/reference/js/lessons/love-meter/activity.md index 7365c9dc..c0504a64 100644 --- a/docs/reference/js/lessons/love-meter/activity.md +++ b/docs/reference/js/lessons/love-meter/activity.md @@ -10,7 +10,7 @@ Welcome! This tutorial will help you create a love meter with the BBC micro:bit. ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. Begin by registering an event with `input->on pin pressed(PO)` to know when someone is holding pin ``P0`` and pin ``Gnd``. @@ -38,7 +38,7 @@ input.onPinPressed(TouchPin.P0, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/love-meter/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/love-meter/challenges)! ### ~ diff --git a/docs/reference/js/lessons/love-meter/challenges.md b/docs/reference/js/lessons/love-meter/challenges.md index 3c18e9ed..d55e4244 100644 --- a/docs/reference/js/lessons/love-meter/challenges.md +++ b/docs/reference/js/lessons/love-meter/challenges.md @@ -6,7 +6,7 @@ create a love meter with the BBC micro:bit #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/love-meter/tutorial) +* [tutorial](/lessons/love-meter/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/love-meter/quiz-answers.md b/docs/reference/js/lessons/love-meter/quiz-answers.md index 57e5152a..3b7ce6c6 100644 --- a/docs/reference/js/lessons/love-meter/quiz-answers.md +++ b/docs/reference/js/lessons/love-meter/quiz-answers.md @@ -2,7 +2,7 @@ The answers to the love meter quiz. -This is the answer key for the [love meter quiz](/microbit/lessons/love-meter/quiz). +This is the answer key for the [love meter quiz](/lessons/love-meter/quiz). ## 1. What does on pin pressed ("P0") do? diff --git a/docs/reference/js/lessons/love-meter/quiz.md b/docs/reference/js/lessons/love-meter/quiz.md index 129ccf1c..dbad14e3 100644 --- a/docs/reference/js/lessons/love-meter/quiz.md +++ b/docs/reference/js/lessons/love-meter/quiz.md @@ -6,7 +6,7 @@ Learn how to make a love meter that you can try with someone. ## Directions -Use this activity document to guide your work in the [love meter tutorial](/microbit/lessons/love-meter/tutorial). +Use this activity document to guide your work in the [love meter tutorial](/lessons/love-meter/tutorial). Answer the questions below while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/lucky-7.md b/docs/reference/js/lessons/lucky-7.md index ee56b80e..1da32ba3 100644 --- a/docs/reference/js/lessons/lucky-7.md +++ b/docs/reference/js/lessons/lucky-7.md @@ -10,11 +10,11 @@ Show Number ## Quick Links -* [activity](/microbit/lessons/lucky-7/activity) -* [quiz](/microbit/lessons/lucky-7/quiz) -* [quiz answers](/microbit/lessons/lucky-7/quiz-answers) -* [challenges](/microbit/lessons/lucky-7/challenges) -* [tutorial](/microbit/lessons/lucky-7/tutorial) +* [activity](/lessons/lucky-7/activity) +* [quiz](/lessons/lucky-7/quiz) +* [quiz answers](/lessons/lucky-7/quiz-answers) +* [challenges](/lessons/lucky-7/challenges) +* [tutorial](/lessons/lucky-7/tutorial) ## Class @@ -26,8 +26,8 @@ Learn how to display a number, `basic-> show number` to generate numbers. We wil ## Documentation -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **show number** : [read more...](/reference/basic/show-number) +* **pause** : [read more...](/reference/basic/pause) ## Objectives @@ -69,16 +69,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/lucky-7/activity) -* [tutorial](/microbit/lessons/lucky-7/tutorial) -* [quiz](/microbit/lessons/lucky-7/quiz) +* [activity](/lessons/lucky-7/activity) +* [tutorial](/lessons/lucky-7/tutorial) +* [quiz](/lessons/lucky-7/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/lucky-7/challenges) +* [challenges](/lessons/lucky-7/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/lucky-7/challenges) +* Extended Activity: [challenges](/lessons/lucky-7/challenges) diff --git a/docs/reference/js/lessons/lucky-7/activity.md b/docs/reference/js/lessons/lucky-7/activity.md index 6491f46e..f78b4630 100644 --- a/docs/reference/js/lessons/lucky-7/activity.md +++ b/docs/reference/js/lessons/lucky-7/activity.md @@ -20,7 +20,7 @@ basic.showNumber(7, 150) // *** ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/lucky-7/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/lucky-7/challenges)! ### ~ diff --git a/docs/reference/js/lessons/lucky-7/challenges.md b/docs/reference/js/lessons/lucky-7/challenges.md index 8ee73880..0007dba6 100644 --- a/docs/reference/js/lessons/lucky-7/challenges.md +++ b/docs/reference/js/lessons/lucky-7/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the lucky 7 tutorial. #docs ## Before we get started -Complete the [lucky 7](/microbit/lessons/lucky-7/activity) activity and your code will look like this: +Complete the [lucky 7](/lessons/lucky-7/activity) activity and your code will look like this: ``` basic.showNumber(7, 150) diff --git a/docs/reference/js/lessons/lucky-7/quiz-answers.md b/docs/reference/js/lessons/lucky-7/quiz-answers.md index c6528bb8..df21714b 100644 --- a/docs/reference/js/lessons/lucky-7/quiz-answers.md +++ b/docs/reference/js/lessons/lucky-7/quiz-answers.md @@ -2,7 +2,7 @@ Show a number on the BBC micro:bit. -This is the answer key for the [lucky 7 quiz](/microbit/lessons/lucky-7/quiz). +This is the answer key for the [lucky 7 quiz](/lessons/lucky-7/quiz). ## 1. Describe what `basic->show number` does? diff --git a/docs/reference/js/lessons/lucky-7/quiz.md b/docs/reference/js/lessons/lucky-7/quiz.md index bf5f5650..2dde2f55 100644 --- a/docs/reference/js/lessons/lucky-7/quiz.md +++ b/docs/reference/js/lessons/lucky-7/quiz.md @@ -6,7 +6,7 @@ Show a number on the BBC micro:bit. ## Directions -Use this activity document to guide your work in the [lucky 7 tutorial](/microbit/lessons/lucky-7/tutorial). +Use this activity document to guide your work in the [lucky 7 tutorial](/lessons/lucky-7/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/magic-8-ball/challenges.md b/docs/reference/js/lessons/magic-8-ball/challenges.md index f11bbe9a..c4c6eec8 100644 --- a/docs/reference/js/lessons/magic-8-ball/challenges.md +++ b/docs/reference/js/lessons/magic-8-ball/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the magic 8 tutorial #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/magic-8-ball/tutorial) +* [tutorial](/lessons/magic-8-ball/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/magic-8.md b/docs/reference/js/lessons/magic-8.md index 806d3cbd..1dc0670c 100644 --- a/docs/reference/js/lessons/magic-8.md +++ b/docs/reference/js/lessons/magic-8.md @@ -10,11 +10,11 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/magic-8/activity) -* [quiz](/microbit/lessons/magic-8/quiz) -* [quiz answers](/microbit/lessons/magic-8/quiz-answers) -* [challenges](/microbit/lessons/magic-8/challenges) -* [tutorial](/microbit/lessons/magic-8/tutorial) +* [activity](/lessons/magic-8/activity) +* [quiz](/lessons/magic-8/quiz) +* [quiz answers](/lessons/magic-8/quiz-answers) +* [challenges](/lessons/magic-8/challenges) +* [tutorial](/lessons/magic-8/tutorial) ## Class @@ -26,13 +26,13 @@ Learn how to creating **conditionals**, `if condition do` to conditionally run c ## Documentation -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **on shake** : [read more...](/microbit/reference/input/on-gesture) -* **clear screen** : [read more...](/microbit/reference/basic/clear-screen) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **random number** : [read more...](/microbit/js/math) -* **if** : [read more...](/microbit/reference/logic/if) +* **show string** : [read more...](/reference/basic/show-string) +* **show number** : [read more...](/reference/basic/show-number) +* **on shake** : [read more...](/reference/input/on-gesture) +* **clear screen** : [read more...](/reference/basic/clear-screen) +* **local variable** : [read more...](/reference/variables/var) +* **random number** : [read more...](/js/math) +* **if** : [read more...](/reference/logic/if) ## Objectives @@ -87,16 +87,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/magic-8/activity) -* [tutorial](/microbit/lessons/magic-8/tutorial) -* [quiz](/microbit/lessons/magic-8/quiz) +* [activity](/lessons/magic-8/activity) +* [tutorial](/lessons/magic-8/tutorial) +* [quiz](/lessons/magic-8/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/magic-8/challenges) +* [challenges](/lessons/magic-8/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/magic-8/challenges) +* Extended Activity: [challenges](/lessons/magic-8/challenges) diff --git a/docs/reference/js/lessons/magic-8/activity.md b/docs/reference/js/lessons/magic-8/activity.md index e80874b2..34ab2549 100644 --- a/docs/reference/js/lessons/magic-8/activity.md +++ b/docs/reference/js/lessons/magic-8/activity.md @@ -8,7 +8,7 @@ Welcome! This tutorial will help you create a magic 8 ball on the BBC micro:bit. ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. Show a string to instruct the user how to play Magic 8! The magic 8 ball can only answer true or false questions. @@ -108,7 +108,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/magic-8/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/magic-8/challenges)! ### ~ diff --git a/docs/reference/js/lessons/magic-8/challenges.md b/docs/reference/js/lessons/magic-8/challenges.md index 87a59ea4..e4f7f852 100644 --- a/docs/reference/js/lessons/magic-8/challenges.md +++ b/docs/reference/js/lessons/magic-8/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the magic 8 tutorial #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/magic-8-ball/tutorial) +* [tutorial](/lessons/magic-8-ball/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/magic-logo.md b/docs/reference/js/lessons/magic-logo.md index 2c1d09dd..53fb4b32 100644 --- a/docs/reference/js/lessons/magic-logo.md +++ b/docs/reference/js/lessons/magic-logo.md @@ -10,11 +10,11 @@ On Logo Up ## Quick Links -* [activity](/microbit/lessons/magic-logo/activity) -* [quiz](/microbit/lessons/magic-logo/quiz) -* [quiz answers](/microbit/lessons/magic-logo/quiz-answers) -* [challenges](/microbit/lessons/magic-logo/challenges) -* [tutorial](/microbit/lessons/magic-logo/tutorial) +* [activity](/lessons/magic-logo/activity) +* [quiz](/lessons/magic-logo/quiz) +* [quiz answers](/lessons/magic-logo/quiz-answers) +* [challenges](/lessons/magic-logo/challenges) +* [tutorial](/lessons/magic-logo/tutorial) ## Class @@ -26,9 +26,9 @@ Learn how to plot image **on logo up**, `input->on logo up` to run code when the ## Documentation -* **on logo up** : [read more...](/microbit/functions/on-logo-up) -* **show leds** : [read more...](/microbit/reference/basic/show-leds) -* **on logo down** : [read more...](/microbit/functions/on-logo-down) +* **on logo up** : [read more...](/functions/on-logo-up) +* **show leds** : [read more...](/reference/basic/show-leds) +* **on logo down** : [read more...](/functions/on-logo-down) ## Objectives @@ -69,15 +69,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/magic-logo/activity) -* [quiz](/microbit/lessons/magic-logo/quiz) +* [activity](/lessons/magic-logo/activity) +* [quiz](/lessons/magic-logo/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/magic-logo/challenges) +* [challenges](/lessons/magic-logo/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/magic-logo/challenges) +* Extended Activity: [challenges](/lessons/magic-logo/challenges) diff --git a/docs/reference/js/lessons/magic-logo/activity.md b/docs/reference/js/lessons/magic-logo/activity.md index a89bc42b..3a999863 100644 --- a/docs/reference/js/lessons/magic-logo/activity.md +++ b/docs/reference/js/lessons/magic-logo/activity.md @@ -35,7 +35,7 @@ Run your code and try to turn around the BBC micro:bit to see the **logo up** ev ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/magic-logo/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/magic-logo/challenges)! ### ~ diff --git a/docs/reference/js/lessons/magic-logo/challenges.md b/docs/reference/js/lessons/magic-logo/challenges.md index 6beb58aa..e8c8e650 100644 --- a/docs/reference/js/lessons/magic-logo/challenges.md +++ b/docs/reference/js/lessons/magic-logo/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the magic logo tutorial. #docs ## Before we get started -Complete the [magic logo](/microbit/lessons/magic-logo/activity) activity and your code will look like this: +Complete the [magic logo](/lessons/magic-logo/activity) activity and your code will look like this: ``` input.onLogoUp(() => { diff --git a/docs/reference/js/lessons/meteorite.md b/docs/reference/js/lessons/meteorite.md index 7273978e..25afbc7b 100644 --- a/docs/reference/js/lessons/meteorite.md +++ b/docs/reference/js/lessons/meteorite.md @@ -8,9 +8,9 @@ Functions ## Quick Links -* [tutorial](/microbit/lessons/meteorite/tutorial) -* [quiz](/microbit/lessons/meteorite/quiz) -* [quiz answers](/microbit/lessons/meteorite/quiz-answers) +* [tutorial](/lessons/meteorite/tutorial) +* [quiz](/lessons/meteorite/quiz) +* [quiz answers](/lessons/meteorite/quiz-answers) ## Class @@ -22,23 +22,23 @@ Learn how to create **functions**, `function()` that perform a specific task and ## Documentation -* **function** : [read more...](/microbit/js/function) -* **call** : [read more...](/microbit/js/call) -* **global variable** : [read more...](/microbit/js/data) -* **arithmetic operators** : [read more...](/microbit/reference/types/number) -* **math random** : [read more...](/microbit/js/math) -* **forever** : [read more...](/microbit/reference/basic/forever) -* **for** : [read more...](/microbit/reference/loops/for) -* **fade out** : [read more...](/microbit/reference/led/fade-out) -* **fade in** : [read more...](/microbit/reference/led/fade-in) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **if** : [read more...](/microbit/reference/logic/if) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **plot** : [read more...](/microbit/reference/led/plot) -* **plot all** : [read more...](/microbit/reference/led/plot-all) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **function** : [read more...](/js/function) +* **call** : [read more...](/js/call) +* **global variable** : [read more...](/js/data) +* **arithmetic operators** : [read more...](/reference/types/number) +* **math random** : [read more...](/js/math) +* **forever** : [read more...](/reference/basic/forever) +* **for** : [read more...](/reference/loops/for) +* **fade out** : [read more...](/reference/led/fade-out) +* **fade in** : [read more...](/reference/led/fade-in) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **if** : [read more...](/reference/logic/if) +* **show string** : [read more...](/reference/basic/show-string) +* **show number** : [read more...](/reference/basic/show-number) +* **show string** : [read more...](/reference/basic/show-string) +* **plot** : [read more...](/reference/led/plot) +* **plot all** : [read more...](/reference/led/plot-all) +* **pause** : [read more...](/reference/basic/pause) ## Objectives @@ -86,14 +86,14 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/meteorite/tutorial) +* [tutorial](/lessons/meteorite/tutorial) ## Extended Activity * time: 20 min. -* [quiz](/microbit/lessons/meteorite/quiz) +* [quiz](/lessons/meteorite/quiz) ## Homework -* Extended Activity: [quiz](/microbit/lessons/meteorite/quiz) +* Extended Activity: [quiz](/lessons/meteorite/quiz) diff --git a/docs/reference/js/lessons/meteorite/quiz-answers.md b/docs/reference/js/lessons/meteorite/quiz-answers.md index 60dd255c..944b5a46 100644 --- a/docs/reference/js/lessons/meteorite/quiz-answers.md +++ b/docs/reference/js/lessons/meteorite/quiz-answers.md @@ -6,7 +6,7 @@ create the game meteorite. ## Directions -This is the answer key for the [meteorite quiz](/microbit/lessons/meteorite/quiz) +This is the answer key for the [meteorite quiz](/lessons/meteorite/quiz) ## 1. Write the code that sets up the position variables of meteorite 1. (Hint: look inside the function "initialize game".) diff --git a/docs/reference/js/lessons/meteorite/quiz.md b/docs/reference/js/lessons/meteorite/quiz.md index 0bbe2e8d..4b4f5a6e 100644 --- a/docs/reference/js/lessons/meteorite/quiz.md +++ b/docs/reference/js/lessons/meteorite/quiz.md @@ -6,7 +6,7 @@ create the game meteorite. ## Directions -Use this activity document to guide your work in the [meteorite tutorial](/microbit/lessons/meteorite/tutorial) +Use this activity document to guide your work in the [meteorite tutorial](/lessons/meteorite/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/minesweeper.md b/docs/reference/js/lessons/minesweeper.md index a19249dc..2e8a6150 100644 --- a/docs/reference/js/lessons/minesweeper.md +++ b/docs/reference/js/lessons/minesweeper.md @@ -10,9 +10,9 @@ Global Variables ## Quick Links -* [tutorial](/microbit/lessons/minesweeper/tutorial) -* [quiz](/microbit/lessons/minesweeper/quiz) -* [quiz answers](/microbit/lessons/minesweeper/quiz-answers) +* [tutorial](/lessons/minesweeper/tutorial) +* [quiz](/lessons/minesweeper/quiz) +* [quiz answers](/lessons/minesweeper/quiz-answers) ## Class @@ -41,19 +41,19 @@ Learn how to create a minesweeper game with **plot**, `led->plot` , **unplot**, ## Documentation -* **global variables** : [read more...](/microbit/js/data) -* **math random number** : [read more...](/microbit/js/math) -* **plot** : [read more...](/microbit/reference/led/plot) -* **unplot** : [read more...](/microbit/reference/led/unplot) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **if** : [read more...](/microbit/reference/logic/if) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **global variables** : [read more...](/js/data) +* **math random number** : [read more...](/js/math) +* **plot** : [read more...](/reference/led/plot) +* **unplot** : [read more...](/reference/led/unplot) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **if** : [read more...](/reference/logic/if) +* **show string** : [read more...](/reference/basic/show-string) +* **pause** : [read more...](/reference/basic/pause) ## Resources -* Activity: [tutorial](/microbit/lessons/minesweeper/tutorial) -* Activity: [quiz](/microbit/lessons/minesweeper/quiz) +* Activity: [tutorial](/lessons/minesweeper/tutorial) +* Activity: [quiz](/lessons/minesweeper/quiz) ## Objectives @@ -107,6 +107,6 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/minesweeper/tutorial) -* [quiz](/microbit/lessons/minesweeper/quiz) +* [tutorial](/lessons/minesweeper/tutorial) +* [quiz](/lessons/minesweeper/quiz) diff --git a/docs/reference/js/lessons/minesweeper/quiz-answers.md b/docs/reference/js/lessons/minesweeper/quiz-answers.md index 33d2dd0f..b4b01533 100644 --- a/docs/reference/js/lessons/minesweeper/quiz-answers.md +++ b/docs/reference/js/lessons/minesweeper/quiz-answers.md @@ -6,7 +6,7 @@ make a game to test your memory for placing a LED mine then finding the hidden L ## Directions -Use this activity document to guide your work in the [minesweeper tutorial](/microbit/lessons/minesweeper/tutorial). +Use this activity document to guide your work in the [minesweeper tutorial](/lessons/minesweeper/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/minesweeper/quiz.md b/docs/reference/js/lessons/minesweeper/quiz.md index 52f0c93e..e8dc0476 100644 --- a/docs/reference/js/lessons/minesweeper/quiz.md +++ b/docs/reference/js/lessons/minesweeper/quiz.md @@ -6,7 +6,7 @@ make a game to test your memory for placing a LED mine then finding the hidden L ## Directions -Use this activity document to guide your work in the [minesweeper tutorial](/microbit/lessons/minesweeper/tutorial). +Use this activity document to guide your work in the [minesweeper tutorial](/lessons/minesweeper/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/night-light.md b/docs/reference/js/lessons/night-light.md index 5321cc70..e928017b 100644 --- a/docs/reference/js/lessons/night-light.md +++ b/docs/reference/js/lessons/night-light.md @@ -10,11 +10,11 @@ Set Brightness ## Quick Links -* [activity](/microbit/lessons/night-light/activity) -* [quiz](/microbit/lessons/night-light/quiz) -* [quiz answers](/microbit/lessons/night-light/quiz-answers) -* [challenges](/microbit/lessons/night-light/challenges) -* [tutorial](/microbit/lessons/night-light/tutorial) +* [activity](/lessons/night-light/activity) +* [quiz](/lessons/night-light/quiz) +* [quiz answers](/lessons/night-light/quiz-answers) +* [challenges](/lessons/night-light/challenges) +* [tutorial](/lessons/night-light/tutorial) ## Class @@ -26,9 +26,9 @@ Learn how to **set brightness** of an image `led->set brightness` to set the bri ## Documentation -* **set brightness** : [read more...](/microbit/reference/led/set-brightness) -* **plot all** : [read more...](/microbit/reference/led/plot-all) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) +* **set brightness** : [read more...](/reference/led/set-brightness) +* **plot all** : [read more...](/reference/led/plot-all) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) ## Objectives @@ -61,15 +61,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/night-light/activity) -* [quiz](/microbit/lessons/night-light/quiz) +* [activity](/lessons/night-light/activity) +* [quiz](/lessons/night-light/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/night-light/challenges) +* [challenges](/lessons/night-light/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/night-light/challenges) +* Extended Activity: [challenges](/lessons/night-light/challenges) diff --git a/docs/reference/js/lessons/night-light/activity.md b/docs/reference/js/lessons/night-light/activity.md index 32a17f14..19d847ae 100644 --- a/docs/reference/js/lessons/night-light/activity.md +++ b/docs/reference/js/lessons/night-light/activity.md @@ -39,7 +39,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/night-light/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/night-light/challenges)! ### ~ diff --git a/docs/reference/js/lessons/night-light/challenges.md b/docs/reference/js/lessons/night-light/challenges.md index 7a45d212..52bfff07 100644 --- a/docs/reference/js/lessons/night-light/challenges.md +++ b/docs/reference/js/lessons/night-light/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the night light tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/night-light/tutorial) +* [tutorial](/lessons/night-light/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/number-psych/quiz-answers.md b/docs/reference/js/lessons/number-psych/quiz-answers.md index 9594e754..3115d7b2 100644 --- a/docs/reference/js/lessons/number-psych/quiz-answers.md +++ b/docs/reference/js/lessons/number-psych/quiz-answers.md @@ -6,7 +6,7 @@ a 4-player game in which each player must outwit his opponents. ## Directions -Use this activity document to guide your work in the [number psych console tutorial](/microbit/lessons/number-psych-console/tutorial) and the [number psych controller tutorial](/microbit/lessons/number-psych-controller/tutorial). +Use this activity document to guide your work in the [number psych console tutorial](/lessons/number-psych-console/tutorial) and the [number psych controller tutorial](/lessons/number-psych-controller/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/number-psych/quiz.md b/docs/reference/js/lessons/number-psych/quiz.md index 0e387e98..292a4f5b 100644 --- a/docs/reference/js/lessons/number-psych/quiz.md +++ b/docs/reference/js/lessons/number-psych/quiz.md @@ -6,7 +6,7 @@ a 4-player game in which each player must outwit his opponents. ## Directions -Use this activity document to guide your work in the [number psych console tutorial](/microbit/lessons/number-psych-console/tutorial) and the [number psych controller tutorial](/microbit/lessons/number-psych-controller/tutorial). +Use this activity document to guide your work in the [number psych console tutorial](/lessons/number-psych-console/tutorial) and the [number psych controller tutorial](/lessons/number-psych-controller/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/offset-image.md b/docs/reference/js/lessons/offset-image.md index 7899cbe4..45edb281 100644 --- a/docs/reference/js/lessons/offset-image.md +++ b/docs/reference/js/lessons/offset-image.md @@ -10,10 +10,10 @@ shift an image horizontally across the display with offset. ## Quick Links -* [tutorial](/microbit/lessons/offset-image/tutorial) -* [quiz](/microbit/lessons/offset-image/quiz) -* [quiz answers](/microbit/lessons/offset-image/quiz-answers) -* [challenges](/microbit/lessons/offset-image/challenges) +* [tutorial](/lessons/offset-image/tutorial) +* [quiz](/lessons/offset-image/quiz) +* [quiz answers](/lessons/offset-image/quiz-answers) +* [challenges](/lessons/offset-image/challenges) ## Class @@ -45,20 +45,20 @@ Learn how to offset image with a conditional **If**, `if condition then` to run ## Documentation -* ** global variables ** : [read more...](/microbit/js/data) -* ** assignment operator ** : [read more...](/microbit/reference/variables/assign) -* ** forever ** : [read more...](/microbit/reference/basic/forever) -* ** If ** : [read more...](/microbit/reference/logic/if) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **create image** : [read more...](/microbit/reference/images/create-image) -* **show image** : [read more...](/microbit/reference/images/show-image) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) +* ** global variables ** : [read more...](/js/data) +* ** assignment operator ** : [read more...](/reference/variables/assign) +* ** forever ** : [read more...](/reference/basic/forever) +* ** If ** : [read more...](/reference/logic/if) +* **show string** : [read more...](/reference/basic/show-string) +* **create image** : [read more...](/reference/images/create-image) +* **show image** : [read more...](/reference/images/show-image) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) ## Resources -* Activity: [tutorial](/microbit/lessons/offset-image/tutorial) -* Activity: [quiz](/microbit/lessons/offset-image/quiz) -* Extended Activity: [challenges](/microbit/lessons/offset-image/challenges) +* Activity: [tutorial](/lessons/offset-image/tutorial) +* Activity: [quiz](/lessons/offset-image/quiz) +* Extended Activity: [challenges](/lessons/offset-image/challenges) ## Objectives @@ -119,17 +119,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/offset-image/tutorial) -* [quiz](/microbit/lessons/offset-image/quiz) +* [tutorial](/lessons/offset-image/tutorial) +* [quiz](/lessons/offset-image/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/offset-image/challenges) +* [challenges](/lessons/offset-image/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/offset-image/challenges) +* Extended Activity: [challenges](/lessons/offset-image/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/on-fall/challenges.md b/docs/reference/js/lessons/on-fall/challenges.md index e2ce9c4e..7dc8115b 100644 --- a/docs/reference/js/lessons/on-fall/challenges.md +++ b/docs/reference/js/lessons/on-fall/challenges.md @@ -65,5 +65,5 @@ Create a loop so that the micro:bit alternates between the exclamation point and ## See Also -[on shake](/microbit/reference/input/on-gesture) +[on shake](/reference/input/on-gesture) diff --git a/docs/reference/js/lessons/on-logo-up-and-down/challenges.md b/docs/reference/js/lessons/on-logo-up-and-down/challenges.md index 05c82b7a..f7c0f60b 100644 --- a/docs/reference/js/lessons/on-logo-up-and-down/challenges.md +++ b/docs/reference/js/lessons/on-logo-up-and-down/challenges.md @@ -4,7 +4,7 @@ My script. #docs **Challenge 0** -This [guided tutorial](/microbit/zysycw) will help you display an arrow pointing the direction the logo is orientated! +This [guided tutorial](/zysycw) will help you display an arrow pointing the direction the logo is orientated! Let's display and upward pointing arrow when the logo is up! diff --git a/docs/reference/js/lessons/on-shake/challenges.md b/docs/reference/js/lessons/on-shake/challenges.md index 94646b1d..30043a3e 100644 --- a/docs/reference/js/lessons/on-shake/challenges.md +++ b/docs/reference/js/lessons/on-shake/challenges.md @@ -6,7 +6,7 @@ These challenges will allow you to create and display a flipping image of a bird ### @video vimeo/134449611 -Greetings! This [guided tutorial](/microbit/lessons/flipping-bird/tutorial) will begin to show you how to flip a bird. +Greetings! This [guided tutorial](/lessons/flipping-bird/tutorial) will begin to show you how to flip a bird. ``` counter = 0 diff --git a/docs/reference/js/lessons/ornament-chain/activity.md b/docs/reference/js/lessons/ornament-chain/activity.md index d02c8035..ac07b5ce 100644 --- a/docs/reference/js/lessons/ornament-chain/activity.md +++ b/docs/reference/js/lessons/ornament-chain/activity.md @@ -75,6 +75,6 @@ Your ornament chain is ready! ### Step 10 -* Connect the first BBC micro:bit to your computer using your USB cable and run the [ornament chain](/microbit/rnvpgo) script on it. -* Connect the second BBC micro:bit to your computer using your USB cable and run the [ornament chain](/microbit/rnvpgo) script on it. +* Connect the first BBC micro:bit to your computer using your USB cable and run the [ornament chain](/rnvpgo) script on it. +* Connect the second BBC micro:bit to your computer using your USB cable and run the [ornament chain](/rnvpgo) script on it. * The first person and second person take turns pressing button A to start the ornament chain game! diff --git a/docs/reference/js/lessons/pong.md b/docs/reference/js/lessons/pong.md index 8fa797fb..69af3a0b 100644 --- a/docs/reference/js/lessons/pong.md +++ b/docs/reference/js/lessons/pong.md @@ -10,9 +10,9 @@ Functions ## Quick Links -* [tutorial](/microbit/lessons/pong/tutorial) -* [quiz](/microbit/lessons/pong/quiz) -* [quiz answers](/microbit/lessons/pong/quiz-answers) +* [tutorial](/lessons/pong/tutorial) +* [quiz](/lessons/pong/quiz) +* [quiz answers](/lessons/pong/quiz-answers) ## Class @@ -42,25 +42,25 @@ Learn how to create **functions**, `function()` that perform a specific task and ## Documentation -* **function** : [read more...](/microbit/js/function) -* **return** : [read more...](/microbit/js/return) -* **call** : [read more...](/microbit/js/call) -* **global variable** : [read more...](/microbit/js/data) -* **arithmetic operator** : [read more...](/microbit/reference/types/number) +* **function** : [read more...](/js/function) +* **return** : [read more...](/js/return) +* **call** : [read more...](/js/call) +* **global variable** : [read more...](/js/data) +* **arithmetic operator** : [read more...](/reference/types/number) * **Boolean** : [/td/Boolean]() -* **forever** : [read more...](/microbit/reference/basic/forever) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **if** : [read more...](/microbit/reference/logic/if) -* **clear screen** : [read more...](/microbit/reference/basic/clear-screen) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **plot** : [read more...](/microbit/reference/led/plot) -* **unplot** : [read more...](/microbit/reference/led/unplot) -* **pause** : [read more...](/microbit/reference/basic/pause) +* **forever** : [read more...](/reference/basic/forever) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **if** : [read more...](/reference/logic/if) +* **clear screen** : [read more...](/reference/basic/clear-screen) +* **show string** : [read more...](/reference/basic/show-string) +* **plot** : [read more...](/reference/led/plot) +* **unplot** : [read more...](/reference/led/unplot) +* **pause** : [read more...](/reference/basic/pause) ## Resources -* Activity: [tutorial](/microbit/lessons/pong/tutorial) -* Activity: [quiz](/microbit/lessons/pong/quiz) +* Activity: [tutorial](/lessons/pong/tutorial) +* Activity: [quiz](/lessons/pong/quiz) ## Objectives @@ -118,16 +118,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/pong/tutorial) +* [tutorial](/lessons/pong/tutorial) ## Extended Activity * time: 20 min. -* [quiz](/microbit/lessons/pong/quiz) +* [quiz](/lessons/pong/quiz) ## Homework -* Extended Activity: [quiz](/microbit/lessons/pong/quiz) +* Extended Activity: [quiz](/lessons/pong/quiz) ## Intended follow on diff --git a/docs/reference/js/lessons/pong/quiz-answers.md b/docs/reference/js/lessons/pong/quiz-answers.md index dc6f4026..6fc1fa51 100644 --- a/docs/reference/js/lessons/pong/quiz-answers.md +++ b/docs/reference/js/lessons/pong/quiz-answers.md @@ -6,7 +6,7 @@ create the game Pong. ## Directions -Use this activity document to guide your work in the [pong tutorial](/microbit/lessons/pong/tutorial) +Use this activity document to guide your work in the [pong tutorial](/lessons/pong/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/pong/quiz.md b/docs/reference/js/lessons/pong/quiz.md index 0235103c..e049ac85 100644 --- a/docs/reference/js/lessons/pong/quiz.md +++ b/docs/reference/js/lessons/pong/quiz.md @@ -6,7 +6,7 @@ create the game Pong. ## Directions -Use this activity document to guide your work in the [pong tutorial](/microbit/lessons/pong/tutorial) +Use this activity document to guide your work in the [pong tutorial](/lessons/pong/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/prank-wifi-app/challenges.md b/docs/reference/js/lessons/prank-wifi-app/challenges.md index 6906cee2..8a33e1ec 100644 --- a/docs/reference/js/lessons/prank-wifi-app/challenges.md +++ b/docs/reference/js/lessons/prank-wifi-app/challenges.md @@ -6,7 +6,7 @@ My script. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/prank-wifi-app/tutorial) +* [tutorial](/lessons/prank-wifi-app/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/return/challenges.md b/docs/reference/js/lessons/return/challenges.md index 8241cbc5..efcfe8eb 100644 --- a/docs/reference/js/lessons/return/challenges.md +++ b/docs/reference/js/lessons/return/challenges.md @@ -4,7 +4,7 @@ This script will teach you how to create a function and use an output parameter. ### Challenge 0 -Welcome! This [guided tutorial](/microbit/lessons/return/tutorial) will help you code the following script! +Welcome! This [guided tutorial](/lessons/return/tutorial) will help you code the following script! ``` let original1 = 5 diff --git a/docs/reference/js/lessons/rock-paper-scissors.md b/docs/reference/js/lessons/rock-paper-scissors.md index 45f957f7..42ef1efe 100644 --- a/docs/reference/js/lessons/rock-paper-scissors.md +++ b/docs/reference/js/lessons/rock-paper-scissors.md @@ -10,9 +10,9 @@ Local Variables ## Quick Links -* [activity](/microbit/lessons/rock-paper-scissors/activity) -* [challenges](/microbit/lessons/rock-paper-scissors/challenges) -* [tutorial](/microbit/lessons/rock-paper-scissors/tutorial) +* [activity](/lessons/rock-paper-scissors/activity) +* [challenges](/lessons/rock-paper-scissors/challenges) +* [tutorial](/lessons/rock-paper-scissors/tutorial) ## Class @@ -24,14 +24,14 @@ Learn how to create a **local variable**, `var t :=time` where you can store dat ## Documentation -* **on shake** : [read more...](/microbit/reference/input/on-gesture) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **create image** : [read more...](/microbit/reference/images/create-image) -* **math random** : [read more...](/microbit/js/math) -* **show image** : [read more...](/microbit/reference/images/show-image) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **show string** : [read more...](/microbit/reference/basic/show-string) -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **on shake** : [read more...](/reference/input/on-gesture) +* **local variable** : [read more...](/reference/variables/var) +* **create image** : [read more...](/reference/images/create-image) +* **math random** : [read more...](/js/math) +* **show image** : [read more...](/reference/images/show-image) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **show string** : [read more...](/reference/basic/show-string) +* **show number** : [read more...](/reference/basic/show-number) ## Objectives @@ -81,15 +81,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/rock-paper-scissors/activity) -* [tutorial](/microbit/lessons/rock-paper-scissors/tutorial) +* [activity](/lessons/rock-paper-scissors/activity) +* [tutorial](/lessons/rock-paper-scissors/tutorial) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/rock-paper-scissors/challenges) +* [challenges](/lessons/rock-paper-scissors/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/rock-paper-scissors/challenges) +* Extended Activity: [challenges](/lessons/rock-paper-scissors/challenges) diff --git a/docs/reference/js/lessons/rock-paper-scissors/activity.md b/docs/reference/js/lessons/rock-paper-scissors/activity.md index 073fe47a..f872de9d 100644 --- a/docs/reference/js/lessons/rock-paper-scissors/activity.md +++ b/docs/reference/js/lessons/rock-paper-scissors/activity.md @@ -10,7 +10,7 @@ Welcome! This tutorial will help you create a game of rock paper scissors with t ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. We want the BBC micro:bit to choose rock, paper, or scissors when it is shaken. Let's begin by creating an `input->on shake` condition so the micro:bit will run code when it is shaken. @@ -50,7 +50,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/rock-paper-scissors/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/rock-paper-scissors/challenges)! ### ~ diff --git a/docs/reference/js/lessons/rock-paper-scissors/challenges.md b/docs/reference/js/lessons/rock-paper-scissors/challenges.md index 2bdacb6e..fb568ffd 100644 --- a/docs/reference/js/lessons/rock-paper-scissors/challenges.md +++ b/docs/reference/js/lessons/rock-paper-scissors/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the rock paper scissors tutorial. #docs ## Before we get started -Complete the following [guided activity](/microbit/lessons/rock-paper-scissors/activity) , your code should look like this: +Complete the following [guided activity](/lessons/rock-paper-scissors/activity) , your code should look like this: ``` input.onGesture(Gesture.Shake, () => { diff --git a/docs/reference/js/lessons/rotating-animation.md b/docs/reference/js/lessons/rotating-animation.md index b46aa697..c271c63c 100644 --- a/docs/reference/js/lessons/rotating-animation.md +++ b/docs/reference/js/lessons/rotating-animation.md @@ -6,7 +6,7 @@ Create a rotating image with a while loop. Rotate images with a while loop. -* [tutorial](/microbit/lessons/rotation-pattern/tutorial) -* [quiz](/microbit/lessons/rotation-animation/quiz) -* [challenges](/microbit/lessons/rotation-animation/challenges) -* [lesson plan](/microbit/lessons/rotation-animation/lesson-plan) +* [tutorial](/lessons/rotation-pattern/tutorial) +* [quiz](/lessons/rotation-animation/quiz) +* [challenges](/lessons/rotation-animation/challenges) +* [lesson plan](/lessons/rotation-animation/lesson-plan) diff --git a/docs/reference/js/lessons/rotating-animation/lesson-plan.md b/docs/reference/js/lessons/rotating-animation/lesson-plan.md index 7538e086..8329887f 100644 --- a/docs/reference/js/lessons/rotating-animation/lesson-plan.md +++ b/docs/reference/js/lessons/rotating-animation/lesson-plan.md @@ -30,15 +30,15 @@ Learn how to create images that look like a rotating animation by using a while ## Documentation -* **global variables**: [read more...](/microbit/functions/data) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **forever**: [read more...](/microbit/reference/basic/forever) +* **global variables**: [read more...](/functions/data) +* **pause**: [read more...](/reference/basic/pause) +* **forever**: [read more...](/reference/basic/forever) ## Resources -* Activity: [tutorial](/microbit/lessons/rotating-pattern/tutorial) -* Activity: [quiz](/microbit/lessons/rotating-animation/quiz) -* Extended Activity: [challenges](/microbit/lessons/rotating-animation/challenges) +* Activity: [tutorial](/lessons/rotating-pattern/tutorial) +* Activity: [quiz](/lessons/rotating-animation/quiz) +* Extended Activity: [challenges](/lessons/rotating-animation/challenges) ## Objectives @@ -79,19 +79,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/rotating-animation/tutorial) -* [quiz](/microbit/lessons/rotating-animation/quiz) +* [tutorial](/lessons/rotating-animation/tutorial) +* [quiz](/lessons/rotating-animation/quiz) * assessment opportunities: forever, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/rotating-animation/challenges) +* [challenges](/lessons/rotating-animation/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/rotating-animation/challenges) +* Extended Activity: [challenges](/lessons/rotating-animation/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/rotating-animation/quiz.md b/docs/reference/js/lessons/rotating-animation/quiz.md index 4abc0051..15ae3fb5 100644 --- a/docs/reference/js/lessons/rotating-animation/quiz.md +++ b/docs/reference/js/lessons/rotating-animation/quiz.md @@ -6,7 +6,7 @@ Learn how to create a rotating image with a while loop. ## Directions -Use this activity document to guide your work in the [rotating animation tutorial](/microbit/js/tutorials/rotating-animation). +Use this activity document to guide your work in the [rotating animation tutorial](/js/tutorials/rotating-animation). Answer the questions below while working on or after you finish the tutorial. Pay attention to the dialogs! diff --git a/docs/reference/js/lessons/rotation-animation.md b/docs/reference/js/lessons/rotation-animation.md index 22d2b18b..bdd0c628 100644 --- a/docs/reference/js/lessons/rotation-animation.md +++ b/docs/reference/js/lessons/rotation-animation.md @@ -8,10 +8,10 @@ While Loop ## Quick links -* [tutorial](/microbit/lessons/rotation-animation/tutorial) -* [quiz](/microbit/lessons/rotation-animation/quiz) -* [quiz answers](/microbit/lessons/rotation-animation/quiz-answers) -* [challenges](/microbit/lessons/rotation-animation/challenges) +* [tutorial](/lessons/rotation-animation/tutorial) +* [quiz](/lessons/rotation-animation/quiz) +* [quiz answers](/lessons/rotation-animation/quiz-answers) +* [challenges](/lessons/rotation-animation/challenges) ## Class @@ -23,13 +23,13 @@ Learn how to create images that look like a rotating animation by using a while ## Documentation -* **global variable**: [read more...](/microbit/js/data) -* **assignment operator**: [read more...](/microbit/reference/variables/assign) -* **while**: [read more...](/microbit/js/while) -* **Boolean condition (for the while loop)** : [read more...](/microbit/reference/types/boolean) -* **on button pressed**: [read more...](/microbit/reference/input/on-button-pressed) -* **show animation**: [read more...](/microbit/reference/basic/show-animation) -* **pause**: [read more...](/microbit/reference/basic/pause) +* **global variable**: [read more...](/js/data) +* **assignment operator**: [read more...](/reference/variables/assign) +* **while**: [read more...](/js/while) +* **Boolean condition (for the while loop)** : [read more...](/reference/types/boolean) +* **on button pressed**: [read more...](/reference/input/on-button-pressed) +* **show animation**: [read more...](/reference/basic/show-animation) +* **pause**: [read more...](/reference/basic/pause) ## Objectives @@ -68,15 +68,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/rotation-animation/tutorial) -* [quiz](/microbit/lessons/rotation-animation/quiz) +* [tutorial](/lessons/rotation-animation/tutorial) +* [quiz](/lessons/rotation-animation/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/rotation-animation/challenges) +* [challenges](/lessons/rotation-animation/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/rotation-animation/challenges) +* Extended Activity: [challenges](/lessons/rotation-animation/challenges) diff --git a/docs/reference/js/lessons/rotation-animation/challenges.md b/docs/reference/js/lessons/rotation-animation/challenges.md index 48505b8c..ba4cfd73 100644 --- a/docs/reference/js/lessons/rotation-animation/challenges.md +++ b/docs/reference/js/lessons/rotation-animation/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the rotation animation tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/rotation-animation/tutorial) +* [tutorial](/lessons/rotation-animation/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/rotation-animation/lesson-plan.md b/docs/reference/js/lessons/rotation-animation/lesson-plan.md index 7c14baab..57e5b6fa 100644 --- a/docs/reference/js/lessons/rotation-animation/lesson-plan.md +++ b/docs/reference/js/lessons/rotation-animation/lesson-plan.md @@ -30,15 +30,15 @@ Learn how to create images that look like a rotating animation by using a while ## Documentation -* **global variables**: [read more...](/microbit/js/data) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **forever**: [read more...](/microbit/reference/basic/forever) +* **global variables**: [read more...](/js/data) +* **pause**: [read more...](/reference/basic/pause) +* **forever**: [read more...](/reference/basic/forever) ## Resources -* Activity: [tutorial](/microbit/lessons/rotation-animation/tutorial) -* Activity: [quiz](/microbit/lessons/rotation-animation/quiz) -* Extended Activity: [challenges](/microbit/lessons/rotation-animation/challenges) +* Activity: [tutorial](/lessons/rotation-animation/tutorial) +* Activity: [quiz](/lessons/rotation-animation/quiz) +* Extended Activity: [challenges](/lessons/rotation-animation/challenges) ## Objectives @@ -79,19 +79,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/rotation-animation/tutorial) -* [quiz](/microbit/lessons/rotation-animation/quiz) +* [tutorial](/lessons/rotation-animation/tutorial) +* [quiz](/lessons/rotation-animation/quiz) * assessment opportunities: forever, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/rotation-animation/challenges) +* [challenges](/lessons/rotation-animation/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/rotation-animation/challenges) +* Extended Activity: [challenges](/lessons/rotation-animation/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/runaway-pacman.md b/docs/reference/js/lessons/runaway-pacman.md index e9d8785c..68884af7 100644 --- a/docs/reference/js/lessons/runaway-pacman.md +++ b/docs/reference/js/lessons/runaway-pacman.md @@ -4,4 +4,4 @@ make a game to test hand-eye coordination. Make a game to test hand-eye coordination -* [tutorial](/microbit/lessons/runaway-pacman/tutorial) +* [tutorial](/lessons/runaway-pacman/tutorial) diff --git a/docs/reference/js/lessons/runaway-pacman/quiz-answers.md b/docs/reference/js/lessons/runaway-pacman/quiz-answers.md index 34eb8265..4c004f22 100644 --- a/docs/reference/js/lessons/runaway-pacman/quiz-answers.md +++ b/docs/reference/js/lessons/runaway-pacman/quiz-answers.md @@ -6,7 +6,7 @@ create a game that is inspired by the classic arcade game Pac Man. ## Directions -Use this activity document to guide your work in the [runaway pacman tutorial](/microbit/lessons/runaway-pacman/tutorial) +Use this activity document to guide your work in the [runaway pacman tutorial](/lessons/runaway-pacman/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/runaway-pacman/quiz.md b/docs/reference/js/lessons/runaway-pacman/quiz.md index ffb07e9d..4914634d 100644 --- a/docs/reference/js/lessons/runaway-pacman/quiz.md +++ b/docs/reference/js/lessons/runaway-pacman/quiz.md @@ -6,7 +6,7 @@ create a game that is inspired by the classic arcade game Pac Man. ## Directions -Use this activity document to guide your work in the [runaway pacman tutorial](/microbit/lessons/runaway-pacman/tutorial) +Use this activity document to guide your work in the [runaway pacman tutorial](/lessons/runaway-pacman/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/running-time/challenges.md b/docs/reference/js/lessons/running-time/challenges.md index 40ec6a1a..c02573d2 100644 --- a/docs/reference/js/lessons/running-time/challenges.md +++ b/docs/reference/js/lessons/running-time/challenges.md @@ -4,7 +4,7 @@ My script. #docs **Challenge 0** -Great job! You have successfully completed the [Running Time tutorial](/microbit/lessons/running-time/tutorial) . You have a forever loop that declares a variable in it that holds the running time in milliseconds of the micro:bit and then shows the seconds on the LED screen. +Great job! You have successfully completed the [Running Time tutorial](/lessons/running-time/tutorial) . You have a forever loop that declares a variable in it that holds the running time in milliseconds of the micro:bit and then shows the seconds on the LED screen. ``` basic.forever(() => { diff --git a/docs/reference/js/lessons/screen-up-and-down/challenges.md b/docs/reference/js/lessons/screen-up-and-down/challenges.md index 2c0886c8..c609be63 100644 --- a/docs/reference/js/lessons/screen-up-and-down/challenges.md +++ b/docs/reference/js/lessons/screen-up-and-down/challenges.md @@ -4,7 +4,7 @@ The on screen up function. **Challenge 0** -Congratulations! You have completed the [Screen Up/Down tutorial](/microbit/hqjwkb) . You should have an image of a heart created and shown when the screen is moved up. +Congratulations! You have completed the [Screen Up/Down tutorial](/hqjwkb) . You should have an image of a heart created and shown when the screen is moved up. ``` input.onScreenUp(() => { diff --git a/docs/reference/js/lessons/screen-wipe.md b/docs/reference/js/lessons/screen-wipe.md index 79efd157..f318c371 100644 --- a/docs/reference/js/lessons/screen-wipe.md +++ b/docs/reference/js/lessons/screen-wipe.md @@ -10,11 +10,11 @@ Clear Screen ## Quick Links -* [activity](/microbit/lessons/screen-wipe/activity) -* [quiz](/microbit/lessons/screen-wipe/quiz) -* [quiz answers](/microbit/lessons/screen-wipe/quiz-answers) -* [challenges](/microbit/lessons/screen-wipe/challenges) -* [tutorial](/microbit/lessons/screen-wipe/tutorial) +* [activity](/lessons/screen-wipe/activity) +* [quiz](/lessons/screen-wipe/quiz) +* [quiz answers](/lessons/screen-wipe/quiz-answers) +* [challenges](/lessons/screen-wipe/challenges) +* [tutorial](/lessons/screen-wipe/tutorial) ## Class @@ -37,15 +37,15 @@ Learn how to **clear screen**, `basic->clear screen` to turn off all the LED lig ## Documentation -* **show animation** : [read more...](/microbit/reference/basic/show-animation) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **clear screen** : [read more...](/microbit/reference/basic/clear-screen) +* **show animation** : [read more...](/reference/basic/show-animation) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **clear screen** : [read more...](/reference/basic/clear-screen) ## Resources -* Activity: [tutorial](/microbit/lessons/screen-wipe/tutorial) -* Activity: [quiz](/microbit/lessons/screen-wipe/quiz) -* Extended Activity: [challenges](/microbit/lessons/screen-wipe/challenges) +* Activity: [tutorial](/lessons/screen-wipe/tutorial) +* Activity: [quiz](/lessons/screen-wipe/quiz) +* Extended Activity: [challenges](/lessons/screen-wipe/challenges) ## Objectives @@ -91,17 +91,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/screen-wipe/tutorial) -* [quiz](/microbit/lessons/screen-wipe/quiz) +* [tutorial](/lessons/screen-wipe/tutorial) +* [quiz](/lessons/screen-wipe/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/screen-wipe/challenges) +* [challenges](/lessons/screen-wipe/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/screen-wipe/challenges) +* Extended Activity: [challenges](/lessons/screen-wipe/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/screen-wipe/activity.md b/docs/reference/js/lessons/screen-wipe/activity.md index 9c9f3f54..3f73bbdb 100644 --- a/docs/reference/js/lessons/screen-wipe/activity.md +++ b/docs/reference/js/lessons/screen-wipe/activity.md @@ -41,7 +41,7 @@ Run the script in the simulator or on the BBC micro:bit to see how this works! ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/screen-wipe/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/screen-wipe/challenges)! ### ~ diff --git a/docs/reference/js/lessons/screen-wipe/challenges.md b/docs/reference/js/lessons/screen-wipe/challenges.md index 4e3ec6b0..d2d643e0 100644 --- a/docs/reference/js/lessons/screen-wipe/challenges.md +++ b/docs/reference/js/lessons/screen-wipe/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the screen wipe tutorial. #docs ## Before we get started -Complete the [screen wipe](/microbit/lessons/screen-wipe) activity and your code will look like this: +Complete the [screen wipe](/lessons/screen-wipe) activity and your code will look like this: ``` basic.showAnimation(` diff --git a/docs/reference/js/lessons/screen-wipe/quiz-answers.md b/docs/reference/js/lessons/screen-wipe/quiz-answers.md index bb52e84f..4886d9a7 100644 --- a/docs/reference/js/lessons/screen-wipe/quiz-answers.md +++ b/docs/reference/js/lessons/screen-wipe/quiz-answers.md @@ -2,7 +2,7 @@ clear the screen by pressing the "A" button after an animation has been played. -This is the answer key for the [screen wipe quiz](/microbit/lessons/screen-wipe/quiz). +This is the answer key for the [screen wipe quiz](/lessons/screen-wipe/quiz). ## 1. What does the function "clear screen" do on the BBC micro:bit? diff --git a/docs/reference/js/lessons/screen-wipe/quiz.md b/docs/reference/js/lessons/screen-wipe/quiz.md index 82997aa8..ba44ec4c 100644 --- a/docs/reference/js/lessons/screen-wipe/quiz.md +++ b/docs/reference/js/lessons/screen-wipe/quiz.md @@ -6,7 +6,7 @@ clear the screen by pressing the "A" button after an animation has been played. ## Directions -Use this activity document to guide your work in the [screen wipe tutorial](/microbit/lessons/screen-wipe/tutorial) +Use this activity document to guide your work in the [screen wipe tutorial](/lessons/screen-wipe/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/set-brightness/challenges.md b/docs/reference/js/lessons/set-brightness/challenges.md index b1c1be3c..8abaf14e 100644 --- a/docs/reference/js/lessons/set-brightness/challenges.md +++ b/docs/reference/js/lessons/set-brightness/challenges.md @@ -6,7 +6,7 @@ These challenges will allow you to change the brightness of the micro:bit. docs ### @video vimeo/133782335 -[This tutorial](/microbit/lessons/set-brightness/tutorial) will show you how to set the brightness on the micro:bit. +[This tutorial](/lessons/set-brightness/tutorial) will show you how to set the brightness on the micro:bit. ``` led.setBrightness(255) diff --git a/docs/reference/js/lessons/show-number/challenges.md b/docs/reference/js/lessons/show-number/challenges.md index b5f9125e..ca608ada 100644 --- a/docs/reference/js/lessons/show-number/challenges.md +++ b/docs/reference/js/lessons/show-number/challenges.md @@ -4,7 +4,7 @@ My script. #docs ### Challenge 0 -Welcome! This [guided tutorial](/microbit/xvogbz) will help you show a number on the LED screen! +Welcome! This [guided tutorial](/xvogbz) will help you show a number on the LED screen! Show a number on the LED screen! One digit will display at a time, scrolling from left to right. diff --git a/docs/reference/js/lessons/show-string/challenges.md b/docs/reference/js/lessons/show-string/challenges.md index f7323230..f278b9b2 100644 --- a/docs/reference/js/lessons/show-string/challenges.md +++ b/docs/reference/js/lessons/show-string/challenges.md @@ -4,7 +4,7 @@ My script. #docs **Challenge 0** -Welcome! This [guided tutorial](/microbit/pxjkww) introduces the basic show string method on the micro:bit. +Welcome! This [guided tutorial](/pxjkww) introduces the basic show string method on the micro:bit. Let's show the string 'Hello' on the LED screen. The string will scroll one character at a time from left to right. diff --git a/docs/reference/js/lessons/smiley.md b/docs/reference/js/lessons/smiley.md index 4bed3b35..988a5acc 100644 --- a/docs/reference/js/lessons/smiley.md +++ b/docs/reference/js/lessons/smiley.md @@ -10,11 +10,11 @@ Show Animation ## Quick Links -* [activity](/microbit/lessons/smiley/activity) -* [quiz](/microbit/lessons/smiley/quiz) -* [quiz answers](/microbit/lessons/smiley/quiz-answers) -* [challenges](/microbit/lessons/smiley/challenges) -* [tutorial](/microbit/lessons/smiley/tutorial) +* [activity](/lessons/smiley/activity) +* [quiz](/lessons/smiley/quiz) +* [quiz answers](/lessons/smiley/quiz-answers) +* [challenges](/lessons/smiley/challenges) +* [tutorial](/lessons/smiley/tutorial) ## Class @@ -26,9 +26,9 @@ Learn how to **Show LEDs** on the screen. We will be learning show animation, sh ## Documentation -* **show animation** : [read more...](/microbit/reference/basic/show-animation) -* **show LEDs** : [read more...](/microbit/reference/basic/show-leds) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) +* **show animation** : [read more...](/reference/basic/show-animation) +* **show LEDs** : [read more...](/reference/basic/show-leds) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) ## Objectives @@ -73,15 +73,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/smiley/tutorial) -* [quiz](/microbit/lessons/smiley/quiz) +* [tutorial](/lessons/smiley/tutorial) +* [quiz](/lessons/smiley/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/smiley/challenges) +* [challenges](/lessons/smiley/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/smiley/challenges) +* Extended Activity: [challenges](/lessons/smiley/challenges) diff --git a/docs/reference/js/lessons/smiley/activity.md b/docs/reference/js/lessons/smiley/activity.md index 72d879f5..9add179c 100644 --- a/docs/reference/js/lessons/smiley/activity.md +++ b/docs/reference/js/lessons/smiley/activity.md @@ -24,7 +24,7 @@ basic.showAnimation(` ### ~avatar boothing -Excellent, you're ready to continue with the [challenges](/microbit/lessons/smiley/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/smiley/challenges)! ### ~ diff --git a/docs/reference/js/lessons/smiley/challenges.md b/docs/reference/js/lessons/smiley/challenges.md index a2c0dcce..69318212 100644 --- a/docs/reference/js/lessons/smiley/challenges.md +++ b/docs/reference/js/lessons/smiley/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the smiley tutorial. #docs ## Before we get started -Complete the [smiley activity](/microbit/lessons/smiley/activity) and your code will look like this: +Complete the [smiley activity](/lessons/smiley/activity) and your code will look like this: ``` basic.showAnimation(` diff --git a/docs/reference/js/lessons/smiley/quiz-answers.md b/docs/reference/js/lessons/smiley/quiz-answers.md index d57600a5..6f34be41 100644 --- a/docs/reference/js/lessons/smiley/quiz-answers.md +++ b/docs/reference/js/lessons/smiley/quiz-answers.md @@ -1,6 +1,6 @@ # smiley quiz answers. -This is the answer key for the [smiley quiz](/microbit/lessons/smiley/quiz). +This is the answer key for the [smiley quiz](/lessons/smiley/quiz). ## 1. Define 'show animation' : diff --git a/docs/reference/js/lessons/snowflake-fall.md b/docs/reference/js/lessons/snowflake-fall.md index 78c9a166..4c818bfc 100644 --- a/docs/reference/js/lessons/snowflake-fall.md +++ b/docs/reference/js/lessons/snowflake-fall.md @@ -10,11 +10,11 @@ Show Animation ## Quick Links -* [activity](/microbit/lessons/snowflake-fall/activity) -* [quiz](/microbit/lessons/snowflake-fall/quiz) -* [quiz answers](/microbit/lessons/snowflake-fall/quiz-answers) -* [challenges](/microbit/lessons/snowflake-fall/challenges) -* [tutorial](/microbit/lessons/snowflake-fall/tutorial) +* [activity](/lessons/snowflake-fall/activity) +* [quiz](/lessons/snowflake-fall/quiz) +* [quiz answers](/lessons/snowflake-fall/quiz-answers) +* [challenges](/lessons/snowflake-fall/challenges) +* [tutorial](/lessons/snowflake-fall/tutorial) ## Class @@ -26,8 +26,8 @@ Learn how to create **animation**, `basic->show animation` to display an animate ## Documentation -* **show animation** : [read more...](/microbit/reference/basic/show-animation) -* **forever** : [read more...](/microbit/reference/basic/forever) +* **show animation** : [read more...](/reference/basic/show-animation) +* **forever** : [read more...](/reference/basic/forever) ## Objectives @@ -60,15 +60,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/snowflake-fall/activity) -* [quiz](/microbit/lessons/snowflake-fall/quiz) +* [activity](/lessons/snowflake-fall/activity) +* [quiz](/lessons/snowflake-fall/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/snowflake-fall/challenges) +* [challenges](/lessons/snowflake-fall/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/snowflake-fall/challenges) +* Extended Activity: [challenges](/lessons/snowflake-fall/challenges) diff --git a/docs/reference/js/lessons/snowflake-fall/activity.md b/docs/reference/js/lessons/snowflake-fall/activity.md index ebf51a04..dde40e93 100644 --- a/docs/reference/js/lessons/snowflake-fall/activity.md +++ b/docs/reference/js/lessons/snowflake-fall/activity.md @@ -35,7 +35,7 @@ Run your code in the simulator or download it to your BBC micro:bit to see what ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/snowflake-fall/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/snowflake-fall/challenges)! ### ~ diff --git a/docs/reference/js/lessons/snowflake-fall/challenges.md b/docs/reference/js/lessons/snowflake-fall/challenges.md index fbc99e15..890d3b35 100644 --- a/docs/reference/js/lessons/snowflake-fall/challenges.md +++ b/docs/reference/js/lessons/snowflake-fall/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the snowflake fall tutorial. #docs ## Before we get started -Complete the [snowflake fall](/microbit/lessons/snowflake-fall/activity) activity and your code will look like this: +Complete the [snowflake fall](/lessons/snowflake-fall/activity) activity and your code will look like this: ``` basic.forever(() => { diff --git a/docs/reference/js/lessons/snowflake-fall/quiz-answer.md b/docs/reference/js/lessons/snowflake-fall/quiz-answer.md index def0ba30..23c0d2b6 100644 --- a/docs/reference/js/lessons/snowflake-fall/quiz-answer.md +++ b/docs/reference/js/lessons/snowflake-fall/quiz-answer.md @@ -6,7 +6,7 @@ create a snowflake fall animation. ## Directions -Use this activity document to guide your work in the [snowflake fall tutorial](/microbit/lessons/snowflake-fall/tutorial). +Use this activity document to guide your work in the [snowflake fall tutorial](/lessons/snowflake-fall/tutorial). Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/snowflake-fall/quiz-answers.md b/docs/reference/js/lessons/snowflake-fall/quiz-answers.md index f03da31d..3374cd3f 100644 --- a/docs/reference/js/lessons/snowflake-fall/quiz-answers.md +++ b/docs/reference/js/lessons/snowflake-fall/quiz-answers.md @@ -2,7 +2,7 @@ create a snowflake fall animation. -This is the answer key for the [snowflake fall quiz](/microbit/lessons/snowflake-fall/quiz). +This is the answer key for the [snowflake fall quiz](/lessons/snowflake-fall/quiz). ## 1. In reference to an animation, what is an "interval"? diff --git a/docs/reference/js/lessons/snowflake-fall/quiz.md b/docs/reference/js/lessons/snowflake-fall/quiz.md index 34d0cd29..2bbd316e 100644 --- a/docs/reference/js/lessons/snowflake-fall/quiz.md +++ b/docs/reference/js/lessons/snowflake-fall/quiz.md @@ -6,7 +6,7 @@ create a snowflake fall animation. ## Directions -Use the hints in the [snowflake fall activity](/microbit/lessons/snowflake-fall/activity) to answer this quiz! +Use the hints in the [snowflake fall activity](/lessons/snowflake-fall/activity) to answer this quiz! ## 1. In reference to an animation, what is an "interval"? diff --git a/docs/reference/js/lessons/spinner.md b/docs/reference/js/lessons/spinner.md index 4672ab81..5daf2269 100644 --- a/docs/reference/js/lessons/spinner.md +++ b/docs/reference/js/lessons/spinner.md @@ -8,11 +8,11 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/spinner/activity) -* [challenges](/microbit/lessons/spinner/challenges) -* [quiz](/microbit/lessons/spinner/quiz) -* [quiz answers](/microbit/lessons/spinner/quiz-answers) -* [tutorial](/microbit/lessons/spinner/tutorial) +* [activity](/lessons/spinner/activity) +* [challenges](/lessons/spinner/challenges) +* [quiz](/lessons/spinner/quiz) +* [quiz answers](/lessons/spinner/quiz-answers) +* [tutorial](/lessons/spinner/tutorial) ## Class @@ -24,12 +24,12 @@ Learn how to use an if statement **if condition do** to run code run code depend ## Documentation -* **on shake** : [read more...](/microbit/reference/input/on-gesture) -* **variable** : [read more...](/microbit/reference/variables/var) -* **assignment operator** : [read more...](/microbit/reference/variables/assignment) -* **math random** : [read more...](/microbit/js/math) -* **If** : [read more...](/microbit/reference/logic/if) -* **show LEDs** : [read more...](/microbit/reference/basic/show-leds) +* **on shake** : [read more...](/reference/input/on-gesture) +* **variable** : [read more...](/reference/variables/var) +* **assignment operator** : [read more...](/reference/variables/assignment) +* **math random** : [read more...](/js/math) +* **If** : [read more...](/reference/logic/if) +* **show LEDs** : [read more...](/reference/basic/show-leds) ## Objectives @@ -81,16 +81,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/spinner/activity) -* [tutorial](/microbit/lessons/spinner/tutorial) -* [quiz](/microbit/lessons/spinner/quiz) +* [activity](/lessons/spinner/activity) +* [tutorial](/lessons/spinner/tutorial) +* [quiz](/lessons/spinner/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/spinner/challenges) +* [challenges](/lessons/spinner/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/spinner/challenges) +* Extended Activity: [challenges](/lessons/spinner/challenges) diff --git a/docs/reference/js/lessons/spinner/activity.md b/docs/reference/js/lessons/spinner/activity.md index 97492b43..9cb56f34 100644 --- a/docs/reference/js/lessons/spinner/activity.md +++ b/docs/reference/js/lessons/spinner/activity.md @@ -2,7 +2,7 @@ create an arrow that randomly points to a player. #docs -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. Let's begin by adding an `input->on shake` condition to know when the BBC micro:bit is shaken. @@ -81,7 +81,7 @@ input.onGesture(Gesture.Shake, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/spinner/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/spinner/challenges)! ### ~ diff --git a/docs/reference/js/lessons/spinner/challenges.md b/docs/reference/js/lessons/spinner/challenges.md index 61d1d5c4..beb55722 100644 --- a/docs/reference/js/lessons/spinner/challenges.md +++ b/docs/reference/js/lessons/spinner/challenges.md @@ -6,7 +6,7 @@ create an arrow that randomly points to a player. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/spinner/tutorial) +* [tutorial](/lessons/spinner/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/strobe-light.md b/docs/reference/js/lessons/strobe-light.md index f05c775a..b79aad36 100644 --- a/docs/reference/js/lessons/strobe-light.md +++ b/docs/reference/js/lessons/strobe-light.md @@ -10,10 +10,10 @@ For Loop ## Quick links -* [tutorial](/microbit/lessons/strobe-light/tutorial) -* [quiz](/microbit/lessons/strobe-light/quiz) -* [quiz answers](/microbit/lessons/strobe-light/quiz-answers) -* [challenges](/microbit/lessons/strobe-light/challenges) +* [tutorial](/lessons/strobe-light/tutorial) +* [quiz](/lessons/strobe-light/quiz) +* [quiz answers](/lessons/strobe-light/quiz-answers) +* [challenges](/lessons/strobe-light/challenges) ## Class @@ -21,10 +21,10 @@ Year 7 ## Documentation -* **for loop**: [read more...](/microbit/reference/loops/for) -* **plot**: [read more...](/microbit/reference/led/plot) -* **unplot**: [read more...](/microbit/reference/led/unplot) -* **pause**: [read more...](/microbit/reference/basic/pause) +* **for loop**: [read more...](/reference/loops/for) +* **plot**: [read more...](/reference/led/plot) +* **unplot**: [read more...](/reference/led/unplot) +* **pause**: [read more...](/reference/basic/pause) ## Objectives @@ -62,15 +62,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 10 min. -* [tutorial](/microbit/lessons/strobe-light/tutorial) -* [quiz](/microbit/lessons/strobe-light/quiz) +* [tutorial](/lessons/strobe-light/tutorial) +* [quiz](/lessons/strobe-light/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/strobe-light/challenges) +* [challenges](/lessons/strobe-light/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/strobe-light/challenges) +* Extended Activity: [challenges](/lessons/strobe-light/challenges) diff --git a/docs/reference/js/lessons/strobe-light/challenges.md b/docs/reference/js/lessons/strobe-light/challenges.md index c9e8c5a6..59046e64 100644 --- a/docs/reference/js/lessons/strobe-light/challenges.md +++ b/docs/reference/js/lessons/strobe-light/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the strobe light tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/strobe-light/tutorial) +* [tutorial](/lessons/strobe-light/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/strobe-light/lesson-plan.md b/docs/reference/js/lessons/strobe-light/lesson-plan.md index 3a682e4b..eaebcf48 100644 --- a/docs/reference/js/lessons/strobe-light/lesson-plan.md +++ b/docs/reference/js/lessons/strobe-light/lesson-plan.md @@ -28,15 +28,15 @@ Learn how to control a blinking LED. We will be learning how to create a blinkin ## Documentation -* **plot**: [read more...](/microbit/reference/led/plot) -* **pause**: [read more...](/microbit/reference/basic/pause) -* **for loop**: [read more...](/microbit/reference/loops/for) +* **plot**: [read more...](/reference/led/plot) +* **pause**: [read more...](/reference/basic/pause) +* **for loop**: [read more...](/reference/loops/for) ## Resources -* Activity: [tutorial](/microbit/lessons/strobe-light/tutorial) -* Activity: [quiz](/microbit/lessons/strobe-light/quiz) -* Extended Activity: [challenges](/microbit/lessons/strobe-light/challenges) +* Activity: [tutorial](/lessons/strobe-light/tutorial) +* Activity: [quiz](/lessons/strobe-light/quiz) +* Extended Activity: [challenges](/lessons/strobe-light/challenges) ## Objectives @@ -80,19 +80,19 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 10 min. -* [tutorial](/microbit/lessons/strobe-light/tutorial) -* [quiz](/microbit/lessons/strobe-light/quiz) +* [tutorial](/lessons/strobe-light/tutorial) +* [quiz](/lessons/strobe-light/quiz) * assessment opportunities: loops, plot, pause, clear screen ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/strobe-light/challenges) +* [challenges](/lessons/strobe-light/challenges) * assessment opportunities: loops, plot, pause, clear screen ## Homework -* Extended Activity: [challenges](/microbit/lessons/strobe-light/challenges) +* Extended Activity: [challenges](/lessons/strobe-light/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/teach.md b/docs/reference/js/lessons/teach.md index 04c353d6..b85c128a 100644 --- a/docs/reference/js/lessons/teach.md +++ b/docs/reference/js/lessons/teach.md @@ -4,41 +4,41 @@ Overview of Touch Develop lesson instructions for the BBC micro:bit. ### @short Teach -The [lessons](/microbit/lessonss) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public and private education, where they will be available to Year 7 students. This page is a 'how to manual' for using the lessons in the classroom. +The [lessons](/lessonss) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public and private education, where they will be available to Year 7 students. This page is a 'how to manual' for using the lessons in the classroom. ### @section full ## Summary -The [lessons](/microbit/lessonss) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public education, where they will be available to Year 7 students. You will find comprehensive teacher training and preparation (lesson plans, videos, guided tutorials, quiz, challenges, and quiz answers). The curriculum has been organized for students from Beginner to Advanced lessons in an effort to build student confidence with computational thinking and coding concepts. The lesson has been constructed with a teacher lesson plan, video(s), tutorial, quiz, challenges, and quiz answers to demonstrate mastery with the Progression Pathways and Computational Thinking Framework. The lesson should occur on-site during a single instructional block. +The [lessons](/lessonss) promote computational thinking and computer science literacy from an early age and provide opportunities for learning these skills within the context of public education, where they will be available to Year 7 students. You will find comprehensive teacher training and preparation (lesson plans, videos, guided tutorials, quiz, challenges, and quiz answers). The curriculum has been organized for students from Beginner to Advanced lessons in an effort to build student confidence with computational thinking and coding concepts. The lesson has been constructed with a teacher lesson plan, video(s), tutorial, quiz, challenges, and quiz answers to demonstrate mastery with the Progression Pathways and Computational Thinking Framework. The lesson should occur on-site during a single instructional block. ## Lesson Resources 1) Lesson Plan -The lesson plan maps to the Progressions Pathways, Computing Curriculum, and QuickStart Computing Glossary. The lesson plan explains the concepts being taught for computational thinking while supporting your classroom instruction. A lesson plan also contains Quick Links to the lesson's tutorial, challenges, quiz, and quiz answers as shown in the [blink lesson plan](/microbit/lessons/blink). +The lesson plan maps to the Progressions Pathways, Computing Curriculum, and QuickStart Computing Glossary. The lesson plan explains the concepts being taught for computational thinking while supporting your classroom instruction. A lesson plan also contains Quick Links to the lesson's tutorial, challenges, quiz, and quiz answers as shown in the [blink lesson plan](/lessons/blink). 2) Tutorial -Expand your knowledge of programming with lots of great step-by-step tutorials. All the lessons come with interactive step-by-step tutorials that will drive the students to a complete, functional code. These tutorials are very directive to make sure that students keep progressing. When the tutorials are over, additional challenges are given to advance code through printed instructions. Tutorials contain supporting videos as shown with the [blink tutorial](/microbit/lessons/blink/tutorial). +Expand your knowledge of programming with lots of great step-by-step tutorials. All the lessons come with interactive step-by-step tutorials that will drive the students to a complete, functional code. These tutorials are very directive to make sure that students keep progressing. When the tutorials are over, additional challenges are given to advance code through printed instructions. Tutorials contain supporting videos as shown with the [blink tutorial](/lessons/blink/tutorial). ### @video td/videos/blink-0 3) Quiz -Expand your knowledge of computational thinking and computer science literacy with lots of great quizzes. All the tutorials come with quiz questions that will encourage the students to process and evaluate the concepts being introduced throughout the lesson. The quiz questions are mapped to the concepts being introduced in the lesson to make sure that students understand the computer science concepts. Quizzes apply the concepts taught in the tutorial as shown with the [blink quiz](/microbit/lessons/blink/quiz). +Expand your knowledge of computational thinking and computer science literacy with lots of great quizzes. All the tutorials come with quiz questions that will encourage the students to process and evaluate the concepts being introduced throughout the lesson. The quiz questions are mapped to the concepts being introduced in the lesson to make sure that students understand the computer science concepts. Quizzes apply the concepts taught in the tutorial as shown with the [blink quiz](/lessons/blink/quiz). 4) Quiz Answers -The quiz answers provide responses to the quiz. This will allow teachers to accurately review and grade student responses. Please review a sample of the quiz answers provided with the [blink quiz answers](/microbit/lessons/blink/quiz-answers). +The quiz answers provide responses to the quiz. This will allow teachers to accurately review and grade student responses. Please review a sample of the quiz answers provided with the [blink quiz answers](/lessons/blink/quiz-answers). 5) Challenges -After the student completes the quiz, tutorial, and compiles the code onto the BBC micro:bit, distribute the lesson’s challenges. Challenges are additional customising and exercises for the students. Challenges reinforce the concepts followed in the tutorial and quiz responses as shown with the [blink challenges](/microbit/lessons/blink/challenges). +After the student completes the quiz, tutorial, and compiles the code onto the BBC micro:bit, distribute the lesson’s challenges. Challenges are additional customising and exercises for the students. Challenges reinforce the concepts followed in the tutorial and quiz responses as shown with the [blink challenges](/lessons/blink/challenges). ## Teacher Directions -1) Teacher select a lesson from the [lessons](/microbit/lessonss) +1) Teacher select a lesson from the [lessons](/lessonss) 2) Print the quiz and the challenges for each student diff --git a/docs/reference/js/lessons/telegraph.md b/docs/reference/js/lessons/telegraph.md index 6878e10d..6fadf592 100644 --- a/docs/reference/js/lessons/telegraph.md +++ b/docs/reference/js/lessons/telegraph.md @@ -8,7 +8,7 @@ Telegraph ## Quick Links -* [activity](/microbit/lessons/telegraph/activity) +* [activity](/lessons/telegraph/activity) ## Class diff --git a/docs/reference/js/lessons/telegraph/activity.md b/docs/reference/js/lessons/telegraph/activity.md index b1980c0c..af25f639 100644 --- a/docs/reference/js/lessons/telegraph/activity.md +++ b/docs/reference/js/lessons/telegraph/activity.md @@ -71,6 +71,6 @@ Your telegraph is ready! ### Step 10 -* Connect the first BBC micro:bit to your computer using your USB cable and run the [telegraph](/microbit/xvmxti) script on it. -* Connect the second BBC micro:bit to your computer using your USB cable and run the [telegraph](/microbit/xvmxti) script on it. +* Connect the first BBC micro:bit to your computer using your USB cable and run the [telegraph](/xvmxti) script on it. +* Connect the second BBC micro:bit to your computer using your USB cable and run the [telegraph](/xvmxti) script on it. * The first person and second person take turns pressing button A to play the telegraph game! diff --git a/docs/reference/js/lessons/temperature.md b/docs/reference/js/lessons/temperature.md index 22295144..56bc6333 100644 --- a/docs/reference/js/lessons/temperature.md +++ b/docs/reference/js/lessons/temperature.md @@ -8,8 +8,8 @@ Temperature ## Quick Links -* [activity](/microbit/lessons/temperature/activity) -* [challenges](/microbit/lessons/temperature/challenges) +* [activity](/lessons/temperature/activity) +* [challenges](/lessons/temperature/challenges) ## Class @@ -21,11 +21,11 @@ Learn how to get the ambient temperature (degree Celsius °C). The temperature i ## Documentation -* **on shake** : [read more...](/microbit/reference/input/on-gesture) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **temperature** : [read more...](/microbit/reference/input/temperature) -* **show number** : [read more...](/microbit/reference/basic/show-number) -* **show string** : [read more...](/microbit/reference/basic/show-string) +* **on shake** : [read more...](/reference/input/on-gesture) +* **local variable** : [read more...](/reference/variables/var) +* **temperature** : [read more...](/reference/input/temperature) +* **show number** : [read more...](/reference/basic/show-number) +* **show string** : [read more...](/reference/basic/show-string) ## Objectives @@ -64,14 +64,14 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/temperature/activity) +* [activity](/lessons/temperature/activity) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/temperature/challenges) +* [challenges](/lessons/temperature/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/temperature/challenges) +* Extended Activity: [challenges](/lessons/temperature/challenges) diff --git a/docs/reference/js/lessons/the-hat-game.md b/docs/reference/js/lessons/the-hat-game.md index 7a837edc..2f307eaa 100644 --- a/docs/reference/js/lessons/the-hat-game.md +++ b/docs/reference/js/lessons/the-hat-game.md @@ -8,10 +8,10 @@ Functions ## Quick Links -* [tutorial](/microbit/lessons/the-hat-game/tutorial) -* [quiz](/microbit/lessons/the-hat-game/quiz) -* [quiz answers](/microbit/lessons/the-hat-game/quiz-answers) -* [challenges](/microbit/lessons/the-hat-game/challenges) +* [tutorial](/lessons/the-hat-game/tutorial) +* [quiz](/lessons/the-hat-game/quiz) +* [quiz answers](/lessons/the-hat-game/quiz-answers) +* [challenges](/lessons/the-hat-game/challenges) ## Class @@ -23,12 +23,12 @@ Learn how to create **functions**, `function()` as a unit of code that performs ## Documentation -* **functions** : [read more...](/microbit/js/function) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **for** : [read more...](/microbit/reference/loops/for) -* **if** : [read more...](/microbit/reference/logic/if) -* **mod** : [read more...](/microbit/js/math) -* **show animation** : [read more...](/microbit/reference/basic/show-animation) +* **functions** : [read more...](/js/function) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **for** : [read more...](/reference/loops/for) +* **if** : [read more...](/reference/logic/if) +* **mod** : [read more...](/js/math) +* **show animation** : [read more...](/reference/basic/show-animation) ## Objectives diff --git a/docs/reference/js/lessons/the-hat-game/challenges.md b/docs/reference/js/lessons/the-hat-game/challenges.md index c0ac1bd8..44dd1b7d 100644 --- a/docs/reference/js/lessons/the-hat-game/challenges.md +++ b/docs/reference/js/lessons/the-hat-game/challenges.md @@ -6,7 +6,7 @@ The all famous Hat Game -- one of 3 hats has the ball, which is revealed at the Complete the following guided tutorial: -* [tutorial](/microbit/lessons/the-hat-game/tutorial) +* [tutorial](/lessons/the-hat-game/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/the-hat-game/quiz-answers.md b/docs/reference/js/lessons/the-hat-game/quiz-answers.md index 43baae61..a9582a3d 100644 --- a/docs/reference/js/lessons/the-hat-game/quiz-answers.md +++ b/docs/reference/js/lessons/the-hat-game/quiz-answers.md @@ -6,7 +6,7 @@ The all famous Hat Game -- one of 3 hats has the ball, which is revealed at the ## Directions -Use this activity document to guide your work in the [the hat game tutorial](/microbit/lessons/the-hat-game/tutorial) +Use this activity document to guide your work in the [the hat game tutorial](/lessons/the-hat-game/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/the-hat-game/quiz.md b/docs/reference/js/lessons/the-hat-game/quiz.md index db0f4bce..7b8a4ac1 100644 --- a/docs/reference/js/lessons/the-hat-game/quiz.md +++ b/docs/reference/js/lessons/the-hat-game/quiz.md @@ -6,7 +6,7 @@ The all famous Hat Game -- one of 3 hats has the ball, which is revealed at the ## Directions -Use this activity document to guide your work in the [the hat game tutorial](/microbit/lessons/the-hat-game/tutorial) +Use this activity document to guide your work in the [the hat game tutorial](/lessons/the-hat-game/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/the-watch.md b/docs/reference/js/lessons/the-watch.md index ad4357c2..82090705 100644 --- a/docs/reference/js/lessons/the-watch.md +++ b/docs/reference/js/lessons/the-watch.md @@ -10,7 +10,7 @@ The Watch ## Quick Links -* [activity](/microbit/lessons/the-watch/activity) +* [activity](/lessons/the-watch/activity) ## Class diff --git a/docs/reference/js/lessons/timing-game.md b/docs/reference/js/lessons/timing-game.md index 599a065a..aabfa45a 100644 --- a/docs/reference/js/lessons/timing-game.md +++ b/docs/reference/js/lessons/timing-game.md @@ -6,4 +6,4 @@ make a game to test hand-eye coordination. Make a game to test hand-eye coordination -* [tutorial](/microbit/lessons/timing-game/tutorial) +* [tutorial](/lessons/timing-game/tutorial) diff --git a/docs/reference/js/lessons/transformer/quiz.md b/docs/reference/js/lessons/transformer/quiz.md index 5f22d446..59b502be 100644 --- a/docs/reference/js/lessons/transformer/quiz.md +++ b/docs/reference/js/lessons/transformer/quiz.md @@ -6,7 +6,7 @@ Use functions to return values. ## Directions -Use this activity document to guide your work in the [transformer tutorial](/microbit/lessons/transformer/tutorial) +Use this activity document to guide your work in the [transformer tutorial](/lessons/transformer/tutorial) Answer the questions below while working on or after you finish the tutorial. Pay attention to the dialogs! diff --git a/docs/reference/js/lessons/transformers.md b/docs/reference/js/lessons/transformers.md index d8df1bdc..86645eb9 100644 --- a/docs/reference/js/lessons/transformers.md +++ b/docs/reference/js/lessons/transformers.md @@ -10,10 +10,10 @@ Return ## Quick Links -* [tutorial](/microbit/lessons/transformers/tutorial) -* [quiz](/microbit/lessons/transformers/quiz) -* [quiz answers](/microbit/lessons/transformers/quiz-answers) -* [challenges](/microbit/lessons/transformers/challenges) +* [tutorial](/lessons/transformers/tutorial) +* [quiz](/lessons/transformers/quiz) +* [quiz answers](/lessons/transformers/quiz-answers) +* [challenges](/lessons/transformers/challenges) ## Class @@ -44,19 +44,19 @@ Learn how to create **functions**, ` function() ` to make your code easier to re ## Documentation -* **function** : [read more...](/microbit/js/function) -* **return** : [read more...](/microbit/js/return) -* **call** : [read more...](/microbit/js/call) -* **global variable** : [read more...](/microbit/js/data) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **function** : [read more...](/js/function) +* **return** : [read more...](/js/return) +* **call** : [read more...](/js/call) +* **global variable** : [read more...](/js/data) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **local variable** : [read more...](/reference/variables/var) +* **show number** : [read more...](/reference/basic/show-number) ## Resources -* Activity: [tutorial](/microbit/lessons/transformers/tutorial) -* Activity: [quiz](/microbit/lessons/transformers/quiz) -* Extended Activity: [challenges](/microbit/lessons/transformers/challenges) +* Activity: [tutorial](/lessons/transformers/tutorial) +* Activity: [quiz](/lessons/transformers/quiz) +* Extended Activity: [challenges](/lessons/transformers/challenges) ## Objectives @@ -107,17 +107,17 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [tutorial](/microbit/lessons/transformers/tutorial) -* [quiz](/microbit/lessons/transformers/quiz) +* [tutorial](/lessons/transformers/tutorial) +* [quiz](/lessons/transformers/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/transformers/challenges) +* [challenges](/lessons/transformers/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/transformers/challenges) +* Extended Activity: [challenges](/lessons/transformers/challenges) ## Intended follow on diff --git a/docs/reference/js/lessons/transformers/challenges.md b/docs/reference/js/lessons/transformers/challenges.md index b820acd8..c1b9726f 100644 --- a/docs/reference/js/lessons/transformers/challenges.md +++ b/docs/reference/js/lessons/transformers/challenges.md @@ -6,7 +6,7 @@ Coding challenges for the transformers tutorial. #docs Complete the following guided tutorial: -* [tutorial](/microbit/lessons/transformers/tutorial) +* [tutorial](/lessons/transformers/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/transformers/quiz-answers.md b/docs/reference/js/lessons/transformers/quiz-answers.md index 8337d111..f45cd455 100644 --- a/docs/reference/js/lessons/transformers/quiz-answers.md +++ b/docs/reference/js/lessons/transformers/quiz-answers.md @@ -2,7 +2,7 @@ Use functions to return values. -This is the answer key for the [transformers quiz](/microbit/lessons/transformers/quiz). +This is the answer key for the [transformers quiz](/lessons/transformers/quiz). ## 1. What is a 'function'? diff --git a/docs/reference/js/lessons/transformers/quiz.md b/docs/reference/js/lessons/transformers/quiz.md index a53c401e..dd4f111e 100644 --- a/docs/reference/js/lessons/transformers/quiz.md +++ b/docs/reference/js/lessons/transformers/quiz.md @@ -6,7 +6,7 @@ Use functions to return values. ## Directions -Use this activity document to guide your work in the [transformers tutorial](/microbit/lessons/transformers/tutorial) +Use this activity document to guide your work in the [transformers tutorial](/lessons/transformers/tutorial) Answer the questions while completing the tutorial. Pay attention to the dialogues! diff --git a/docs/reference/js/lessons/truth-or-dare.md b/docs/reference/js/lessons/truth-or-dare.md index 3206ee3a..e39624ba 100644 --- a/docs/reference/js/lessons/truth-or-dare.md +++ b/docs/reference/js/lessons/truth-or-dare.md @@ -8,11 +8,11 @@ If (Conditionals) ## Quick Links -* [activity](/microbit/lessons/truth-or-dare/activity) -* [challenges](/microbit/lessons/truth-or-dare/challenges) -* [quiz](/microbit/lessons/truth-or-dare/quiz) -* [quiz answers](/microbit/lessons/truth-or-dare/quiz-answers) -* [tutorial](/microbit/lessons/truth-or-dare/tutorial) +* [activity](/lessons/truth-or-dare/activity) +* [challenges](/lessons/truth-or-dare/challenges) +* [quiz](/lessons/truth-or-dare/quiz) +* [quiz answers](/lessons/truth-or-dare/quiz-answers) +* [tutorial](/lessons/truth-or-dare/tutorial) ## Class @@ -24,13 +24,13 @@ Learn how to use an if statement to run code run code depending on whether a con ## Documentation -* **show LEDs** : [read more...](/microbit/reference/basic/show-leds) -* **on button pressed** : [read more...](/microbit/reference/input/on-button-pressed) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **assignment operator** : [read more...](/microbit/reference/variables/assignment) -* **math random** : [read more...](/microbit/js/math) -* **If** : [read more...](/microbit/reference/logic/if) -* **show string** : [read more...](/microbit/reference/basic/show-string) +* **show LEDs** : [read more...](/reference/basic/show-leds) +* **on button pressed** : [read more...](/reference/input/on-button-pressed) +* **local variable** : [read more...](/reference/variables/var) +* **assignment operator** : [read more...](/reference/variables/assignment) +* **math random** : [read more...](/js/math) +* **If** : [read more...](/reference/logic/if) +* **show string** : [read more...](/reference/basic/show-string) ## Objectives @@ -69,15 +69,15 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/truth-or-dare/activity) -* [tutorial](/microbit/lessons/truth-or-dare/tutorial) +* [activity](/lessons/truth-or-dare/activity) +* [tutorial](/lessons/truth-or-dare/tutorial) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/truth-or-dare/challenges) +* [challenges](/lessons/truth-or-dare/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/truth-or-dare/challenges) +* Extended Activity: [challenges](/lessons/truth-or-dare/challenges) diff --git a/docs/reference/js/lessons/truth-or-dare/activity.md b/docs/reference/js/lessons/truth-or-dare/activity.md index 97f284f5..bf777777 100644 --- a/docs/reference/js/lessons/truth-or-dare/activity.md +++ b/docs/reference/js/lessons/truth-or-dare/activity.md @@ -2,7 +2,7 @@ a multi-player game that forces each player to reveal a secret or something funny. #docs -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. Begin by plotting an "up-arrow" image, which will point to someone. @@ -100,7 +100,7 @@ input.onButtonPressed(Button.A, () => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/truth-or-dare/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/truth-or-dare/challenges)! ### ~ diff --git a/docs/reference/js/lessons/truth-or-dare/challenges.md b/docs/reference/js/lessons/truth-or-dare/challenges.md index d1231944..b349922b 100644 --- a/docs/reference/js/lessons/truth-or-dare/challenges.md +++ b/docs/reference/js/lessons/truth-or-dare/challenges.md @@ -6,7 +6,7 @@ a multi-player game that forces each player to reveal a secret or something funn Complete the following guided tutorial: -* [tutorial](/microbit/lessons/truth-or-dare/tutorial) +* [tutorial](/lessons/truth-or-dare/tutorial) At the end of the tutorial, click `keep editing`. Your code should look like this: diff --git a/docs/reference/js/lessons/typing-game/challenges.md b/docs/reference/js/lessons/typing-game/challenges.md index 7474af84..1f4417c1 100644 --- a/docs/reference/js/lessons/typing-game/challenges.md +++ b/docs/reference/js/lessons/typing-game/challenges.md @@ -4,7 +4,7 @@ My script. #docs **Challenge 0** -This [guided tutorial](/microbit/lessons/typing-game/tutorial) will teach you how to use the method concat to connect to pieces of text together. +This [guided tutorial](/lessons/typing-game/tutorial) will teach you how to use the method concat to connect to pieces of text together. ``` alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" diff --git a/docs/reference/js/lessons/while-counting/challenges.md b/docs/reference/js/lessons/while-counting/challenges.md index d6d2c78b..5fce6712 100644 --- a/docs/reference/js/lessons/while-counting/challenges.md +++ b/docs/reference/js/lessons/while-counting/challenges.md @@ -6,7 +6,7 @@ These challenges will teach you how to create a counter 10 to 1. #docs ### @video vimeo/134459911 -[This guided tutorial](/microbit/lessons/digi-yoyo/tutorial) will teach you how to make a counter from 0-9 using a while loop. +[This guided tutorial](/lessons/digi-yoyo/tutorial) will teach you how to make a counter from 0-9 using a while loop. ``` count = 1 diff --git a/docs/reference/js/lessons/yes-no/challenges.md b/docs/reference/js/lessons/yes-no/challenges.md index f5b12889..5b4a7467 100644 --- a/docs/reference/js/lessons/yes-no/challenges.md +++ b/docs/reference/js/lessons/yes-no/challenges.md @@ -4,7 +4,7 @@ My script. #docs **Challenge 0** -This [guided tutorial](/microbit/lessons/yes-no/challenges) will show you how to display text on the micro:bit! +This [guided tutorial](/lessons/yes-no/challenges) will show you how to display text on the micro:bit! ``` basic.showString("ASK ME A QUESTION", 150) diff --git a/docs/reference/js/lessons/zoomer.md b/docs/reference/js/lessons/zoomer.md index a279b53b..d991436e 100644 --- a/docs/reference/js/lessons/zoomer.md +++ b/docs/reference/js/lessons/zoomer.md @@ -10,11 +10,11 @@ Acceleration ## Quick Links -* [activity](/microbit/lessons/zoomer/activity) -* [challenges](/microbit/lessons/zoomer/challenges) -* [quiz](/microbit/lessons/zoomer/quiz) -* [quiz answers](/microbit/lessons/zoomer/quiz-answers) -* [tutorial](/microbit/lessons/zoomer/tutorial) +* [activity](/lessons/zoomer/activity) +* [challenges](/lessons/zoomer/challenges) +* [quiz](/lessons/zoomer/quiz) +* [quiz answers](/lessons/zoomer/quiz-answers) +* [tutorial](/lessons/zoomer/tutorial) ## Class @@ -26,12 +26,12 @@ Learn how to get the **acceleration**, `input->acceleration` in one of three spe ## Documentation -* **forever** : [read more...](/microbit/reference/basic/forever) -* **local variable** : [read more...](/microbit/reference/variables/var) -* **acceleration** : [read more...](/microbit/reference/input/acceleration) -* **if** : [read more...](/microbit/reference/logic/if) -* **button is pressed** : [read more...](/microbit/reference/input/button-is-pressed) -* **show number** : [read more...](/microbit/reference/basic/show-number) +* **forever** : [read more...](/reference/basic/forever) +* **local variable** : [read more...](/reference/variables/var) +* **acceleration** : [read more...](/reference/input/acceleration) +* **if** : [read more...](/reference/logic/if) +* **button is pressed** : [read more...](/reference/input/button-is-pressed) +* **show number** : [read more...](/reference/basic/show-number) ## Objectives @@ -80,16 +80,16 @@ Computational Thinking Concept: AB = Abstraction; DE = Decomposition; AL = Algor ## Activity * time: 20 min. -* [activity](/microbit/lessons/zoomer/activity) -* [tutorial](/microbit/lessons/zoomer/tutorial) -* [quiz](/microbit/lessons/zoomer/quiz) +* [activity](/lessons/zoomer/activity) +* [tutorial](/lessons/zoomer/tutorial) +* [quiz](/lessons/zoomer/quiz) ## Extended Activity * time: 20 min. -* [challenges](/microbit/lessons/zoomer/challenges) +* [challenges](/lessons/zoomer/challenges) ## Homework -* Extended Activity: [challenges](/microbit/lessons/zoomer/challenges) +* Extended Activity: [challenges](/lessons/zoomer/challenges) diff --git a/docs/reference/js/lessons/zoomer/activity.md b/docs/reference/js/lessons/zoomer/activity.md index 53b00b1a..41279941 100644 --- a/docs/reference/js/lessons/zoomer/activity.md +++ b/docs/reference/js/lessons/zoomer/activity.md @@ -10,7 +10,7 @@ Welcome! This tutorial will teach how to measure the acceleration on the micro:b ### ~ -To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under **Touch Develop**. +To create a new script, go to the [Create Code](/create-code) page and tap *New Project* under **Touch Develop**. We want to display the acceleration forever. In order to do so, we need a `basic->forever` loop. @@ -38,7 +38,7 @@ basic.forever(() => { ### ~avatar avatar -Excellent, you're ready to continue with the [challenges](/microbit/lessons/zoomer/challenges)! +Excellent, you're ready to continue with the [challenges](/lessons/zoomer/challenges)! ### ~ diff --git a/docs/reference/js/lessons/zoomer/challenges.md b/docs/reference/js/lessons/zoomer/challenges.md index 5a41c007..4995cf56 100644 --- a/docs/reference/js/lessons/zoomer/challenges.md +++ b/docs/reference/js/lessons/zoomer/challenges.md @@ -4,7 +4,7 @@ Coding challenges for the zoomer tutorial.#acceleration. ## Before we get started -Complete the following [guided tutorial](/microbit/lessons/zoomer/tutorial) and your finished code should look like this: +Complete the following [guided tutorial](/lessons/zoomer/tutorial) and your finished code should look like this: ``` basic.forever(() => { diff --git a/docs/reference/js/libraries.md b/docs/reference/js/libraries.md index 3a42a5d1..ba493214 100644 --- a/docs/reference/js/libraries.md +++ b/docs/reference/js/libraries.md @@ -15,7 +15,7 @@ Benefits of using libraries: To add a library to a script: -1. Open a script in the [Touch Develop editor](/microbit/js/editor) and then click `script` (in the upper-right corner). +1. Open a script in the [Touch Develop editor](/js/editor) and then click `script` (in the upper-right corner). 2. Click `+` **add new**. @@ -23,15 +23,15 @@ To add a library to a script: 4. Choose the library you want to use or search for a library (such as `game`). -Once you've added a library to your script, you can use any of the library's non-private [functions](/microbit/js/function). Here's how: +Once you've added a library to your script, you can use any of the library's non-private [functions](/js/function). Here's how: -* on the [Code Keyboard](/microbit/js/editor) click the button with the library's name (for example, `micro:bit` and `micro:bit game` are library buttons). The functions in the library have a button on the Code Keyboard. +* on the [Code Keyboard](/js/editor) click the button with the library's name (for example, `micro:bit` and `micro:bit game` are library buttons). The functions in the library have a button on the Code Keyboard. ### Create a library Creating and publishing a script as a library is easy. Here's how: -1. Open a script in the [Touch Develop editor](/microbit/js/editor), and then click `script`. +1. Open a script in the [Touch Develop editor](/js/editor), and then click `script`. 2. Click the script name to open the script properties. @@ -50,15 +50,15 @@ The following library items are not accessible by other scripts: * data (global variables) * functions marked as `private` -If you want to access global library variables from other scripts, you need to create [functions](/microbit/js/function) that pass values in and out of the library script. +If you want to access global library variables from other scripts, you need to create [functions](/js/function) that pass values in and out of the library script. ### Library and function documentation -Be sure to document the purpose of your functions and libraries. Add a [comment](/microbit/js/comment) at the beginning of a library to describe the purpose of the library. +Be sure to document the purpose of your functions and libraries. Add a [comment](/js/comment) at the beginning of a library to describe the purpose of the library. -Use [comments](/microbit/js/comment) at the beginning of your [functions](/microbit/js/function) to describe the function's purpose. Comment text shows in the help area of the Code Keyboard when you insert the function. +Use [comments](/js/comment) at the beginning of your [functions](/js/function) to describe the function's purpose. Comment text shows in the help area of the Code Keyboard when you insert the function. ### See also -[functions](/microbit/js/function), [Touch Develop Documentation](/microbit/js/contents) +[functions](/js/function), [Touch Develop Documentation](/js/contents) diff --git a/docs/reference/js/markdown.md b/docs/reference/js/markdown.md index ea4325e8..d7059666 100644 --- a/docs/reference/js/markdown.md +++ b/docs/reference/js/markdown.md @@ -5,7 +5,7 @@ Syntax to create formatted text in Touch Develop. ### @parent td/comment -Markdown is a popular syntax used by developers to describe and annotate documents. Touch Develop supports a large subset of the markdown syntax, and adds a few new features. Markdown syntax applies to [comments](/microbit/js/comment) added using the [Touch Develop editor](/microbit/js/editor). +Markdown is a popular syntax used by developers to describe and annotate documents. Touch Develop supports a large subset of the markdown syntax, and adds a few new features. Markdown syntax applies to [comments](/js/comment) added using the [Touch Develop editor](/js/editor). ## Basic markdown syntax @@ -161,7 +161,7 @@ The following box types are supported: ### Special tutorial features -You'll use markdown syntax when creating Touch Develop tutorials. See [create a tutorial](/microbit/js/create-tutorials) for more info. +You'll use markdown syntax when creating Touch Develop tutorials. See [create a tutorial](/js/create-tutorials) for more info. ### ~hide diff --git a/docs/reference/js/math.md b/docs/reference/js/math.md index f4b4f979..955e856a 100644 --- a/docs/reference/js/math.md +++ b/docs/reference/js/math.md @@ -4,16 +4,16 @@ Functions in the math library. ### @parent js/language -The math library includes math related functions that you can use with [Numbers](/microbit/reference/types/number). +The math library includes math related functions that you can use with [Numbers](/reference/types/number). -* In the [TouchDevelop editor](/microbit/js/editor), click `math` to access the functions described below -* In the [Block editor](/microbit/blocks/editor), click **maths** on the left to see the available blocks +* In the [TouchDevelop editor](/js/editor), click `math` to access the functions described below +* In the [Block editor](/blocks/editor), click **maths** on the left to see the available blocks The functions available in Touch Develop are: ### abs -math `->` abs (x : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` abs (x : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the absolute value of input parameter `x` @@ -23,7 +23,7 @@ basic.showNumber(math.abs(-7), 150) ### clamp -math `->` clamp (min : [Number](/microbit/reference/types/number), max : [Number](/microbit/reference/types/number), value : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` clamp (min : [Number](/reference/types/number), max : [Number](/reference/types/number), value : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) limits a number to a range (between a min and max number); returns `min` if `value` is < `min`; returns `max` if `value` is > `max`; otherwise, returns `value`. @@ -33,7 +33,7 @@ basic.showNumber(td.clamp(5, 9, 12), 150) ### max -math `->` max (x : [Number](/microbit/reference/types/number), y : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` max (x : [Number](/reference/types/number), y : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the larger of two input numbers (`x` and `y`) @@ -43,7 +43,7 @@ basic.showNumber(Math.max(9, 7), 150) ### min -math `->` min (x : [Number](/microbit/reference/types/number), y : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` min (x : [Number](/reference/types/number), y : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the smaller of two input numbers (`x` and `y`) @@ -53,7 +53,7 @@ basic.showNumber(Math.min(9, 7), 150) ### mod -math `->` mod (x : [Number](/microbit/reference/types/number), y : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` mod (x : [Number](/reference/types/number), y : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the integer modulus/remainder resulting from the division of the number `x` by the number `y` @@ -63,7 +63,7 @@ basic.showNumber(math.mod(9, 7), 150) ### pow -math `->` pow (base : [Number](/microbit/reference/types/number), exp : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` pow (base : [Number](/reference/types/number), exp : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the value of the number `base` raised to the power `exp` @@ -73,9 +73,9 @@ basic.showNumber(math.pow(3, 3), 150) ### random -math `->` random (limit : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` random (limit : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) -returns a random [Number](/microbit/reference/types/number) between 0 and the parameter *limit* - 1 +returns a random [Number](/reference/types/number) between 0 and the parameter *limit* - 1 ``` basic.showNumber(Math.random(10), 150) @@ -83,7 +83,7 @@ basic.showNumber(Math.random(10), 150) ### sign -math `->` sign (x : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` sign (x : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the sign of input parameter `x` @@ -93,9 +93,9 @@ basic.showNumber(math.sign(-7), 150) ### Lessons -[flipping bird](/microbit/lessons/flipping-bird), [catch the egg game](/microbit/lessons/catch-the-egg-game) +[flipping bird](/lessons/flipping-bird), [catch the egg game](/lessons/catch-the-egg-game) ### See also -[Bits library](/microbit/js/bits), [TouchDevelop documentation](/microbit/js/contents), [Number](/microbit/reference/types/number) +[Bits library](/js/bits), [TouchDevelop documentation](/js/contents), [Number](/reference/types/number) diff --git a/docs/reference/js/number.md b/docs/reference/js/number.md index 698c1c72..7b81dc68 100644 --- a/docs/reference/js/number.md +++ b/docs/reference/js/number.md @@ -8,28 +8,28 @@ A *Number* is an integer such as `42` or `-42`. More precisely, a *Number* is a ### Declare a number variable -Use the [var statement](/microbit/reference/variables/var) and the [assignment operator](/microbit/reference/variables/assign) `:=` to declare a *local* number variable. Like this: +Use the [var statement](/reference/variables/var) and the [assignment operator](/reference/variables/assign) `:=` to declare a *local* number variable. Like this: ``` let number1 = 2 let number2 = 2 ``` -To declare a *global* number variable, see [global variables](/microbit/js/data). +To declare a *global* number variable, see [global variables](/js/data). ### Arithmetic operators -The following arithmetic operators work on numbers and return a [Number](/microbit/reference/types/number): +The following arithmetic operators work on numbers and return a [Number](/reference/types/number): * addition: `1 + 3` * subtraction: `1 - 3 ` * multiplication: `3 * 2` * integer division: `7 / 3` -* modulo is available through the [math library](/microbit/js/math) +* modulo is available through the [math library](/js/math) ### Relational operators -The following relational operators work on numbers and return a [Boolean](/microbit/reference/types/boolean): +The following relational operators work on numbers and return a [Boolean](/reference/types/boolean): * equality: `(3 + 1) = 4` * inequality: `3 != 4` @@ -40,7 +40,7 @@ The following relational operators work on numbers and return a [Boolean](/micro ### Show number -The [show number](/microbit/reference/basic/show-number) function displays a number on the [LED screen](/microbit/device/screen). For example, this code displays the number 42: +The [show number](/reference/basic/show-number) function displays a number on the [LED screen](/device/screen). For example, this code displays the number 42: ``` basic.showNumber(42, 100) @@ -48,7 +48,7 @@ basic.showNumber(42, 100) ### Functions that return a number -Some functions return a number, which you can store in a variable. For example the following code gets the display brightness (using the [brightness function](/microbit/reference/led/brightness)) and stores the value in a variable named `brightness`: +Some functions return a number, which you can store in a variable. For example the following code gets the display brightness (using the [brightness function](/reference/led/brightness)) and stores the value in a variable named `brightness`: ``` let brightness = led.brightness() @@ -56,7 +56,7 @@ let brightness = led.brightness() ### Math functions -The [math library](/microbit/js/math) includes math related functions. In the [Touch Develop editor](/microbit/js/editor), click `math` on the Code Keyboard to see the math functions. For example, the `mod` function returns the modulus (division of one number by another number): +The [math library](/js/math) includes math related functions. In the [Touch Develop editor](/js/editor), click `math` on the Code Keyboard to see the math functions. For example, the `mod` function returns the modulus (division of one number by another number): ``` number1 = math.mod(4, 3) @@ -64,7 +64,7 @@ number1 = math.mod(4, 3) ### Convert a number to a string -The `to string` function converts a Number into a [String](/microbit/reference/types/string). The following code converts `number1` to a string and stores the string in the `str` variable: +The `to string` function converts a Number into a [String](/reference/types/string). The following code converts `number1` to a string and stores the string in the `str` variable: ``` let str = number1.toString() @@ -72,13 +72,13 @@ let str = number1.toString() ### Bit-level manipulation -The [bits library](/microbit/js/bits) includes functions for bit-level manipulation of integers. In the [Touch Develop editor](/microbit/js/editor), click `bits` on the Code Keyboard to see these functions. +The [bits library](/js/bits) includes functions for bit-level manipulation of integers. In the [Touch Develop editor](/js/editor), click `bits` on the Code Keyboard to see these functions. ### Lessons -[counter](/microbit/lessons/counter), [love meter](/microbit/lessons/love-meter), [flipping bird](/microbit/lessons/flipping-bird), [catch the egg game](/microbit/lessons/catch-the-egg-game) +[counter](/lessons/counter), [love meter](/lessons/love-meter), [flipping bird](/lessons/flipping-bird), [catch the egg game](/lessons/catch-the-egg-game) ### See also -[math library](/microbit/js/math), [var](/microbit/reference/variables/var), [bits library](/microbit/js/bits), [Boolean](/microbit/reference/types/boolean), [show number](/microbit/reference/basic/show-number) +[math library](/js/math), [var](/reference/variables/var), [bits library](/js/bits), [Boolean](/reference/types/boolean), [show number](/reference/basic/show-number) diff --git a/docs/reference/js/operators.md b/docs/reference/js/operators.md index 62aef67a..51ee5ce2 100644 --- a/docs/reference/js/operators.md +++ b/docs/reference/js/operators.md @@ -5,5 +5,5 @@ Built-in operators. ### @parent js/language -### to be removed: has been combined into [statements and operators](/microbit/js/statements) +### to be removed: has been combined into [statements and operators](/js/statements) diff --git a/docs/reference/js/publishing.md b/docs/reference/js/publishing.md index 3c015c25..05069fdd 100644 --- a/docs/reference/js/publishing.md +++ b/docs/reference/js/publishing.md @@ -24,7 +24,7 @@ To publish a script from `My Scripts`: **Share with people you choose**: click `publish as hidden` to publish your script in a way that it is not discoverable by search (users will need to know your script's id to access it). -When you publish a script, a url with a unique script id is created so that you can share your script with other people. To share a *publish as hidden* script, copy the url and give it to select people. There is also a `share` button in [script options](/microbit/js/editor). +When you publish a script, a url with a unique script id is created so that you can share your script with other people. To share a *publish as hidden* script, copy the url and give it to select people. There is also a `share` button in [script options](/js/editor). You can add a short publication note if you'd like. This note appears with the publishing history (on the script overview page). diff --git a/docs/reference/js/quick-start.md b/docs/reference/js/quick-start.md index f38337ff..ed076e5f 100644 --- a/docs/reference/js/quick-start.md +++ b/docs/reference/js/quick-start.md @@ -14,17 +14,17 @@ The Quick Start Guide for Teachers is available in [PDF](https://microbit0.blob. The currently available on-line resources from the Quick Start Guide are the -* [scroll text tutorial](/microbit/js/tutorials/scroll-text) -* [flashing heart tutorial](/microbit/js/tutorials/flashing-heart) -* [button light tutorial](/microbit/js/tutorials/button-light) -* [digital key chain tutorial](/microbit/js/tutorials/digital-key-chain) -* [rock paper scissors tutorial](/microbit/lessons/rock-paper-scissors/tutorial) and [rock paper scissors challenges](/microbit/lessons/rock-paper-scissors/challenges) -* [digital pet tutorial](/microbit/lessons/digital-pet/tutorial) and [digital pet challenges](/microbit/lessons/digital-pet/challenges) -* [catch the egg game tutorial](/microbit/lessons/catch-the-egg-game/tutorial) and [catch the egg game challenges](/microbit/lessons/catch-the-egg-game/challenges) +* [scroll text tutorial](/js/tutorials/scroll-text) +* [flashing heart tutorial](/js/tutorials/flashing-heart) +* [button light tutorial](/js/tutorials/button-light) +* [digital key chain tutorial](/js/tutorials/digital-key-chain) +* [rock paper scissors tutorial](/lessons/rock-paper-scissors/tutorial) and [rock paper scissors challenges](/lessons/rock-paper-scissors/challenges) +* [digital pet tutorial](/lessons/digital-pet/tutorial) and [digital pet challenges](/lessons/digital-pet/challenges) +* [catch the egg game tutorial](/lessons/catch-the-egg-game/tutorial) and [catch the egg game challenges](/lessons/catch-the-egg-game/challenges) ### Errata -* compilation to the BBC micro:bit now works [off line](/microbit/offline), based on a new compiler in the web browser. The text and picture below replaces the text and picture on page 10 of the Guide: +* compilation to the BBC micro:bit now works [off line](/offline), based on a new compiler in the web browser. The text and picture below replaces the text and picture on page 10 of the Guide: ### How does my program get onto the BBC micro:bit? diff --git a/docs/reference/js/reactive.md b/docs/reference/js/reactive.md index 9b79fef7..ea4925dc 100644 --- a/docs/reference/js/reactive.md +++ b/docs/reference/js/reactive.md @@ -18,7 +18,7 @@ The BBC micro:bit is a *reactive system* – it reacts continuously to external We want reactive systems to be responsive, which means to react in a timely manner to events. For example, when you play a computer game, it’s frustrating if you press a button to make a character jump, but it doesn’t immediately jump. A delay in reacting, or lack of responsiveness , can be the difference between life and death, both in the real and virtual worlds. -Let’s consider a simple example: you want to program your BBC micro:bit to accurately count the number of times the A button has been pressed and continuously display the current count on the 5x5 [LED screen](/microbit/device/screen). Because the LED screen is small, we can only display one digit of a number at a time on it. The [show number](/microbit/reference/basic/show-number) function will scroll the digits of a number across the screen so you can read it. +Let’s consider a simple example: you want to program your BBC micro:bit to accurately count the number of times the A button has been pressed and continuously display the current count on the 5x5 [LED screen](/device/screen). Because the LED screen is small, we can only display one digit of a number at a time on it. The [show number](/reference/basic/show-number) function will scroll the digits of a number across the screen so you can read it. Let’s say that the current count is 42 and the number 42 is scrolling across the LED screen. This means there is some code executing to perform the scroll. So, what should happen if you press the A button during the scroll? It would be a bad idea to ignore the button press, so some code should record the occurrence of the button press. But we just said there already is code running in order to scroll the number 42! If we wait until the code scrolling the 42 has finished to look for a button press, we will miss the button press. We want to avoid this sort of unresponsiveness. diff --git a/docs/reference/js/return.md b/docs/reference/js/return.md index 93f0228b..57f45c22 100644 --- a/docs/reference/js/return.md +++ b/docs/reference/js/return.md @@ -5,7 +5,7 @@ Exit a function. ### @parent js/statement -The return statement exits a [function](/microbit/js/function) and returns a value to the code that called the function. +The return statement exits a [function](/js/function) and returns a value to the code that called the function. ### Touch Develop syntax @@ -41,9 +41,9 @@ let result1 = square(42) ### Lessons -[transformers](/microbit/lessons/transformers) +[transformers](/lessons/transformers) ### See also -[function](/microbit/js/function), [calling functions](/microbit/js/call), [function parameters](/microbit/js/functionparameters) +[function](/js/function), [calling functions](/js/call), [function parameters](/js/functionparameters) diff --git a/docs/reference/js/scriptid.md b/docs/reference/js/scriptid.md index 7f9c7bf7..fdbe476d 100644 --- a/docs/reference/js/scriptid.md +++ b/docs/reference/js/scriptid.md @@ -5,7 +5,7 @@ What is the script id? #docs ### @parent js/contents -the *script id* is a unique identifier that is given to each [published](/microbit/js/publishing) script. This way you can share your scripts with other people. +the *script id* is a unique identifier that is given to each [published](/js/publishing) script. This way you can share your scripts with other people. ### where can I find the script id? @@ -21,11 +21,11 @@ you can type the script id directly into the search in the hub to find it. ### sharing your scripts -when you [publish a script](/microbit/js/publishing), you can copy the url (which includes the script id) and send it to people. +when you [publish a script](/js/publishing), you can copy the url (which includes the script id) and send it to people. -if you forget to copy the url when you publish, there's also a `share` button in [script options](/microbit/js/editor). +if you forget to copy the url when you publish, there's also a `share` button in [script options](/js/editor). ### see also -[publish a script](/microbit/js/publishing) +[publish a script](/js/publishing) diff --git a/docs/reference/js/showcase.md b/docs/reference/js/showcase.md index 5c32d3f0..f73ffe4f 100644 --- a/docs/reference/js/showcase.md +++ b/docs/reference/js/showcase.md @@ -11,6 +11,6 @@ If you have a BBC micro:bit and would like to explore a few scripts, we've creat This script introduces you to the LED display: * {hex:xzlzgl:hex file} -MACRO: hex* [Block Editor script](/microbit/jxislh) -* [Touch Develop script](/microbit/xzlzgl) +MACRO: hex* [Block Editor script](/jxislh) +* [Touch Develop script](/xzlzgl) diff --git a/docs/reference/js/simulator.md b/docs/reference/js/simulator.md index ccf1d86a..a0531694 100644 --- a/docs/reference/js/simulator.md +++ b/docs/reference/js/simulator.md @@ -2,7 +2,7 @@ Run scripts in a web browser. -While you're writing and testing your scripts, you'll mostly be running scripts in your browser by clicking the `run` button. Both the [Microsoft Block editor](/microbit/blocks/editor) and the [Touch Develop editor](/microbit/js/editor) have a `run` button above the coding area. +While you're writing and testing your scripts, you'll mostly be running scripts in your browser by clicking the `run` button. Both the [Microsoft Block editor](/blocks/editor) and the [Touch Develop editor](/js/editor) have a `run` button above the coding area. *Note*: in the Touch Develop editor, the button actually is named `run main`, reflecting the fact that execution of a Touch Develop script always beings in the `main` function @@ -10,7 +10,7 @@ When you click `run main` in the Touch Develop editor, your code executes and th ![](/static/mb/simulator-0.png) -In the picture above, [plot image](/microbit/reference/led/plot-image) create a heart image that appears on the BBC micro:bit simulator. +In the picture above, [plot image](/reference/led/plot-image) create a heart image that appears on the BBC micro:bit simulator. The BBC micro:bit simulator let's you... @@ -19,13 +19,13 @@ The BBC micro:bit simulator let's you... ### What does the simulator support? -The BBC micro:bit simulator supports the Touch Develop [functions](/microbit/js/contents) and Microsoft [blocks](/microbit/blocks/contents), including those related to the LED screen, input buttons, the compass, accelerometer, and the digital I/O pins. +The BBC micro:bit simulator supports the Touch Develop [functions](/js/contents) and Microsoft [blocks](/blocks/contents), including those related to the LED screen, input buttons, the compass, accelerometer, and the digital I/O pins. -* **LED screen**: the [LED screen](/microbit/device/screen) that appears on-screen shows you what you'll see on the BBC micro:bit device -* **input buttons**: when running code with [button is pressed](/microbit/reference/input/button-is-pressed) or [on button pressed](/microbit/reference/input/on-button-pressed) functions, click the on-screen A or B button -* **compass**: when running code that includes [compass heading](/microbit/reference/input/compass-heading), click and drag the on-screen compass needle to change the heading -* **accelerometer**: move your mouse over the on-screen micro:bit device to simulate [acceleration](/microbit/reference/input/acceleration). The x and y axis values are shown on-screen. -* **digital pins**: you can click the on-screen digital pins (0 , 1, or 2) to turn them on or off (see [digital write pin](/microbit/reference/pins/digital-write-pin) and [digital read pin](/microbit/reference/pins/digital-read-pin) for more info). +* **LED screen**: the [LED screen](/device/screen) that appears on-screen shows you what you'll see on the BBC micro:bit device +* **input buttons**: when running code with [button is pressed](/reference/input/button-is-pressed) or [on button pressed](/reference/input/on-button-pressed) functions, click the on-screen A or B button +* **compass**: when running code that includes [compass heading](/reference/input/compass-heading), click and drag the on-screen compass needle to change the heading +* **accelerometer**: move your mouse over the on-screen micro:bit device to simulate [acceleration](/reference/input/acceleration). The x and y axis values are shown on-screen. +* **digital pins**: you can click the on-screen digital pins (0 , 1, or 2) to turn them on or off (see [digital write pin](/reference/pins/digital-write-pin) and [digital read pin](/reference/pins/digital-read-pin) for more info). **Can't see the red LEDs on the simulator?** @@ -33,13 +33,13 @@ If you click on the white THEME button in the top right corner of the simulator, ### All done? -Once you're done writing and testing your code on the simulator, compile and run your script on your BBC micro:bit device. To find out how to do this, see [run scripts on the micro:bit](/microbit/device/usb). +Once you're done writing and testing your code on the simulator, compile and run your script on your BBC micro:bit device. To find out how to do this, see [run scripts on the micro:bit](/device/usb). ### Simulator vs micro:bit -Running your scripts in a web browser is a *simulation* of how your code will run on the BBC micro:bit device. When you run your script on your BBC micro:bit device, the results may differ slightly. For example, the timing may be subtly different when your script runs on the BBC micro:bit device (you may need to adjust your [pause](/microbit/reference/basic/pause) functions). For this reason, be sure to test your scripts on the BBC micro:bit device. +Running your scripts in a web browser is a *simulation* of how your code will run on the BBC micro:bit device. When you run your script on your BBC micro:bit device, the results may differ slightly. For example, the timing may be subtly different when your script runs on the BBC micro:bit device (you may need to adjust your [pause](/reference/basic/pause) functions). For this reason, be sure to test your scripts on the BBC micro:bit device. ### See also -[run scripts on the micro:bit](/microbit/device/usb), [Microsoft Block editor](/microbit/blocks/editor), [Touch Develop editor](/microbit/js/editor) +[run scripts on the micro:bit](/device/usb), [Microsoft Block editor](/blocks/editor), [Touch Develop editor](/js/editor) diff --git a/docs/reference/js/statements.md b/docs/reference/js/statements.md index f94cf140..dd861544 100644 --- a/docs/reference/js/statements.md +++ b/docs/reference/js/statements.md @@ -11,31 +11,31 @@ TouchDevelop functions include statements and operators. TouchDevelop statements include: -* [break](/microbit/js/break), to exit a loop before it has completed, usually used in conjunction with an [if](/microbit/reference/logic/if) statement -* [if](/microbit/reference/logic/if) conditional statement -* [for](/microbit/reference/loops/for) and [while](/microbit/js/while) loops -* [function](/microbit/js/function) -* [return](/microbit/js/return) -* [var](/microbit/reference/variables/var) (local variable declaration) +* [break](/js/break), to exit a loop before it has completed, usually used in conjunction with an [if](/reference/logic/if) statement +* [if](/reference/logic/if) conditional statement +* [for](/reference/loops/for) and [while](/js/while) loops +* [function](/js/function) +* [return](/js/return) +* [var](/reference/variables/var) (local variable declaration) ### Operators TouchDevelop operators include: -* [assignment operator](/microbit/reference/variables/assign) `:=` (to update variables) -* arithmetic operators (`+`, `-`, `*`, `/`, mod) operate on [Numbers](/microbit/reference/types/number) -* comparison operators (such as `>`, `=`) operate on [Numbers](/microbit/reference/types/number) -* boolean operators (`not`, `or`, `and`) operate on [Booleans](/microbit/reference/types/boolean) -* concat operator combines [Strings](/microbit/reference/types/string) +* [assignment operator](/reference/variables/assign) `:=` (to update variables) +* arithmetic operators (`+`, `-`, `*`, `/`, mod) operate on [Numbers](/reference/types/number) +* comparison operators (such as `>`, `=`) operate on [Numbers](/reference/types/number) +* boolean operators (`not`, `or`, `and`) operate on [Booleans](/reference/types/boolean) +* concat operator combines [Strings](/reference/types/string) ### Libraries Libraries provide additional functions: -* the [micro:bit library](/microbit/js/contents) -* the [math](/microbit/js/math) and [bits](/microbit/js/bits) libraries +* the [micro:bit library](/js/contents) +* the [math](/js/math) and [bits](/js/bits) libraries ### see also -[TouchDevelop Documentation](/microbit/js/contents), [comments](/microbit/js/comment) +[TouchDevelop Documentation](/js/contents), [comments](/js/comment) diff --git a/docs/reference/js/string-functions.md b/docs/reference/js/string-functions.md index 6ef74568..d3986464 100644 --- a/docs/reference/js/string-functions.md +++ b/docs/reference/js/string-functions.md @@ -14,7 +14,7 @@ The following string related functions are available in Touch Develop for the BB * **to character code** - converts a character into a character code * **to number** - converts a string into a number -Select a string variable in the [Touch Develop editor](/microbit/js/editor) to see the following string functions: +Select a string variable in the [Touch Develop editor](/js/editor) to see the following string functions: ``` /* placeholder */ @@ -34,11 +34,11 @@ find out if two strings are the same #### Syntax -[String](/microbit/reference/types/string) `->` **equals** (other : [String](/microbit/reference/types/string)) *returns* [Boolean](/microbit/reference/types/boolean) +[String](/reference/types/string) `->` **equals** (other : [String](/reference/types/string)) *returns* [Boolean](/reference/types/boolean) #### Parameters -* other - [String](/microbit/reference/types/string); a string +* other - [String](/reference/types/string); a string #### Example @@ -56,11 +56,11 @@ get a character within a string, using the specified index #### Syntax -[String](/microbit/reference/types/string) `->` **at** (index: [Number](/microbit/reference/types/number)) *returns* [String](/microbit/reference/types/string) +[String](/reference/types/string) `->` **at** (index: [Number](/reference/types/number)) *returns* [String](/reference/types/string) #### Parameters -* index- [Number](/microbit/reference/types/number); the character number within a string (0 returns the first character) +* index- [Number](/reference/types/number); the character number within a string (0 returns the first character) #### Example @@ -87,11 +87,11 @@ combine two strings; like the concat operator (`||`) #### Syntax -[String](/microbit/reference/types/string) `->` **concat** (other : [String](/microbit/reference/types/string)) *returns* [String](/microbit/reference/types/string) +[String](/reference/types/string) `->` **concat** (other : [String](/reference/types/string)) *returns* [String](/reference/types/string) #### Parameters -* other- [String](/microbit/reference/types/string); a string +* other- [String](/reference/types/string); a string #### Example @@ -109,7 +109,7 @@ get the number of characters in a string #### Syntax -[String](/microbit/reference/types/string) `->` **count** *returns* [Number](/microbit/reference/types/number) +[String](/reference/types/string) `->` **count** *returns* [Number](/reference/types/number) #### Example @@ -125,12 +125,12 @@ get a portion of a string, using a starting point and length #### Syntax -[String](/microbit/reference/types/string) `->` **substring** (start : [Number](/microbit/reference/types/number), length : [Number](/microbit/reference/types/number)) *returns* [String](/microbit/reference/types/string) +[String](/reference/types/string) `->` **substring** (start : [Number](/reference/types/number), length : [Number](/reference/types/number)) *returns* [String](/reference/types/string) #### Parameters -* start - [Number](/microbit/reference/types/number); the starting character number (0 is the first character number in a string) -* length - [Number](/microbit/reference/types/number); the string length +* start - [Number](/reference/types/number); the starting character number (0 is the first character number in a string) +* length - [Number](/reference/types/number); the string length #### Example @@ -146,7 +146,7 @@ converts the first character of a string into a character code number (unicode) #### Syntax -[String](/microbit/reference/types/string) `->` **to character code** *returns* [Number](/microbit/reference/types/number) +[String](/reference/types/string) `->` **to character code** *returns* [Number](/reference/types/number) #### Example @@ -162,7 +162,7 @@ converts a string into a number #### Syntax -[String](/microbit/reference/types/string) `->` **to number** *returns* [Number](/microbit/reference/types/number) +[String](/reference/types/string) `->` **to number** *returns* [Number](/reference/types/number) #### Example @@ -174,5 +174,5 @@ x = parseFloat(str) ### See also -[string](/microbit/reference/types/string), [number](/microbit/reference/types/number), [show string](/microbit/reference/basic/show-string) +[string](/reference/types/string), [number](/reference/types/number), [show string](/reference/basic/show-string) diff --git a/docs/reference/js/string.md b/docs/reference/js/string.md index 251d52ca..1331d410 100644 --- a/docs/reference/js/string.md +++ b/docs/reference/js/string.md @@ -4,17 +4,17 @@ a piece of text. ### @parent js/language -A *String* is a sequence of characters. For the BBC micro:bit, ASCII character codes 32 to 126 are supported; letters, digits, punctuation marks, and a few symbols. All other character codes appear as a ? on the [LED screen](/microbit/device/screen). +A *String* is a sequence of characters. For the BBC micro:bit, ASCII character codes 32 to 126 are supported; letters, digits, punctuation marks, and a few symbols. All other character codes appear as a ? on the [LED screen](/device/screen). ### Declare a string -Use the [var statement](/microbit/reference/variables/var) and the [assignment operator](/microbit/reference/variables/assign) `:=` to declare a new *local* string variable. Like this: +Use the [var statement](/reference/variables/var) and the [assignment operator](/reference/variables/assign) `:=` to declare a new *local* string variable. Like this: ``` let str = "this is a string" ``` -To declare a string using the [Touch Develop editor](/microbit/js/editor): +To declare a string using the [Touch Develop editor](/js/editor): 1. Click `var` (on the Code Keyboard). @@ -34,7 +34,7 @@ let salutation = "Hello" ### The function `show string` -Use [show string](/microbit/reference/basic/show-string) to display a string on the [LED screen](/microbit/device/screen). If the string is multiple characters, the string scrolls right to left. The following example displays `Hello world!` on the micro:bit screen: +Use [show string](/reference/basic/show-string) to display a string on the [LED screen](/device/screen). If the string is multiple characters, the string scrolls right to left. The following example displays `Hello world!` on the micro:bit screen: ``` basic.showString("Hello world!", 100) @@ -44,17 +44,17 @@ The first parameter of `show string` specifies the string, and the second parame ### More string functions -Want to compare or concatenate strings? Check out the [string functions](/microbit/reference/types/string-functions). +Want to compare or concatenate strings? Check out the [string functions](/reference/types/string-functions). ### Global string variables -Unlike [local variables](/microbit/reference/variables/var), global variables are accessible across functions and in nested code blocks. To find out how to declare a global string variable, see [global variables](/microbit/js/data). +Unlike [local variables](/reference/variables/var), global variables are accessible across functions and in nested code blocks. To find out how to declare a global string variable, see [global variables](/js/data). ### Lessons -[letter up](/microbit/lessons/letter-up) +[letter up](/lessons/letter-up) ### See also -[local variables](/microbit/reference/variables/var), [global variables](/microbit/js/data), [string functions](/microbit/reference/types/string-functions), [Number](/microbit/reference/types/number), [show string](/microbit/reference/basic/show-string) +[local variables](/reference/variables/var), [global variables](/js/data), [string functions](/reference/types/string-functions), [Number](/reference/types/number), [show string](/reference/basic/show-string) diff --git a/docs/reference/js/types.md b/docs/reference/js/types.md index d5e1e388..6b84ccd7 100644 --- a/docs/reference/js/types.md +++ b/docs/reference/js/types.md @@ -7,13 +7,13 @@ Touch Develop types. A *type* refers to a class of data and the operations permitted on that data. The following types are supported by Touch Develop for the BBC micro:bit: -* **[String](/microbit/reference/types/string)**: a sequence of characters -* **[Number](/microbit/reference/types/number)**: an integer number (32-bit signed) -* **[Boolean](/microbit/reference/types/boolean)**: true or false -* **[Image](/microbit/reference/image/image)**: a collection of [micro:bit LED states](/microbit/device/screen) (on/off) +* **[String](/reference/types/string)**: a sequence of characters +* **[Number](/reference/types/number)**: an integer number (32-bit signed) +* **[Boolean](/reference/types/boolean)**: true or false +* **[Image](/reference/image/image)**: a collection of [micro:bit LED states](/device/screen) (on/off) * *more types coming!!!* ### see also -[local variables](/microbit/reference/variables/var), [global variables](/microbit/js/data), [assignment operator](/microbit/reference/variables/assign) +[local variables](/reference/variables/var), [global variables](/js/data), [assignment operator](/reference/variables/assign) diff --git a/docs/reference/js/var.md b/docs/reference/js/var.md index 6b96f8ed..1ef513e6 100644 --- a/docs/reference/js/var.md +++ b/docs/reference/js/var.md @@ -5,7 +5,7 @@ How to define and use local variables. ### @parent language -A variable is a place where you can store and retrieve data. Variables have a name, a [type](/microbit/js/types), and value: +A variable is a place where you can store and retrieve data. Variables have a name, a [type](/js/types), and value: * *name* is how you'll refer to the variable * *type* refers to the kind of data a variable can store @@ -13,7 +13,7 @@ A variable is a place where you can store and retrieve data. Variables have a na ### `var` and `let` statement -Use the Touch Develop *var* statement to create a local variable and the [assignment operator](/microbit/reference/variables/assign) `=` to store something in the variable. +Use the Touch Develop *var* statement to create a local variable and the [assignment operator](/reference/variables/assign) `=` to store something in the variable. For example, this code stores the number `2` in the `num1` variable: @@ -27,7 +27,7 @@ Here's how to define a variable in the Touch Develop editor: 2. Change the default variable name if you like. -3. Click on the right-side of the [assignment operator](/microbit/reference/variables/assign) `:=` and type or click what you want to store in the variable. +3. Click on the right-side of the [assignment operator](/reference/variables/assign) `:=` and type or click what you want to store in the variable. The resulting code should look something like this: @@ -61,13 +61,13 @@ let img = images.createImage(` `) ``` -See [Image](/microbit/reference/image/image) for info on creating and using image variables. +See [Image](/reference/image/image) for info on creating and using image variables. ### Store in var button Another way to define a variable is to use the `store in var` button. Here's how: -* in the [Touch Develop editor](/microbit/js/editor), click a function button that returns a value (i.e. `led` `->` `brightness`) +* in the [Touch Develop editor](/js/editor), click a function button that returns a value (i.e. `led` `->` `brightness`) * click `store in var` * click `rename` to change the default variable name @@ -77,7 +77,7 @@ The resulting code should look something like this: let brightness = led.brightness() ``` -A variable is created for the number returned by the [brightness](/microbit/reference/led/brightness) function. +A variable is created for the number returned by the [brightness](/reference/led/brightness) function. ### Using variables @@ -106,7 +106,7 @@ led.plot(3, 3) led.plot(4, 4) ``` -You can use a variable (`i`) and a [for loop](/microbit/reference/loops/for) to plot the same series of points (`i` is incremented by 1, each time the loop repeats): +You can use a variable (`i`) and a [for loop](/reference/loops/for) to plot the same series of points (`i` is incremented by 1, each time the loop repeats): ``` for (let i = 0; i < 5; i++) { @@ -127,7 +127,7 @@ if (led.brightness() > 127) { } ``` -Use [global variables](/microbit/js/data) when you need to access a variable in nested code blocks or across multiple functions. +Use [global variables](/js/data) when you need to access a variable in nested code blocks or across multiple functions. #### Notes @@ -136,9 +136,9 @@ Use [global variables](/microbit/js/data) when you need to access a variable in ### Lessons -[guess the number](/microbit/lessons/guess-the-number), [digi yoyo](/microbit/lessons/digi-yoyo), [rock paper scissors](/microbit/lessons/rock-paper-scissors), [love meter](/microbit/lessons/love-meter) +[guess the number](/lessons/guess-the-number), [digi yoyo](/lessons/digi-yoyo), [rock paper scissors](/lessons/rock-paper-scissors), [love meter](/lessons/love-meter) ### See also -[global variables](/microbit/js/data), [types](/microbit/js/types), [assignment operator](/microbit/reference/variables/assign) +[global variables](/js/data), [types](/js/types), [assignment operator](/reference/variables/assign) diff --git a/docs/reference/js/while.md b/docs/reference/js/while.md index 59c4eea3..d84106e8 100644 --- a/docs/reference/js/while.md +++ b/docs/reference/js/while.md @@ -5,7 +5,7 @@ Repeat code in a loop while a condition is true. ### @parent js/language -Repeat code while a [Boolean](/microbit/reference/types/boolean) `condition` is true. +Repeat code while a [Boolean](/reference/types/boolean) `condition` is true. ### ~hide @@ -27,9 +27,9 @@ while (condition) { } ``` -The while loop has a *condition* that evaluates to a [Boolean](/microbit/reference/types/boolean) value. After the `do` keyword, add the code that you want to run while the `condition` is `true`. The while loop concludes with `end while`. +The while loop has a *condition* that evaluates to a [Boolean](/reference/types/boolean) value. After the `do` keyword, add the code that you want to run while the `condition` is `true`. The while loop concludes with `end while`. -The condition is tested before any code runs. Which means that if the condition is false, the code inside the loop doesn't execute. Use the [break statement](/microbit/js/break) to exit a while loop before it's complete. +The condition is tested before any code runs. Which means that if the condition is false, the code inside the loop doesn't execute. Use the [break statement](/js/break) to exit a while loop before it's complete. ### Example: diagonal line @@ -66,9 +66,9 @@ while (true) { ### Lessons -[rotation animation](/microbit/lessons/rotation-animation), [digi yoyo](/microbit/lessons/digi-yoyo) +[rotation animation](/lessons/rotation-animation), [digi yoyo](/lessons/digi-yoyo) ### See also -[on button pressed](/microbit/reference/input/on-button-pressed), [for](/microbit/reference/loops/for), [if](/microbit/reference/logic/if), [break](/microbit/js/break), [forever](/microbit/reference/basic/forever), [in background](/microbit/reference/control/in-background) +[on button pressed](/reference/input/on-button-pressed), [for](/reference/loops/for), [if](/reference/logic/if), [break](/js/break), [forever](/reference/basic/forever), [in background](/reference/control/in-background) diff --git a/docs/reference/led/brightness.md b/docs/reference/led/brightness.md index 8a441053..cb248b07 100644 --- a/docs/reference/led/brightness.md +++ b/docs/reference/led/brightness.md @@ -1,6 +1,6 @@ # Brightness -Set the brightness of the [LED screen](/microbit/device/screen). +Set the brightness of the [LED screen](/device/screen). ```sig led.brightness(); @@ -8,7 +8,7 @@ led.brightness(); ### Returns -* [Number](/microbit/reference/types/number) - returns the LCD screen brightness as a number from 0 to 255. A return value of 255 means the screen brightness is at 100% and 127 is about 50% brightness. +* [Number](/reference/types/number) - returns the LCD screen brightness as a number from 0 to 255. A return value of 255 means the screen brightness is at 100% and 127 is about 50% brightness. ### Example: maximum brightness @@ -22,5 +22,5 @@ if (led.brightness() < 255) { ### See also -[set brightness](/microbit/reference/led/set-brightness), [fade in](/microbit/reference/led/fade-in), [fade out](/microbit/reference/led/fade-out) +[set brightness](/reference/led/set-brightness), [fade in](/reference/led/fade-in), [fade out](/reference/led/fade-out) diff --git a/docs/reference/led/fade-in.md b/docs/reference/led/fade-in.md index ef65030a..fc4fdaf5 100644 --- a/docs/reference/led/fade-in.md +++ b/docs/reference/led/fade-in.md @@ -1,6 +1,6 @@ # Fade in -Gradually increase the [LED screen](/microbit/device/screen) brightness until the LED lights are at full brightness. +Gradually increase the [LED screen](/device/screen) brightness until the LED lights are at full brightness. ```sig led.fadeIn(700); @@ -8,7 +8,7 @@ led.fadeIn(700); ### Parameters -* ms - [Number](/microbit/reference/types/number); the speed by which the screen brightness is increased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness increased. +* ms - [Number](/reference/types/number); the speed by which the screen brightness is increased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness increased. ### Example: fading dot @@ -26,9 +26,9 @@ for (let i = 0; i < 5; i++) { ### Lessons -[glowing sword](/microbit/lessons/glowing-sword) +[glowing sword](/lessons/glowing-sword) ### See also -[brightness](/microbit/reference/led/brightness), [fade out](/microbit/reference/led/fade-out), [set brightness](/microbit/reference/led/set-brightness) +[brightness](/reference/led/brightness), [fade out](/reference/led/fade-out), [set brightness](/reference/led/set-brightness) diff --git a/docs/reference/led/fade-out.md b/docs/reference/led/fade-out.md index f01c926c..bef0a5bd 100644 --- a/docs/reference/led/fade-out.md +++ b/docs/reference/led/fade-out.md @@ -1,6 +1,6 @@ # Fade out -Gradually decrease the [LED screen](/microbit/device/screen) brightness until the LED lights are turned off. +Gradually decrease the [LED screen](/device/screen) brightness until the LED lights are turned off. ```sig led.fadeOut(700); @@ -8,7 +8,7 @@ led.fadeOut(700); ### Parameters -* ms - [Number](/microbit/reference/types/number); the speed that the screen brightness is decreased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness decreased. +* ms - [Number](/reference/types/number); the speed that the screen brightness is decreased, expressed in milliseconds (1,000 milliseconds = 1 second). The smaller the number the faster the screen brightness decreased. ### Example: fade away letter A @@ -22,9 +22,9 @@ led.fadeOut(1000) ### Lessons -[glowing sword](/microbit/lessons/glowing-sword) +[glowing sword](/lessons/glowing-sword) ### See also -[brightness](/microbit/reference/led/brightness), [fade in](/microbit/reference/led/fade-in), [set brightness](/microbit/reference/led/set-brightness) +[brightness](/reference/led/brightness), [fade in](/reference/led/fade-in), [set brightness](/reference/led/set-brightness) diff --git a/docs/reference/led/plot-all.md b/docs/reference/led/plot-all.md index 88056202..a2229aac 100644 --- a/docs/reference/led/plot-all.md +++ b/docs/reference/led/plot-all.md @@ -1,6 +1,6 @@ # Plot All -Turn on all the 25 LEDs on the [LED screen](/microbit/device/screen). +Turn on all the 25 LEDs on the [LED screen](/device/screen). ```sig led.plotAll() @@ -8,9 +8,9 @@ led.plotAll() ### Lessons -[night light](/microbit/lessons/night-light) +[night light](/lessons/night-light) ### See also -[LED screen](/microbit/device/screen), [clear screen](/microbit/reference/basic/clear-screen) +[LED screen](/device/screen), [clear screen](/reference/basic/clear-screen) diff --git a/docs/reference/led/plot-bar-graph.md b/docs/reference/led/plot-bar-graph.md index ca7709ce..c4345c6a 100644 --- a/docs/reference/led/plot-bar-graph.md +++ b/docs/reference/led/plot-bar-graph.md @@ -8,7 +8,7 @@ led.plotBarGraph(2, 20); ### Parameters -* value: [Number](/microbit/reference/types/number) , high : [Number](/microbit/reference/types/number) displays a vertical bar graph based on the value and high value +* value: [Number](/reference/types/number) , high : [Number](/reference/types/number) displays a vertical bar graph based on the value and high value ### Example: chart acceleration @@ -21,5 +21,5 @@ basic.forever(() => { ### See also -[brightness](/microbit/reference/led/brightness), [fade in](/microbit/reference/led/fade-in), [fade out](/microbit/reference/led/fade-out), [LED screen](/microbit/device/screen), [stop animation](/microbit/reference/led/stop-animation) +[brightness](/reference/led/brightness), [fade in](/reference/led/fade-in), [fade out](/reference/led/fade-out), [LED screen](/device/screen), [stop animation](/reference/led/stop-animation) diff --git a/docs/reference/led/plot-leds.md b/docs/reference/led/plot-leds.md index ebdad47f..85155d45 100644 --- a/docs/reference/led/plot-leds.md +++ b/docs/reference/led/plot-leds.md @@ -1,6 +1,6 @@ # Plot LEDs -Display an [Image](/microbit/reference/image/image) on the BBC micro:bit's [LED screen](/microbit/device/screen). NOTE: `basic -> plot image` has been replaced by `basic -> show leds`. +Display an [Image](/reference/image/image) on the BBC micro:bit's [LED screen](/device/screen). NOTE: `basic -> plot image` has been replaced by `basic -> show leds`. ### KindScript syntax @@ -32,9 +32,9 @@ basic.plotLeds(` ### Lessons -[smiley](/microbit/lessons/smiley), [flashing heart](/microbit/lessons/flashing-heart), [magic logo](/microbit/lessons/magic-logo) +[smiley](/lessons/smiley), [flashing heart](/lessons/flashing-heart), [magic logo](/lessons/magic-logo) ### See also -[show animation](/microbit/reference/basic/show-animation), [image](/microbit/reference/image/image), [show image](/microbit/reference/images/show-image), [scroll image](/microbit/reference/images/scroll-image) +[show animation](/reference/basic/show-animation), [image](/reference/image/image), [show image](/reference/images/show-image), [scroll image](/reference/images/scroll-image) diff --git a/docs/reference/led/plot.md b/docs/reference/led/plot.md index 26b1b9ac..893fca51 100644 --- a/docs/reference/led/plot.md +++ b/docs/reference/led/plot.md @@ -1,6 +1,6 @@ # Plot -Turn on a LED light on the [LED screen](/microbit/device/screen). Specify which LED using x, y coordinates. Use [unplot](/microbit/reference/led/unplot) to turn a LED off. +Turn on a LED light on the [LED screen](/device/screen). Specify which LED using x, y coordinates. Use [unplot](/reference/led/unplot) to turn a LED off. ```sig led.plot(0,0); @@ -8,14 +8,14 @@ led.plot(0,0); ### Parameters -* x - [Number](/microbit/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) -* y - [Number](/microbit/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) +* x - [Number](/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) +* y - [Number](/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) -If a parameter is [out of bounds](/microbit/reference/out-of-bounds) (a value other than 0-4), then this function will do nothing. +If a parameter is [out of bounds](/reference/out-of-bounds) (a value other than 0-4), then this function will do nothing. ### x, y coordinates? -The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/microbit/device/screen). +The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). This code turns on the centre LED: @@ -25,11 +25,11 @@ led.plot(2, 2) ### Get the LED on/off state -Use the [point](/microbit/reference/led/point) function to find out if a LED is on or off. +Use the [point](/reference/led/point) function to find out if a LED is on or off. ### Example: a square -The following example uses a [for loop](/microbit/reference/loops/for) and the `plot` function to turn on the LED lights along the edge of the screen, making a square: +The following example uses a [for loop](/reference/loops/for) and the `plot` function to turn on the LED lights along the edge of the screen, making a square: ```blocks for (let i = 0; i < 5; i++) { @@ -43,9 +43,9 @@ for (let i = 0; i < 5; i++) { ### Lessons -[blink](/microbit/lessons/blink), [beautiful image](/microbit/lessons/beautiful-image), [strobe light](/microbit/lessons/strobe-light) +[blink](/lessons/blink), [beautiful image](/lessons/beautiful-image), [strobe light](/lessons/strobe-light) ### See also -[unplot](/microbit/reference/led/unplot), [point](/microbit/reference/led/point), [LED screen](/microbit/device/screen) +[unplot](/reference/led/unplot), [point](/reference/led/point), [LED screen](/device/screen) diff --git a/docs/reference/led/point.md b/docs/reference/led/point.md index c940a219..68c668d2 100644 --- a/docs/reference/led/point.md +++ b/docs/reference/led/point.md @@ -1,6 +1,6 @@ # Point -Get the on/off state of a LED on the [LED screen](/microbit/device/screen). Specify the LED using x, y coordinates. +Get the on/off state of a LED on the [LED screen](/device/screen). Specify the LED using x, y coordinates. ```sig led.point(0,0); @@ -8,18 +8,18 @@ led.point(0,0); ### Parameters -* x - [Number](/microbit/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) -* y - [Number](/microbit/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) +* x - [Number](/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) +* y - [Number](/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) -If a parameter is [out of bounds](/microbit/reference/out-of-bounds) (a value other than 0-4), then this function will return `false`. +If a parameter is [out of bounds](/reference/out-of-bounds) (a value other than 0-4), then this function will return `false`. ### Returns -* [Boolean](/microbit/reference/types/boolean) - `true` if the LED is *on* and `false` if the LED is *off* +* [Boolean](/reference/types/boolean) - `true` if the LED is *on* and `false` if the LED is *off* ### x, y coordinates? -The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/microbit/device/screen). +The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). ### Example: toggle off @@ -33,5 +33,5 @@ if (led.point(1, 1)) { ### See also -[unplot](/microbit/reference/led/unplot), [plot](/microbit/reference/led/plot), [LED screen](/microbit/device/screen), [create image](/microbit/reference/images/create-image) +[unplot](/reference/led/unplot), [plot](/reference/led/plot), [LED screen](/device/screen), [create image](/reference/images/create-image) diff --git a/docs/reference/led/screenshot.md b/docs/reference/led/screenshot.md index 6923ebb2..b320bbaa 100644 --- a/docs/reference/led/screenshot.md +++ b/docs/reference/led/screenshot.md @@ -1,6 +1,6 @@ # Screenshot -Make an [Image](/microbit/reference/image/image) out of the current state of the [LED screen](/microbit/device/screen). +Make an [Image](/reference/image/image) out of the current state of the [LED screen](/device/screen). ```sig led.screenshot(); @@ -12,9 +12,9 @@ led.screenshot(); ### Returns -* an [Image](/microbit/reference/image/image) of what is currently visible on the [LED screen](/microbit/device/screen) +* an [Image](/reference/image/image) of what is currently visible on the [LED screen](/device/screen) ### See also -[create image](/microbit/reference/images/create-image), [LED screen](/microbit/device/screen), +[create image](/reference/images/create-image), [LED screen](/device/screen), diff --git a/docs/reference/led/set-brightness.md b/docs/reference/led/set-brightness.md index 682f5bb1..e3a380f2 100644 --- a/docs/reference/led/set-brightness.md +++ b/docs/reference/led/set-brightness.md @@ -1,6 +1,6 @@ # Set Brightness -Sets the brightness of the [LED screen](/microbit/device/screen). +Sets the brightness of the [LED screen](/device/screen). ```sig led.setBrightness(121) @@ -8,7 +8,7 @@ led.setBrightness(121) ### Parameters -* value : [Number](/microbit/reference/types/number) - the brightness of the LED screen expressed as a number between 0 and 255 +* value : [Number](/reference/types/number) - the brightness of the LED screen expressed as a number between 0 and 255 ### Example: change brightness @@ -23,9 +23,9 @@ led.setBrightness(127) ### Lessons -[night light](/microbit/lessons/night-light) +[night light](/lessons/night-light) ### See also -[brightness](/microbit/reference/led/brightness), [fade in](/microbit/reference/led/fade-in), [fade out](/microbit/reference/led/fade-out), [LED screen](/microbit/device/screen) +[brightness](/reference/led/brightness), [fade in](/reference/led/fade-in), [fade out](/reference/led/fade-out), [LED screen](/device/screen) diff --git a/docs/reference/led/set-display-mode.md b/docs/reference/led/set-display-mode.md index 8246b470..36ec168f 100644 --- a/docs/reference/led/set-display-mode.md +++ b/docs/reference/led/set-display-mode.md @@ -1,6 +1,6 @@ # Set Display Mode -Sets the display mode between black and white and greyscale for rendering [LEDs](/microbit/device/screen). +Sets the display mode between black and white and greyscale for rendering [LEDs](/device/screen). ```sig led.setDisplayMode(DisplayMode.Greyscale) diff --git a/docs/reference/led/toggle-all.md b/docs/reference/led/toggle-all.md index 07aad80c..59e58122 100644 --- a/docs/reference/led/toggle-all.md +++ b/docs/reference/led/toggle-all.md @@ -1,6 +1,6 @@ # Toggle All -Toggle all the 25 LEDs on the [LED screen](/microbit/device/screen) - if an LED is on before the function is called, it will be off after; if an LED is off before the function is called, it will be on after. +Toggle all the 25 LEDs on the [LED screen](/device/screen) - if an LED is on before the function is called, it will be off after; if an LED is off before the function is called, it will be on after. ```sig led.toggleAll() @@ -24,5 +24,5 @@ led.toggleAll() ### See also -[toggle](/microbit/reference/led/toggle), [LED screen](/microbit/device/screen), [clear screen](/microbit/reference/basic/clear-screen) +[toggle](/reference/led/toggle), [LED screen](/device/screen), [clear screen](/reference/basic/clear-screen) diff --git a/docs/reference/led/toggle.md b/docs/reference/led/toggle.md index 849e6168..5cfa5b28 100644 --- a/docs/reference/led/toggle.md +++ b/docs/reference/led/toggle.md @@ -1,6 +1,6 @@ # Toggle -Toggle a LED light on the [LED screen](/microbit/device/screen), meaning to turn it on (off) if it is off (on). Specify which LED using x, y coordinates. +Toggle a LED light on the [LED screen](/device/screen), meaning to turn it on (off) if it is off (on). Specify which LED using x, y coordinates. ```sig led.toggle(0,0) @@ -8,14 +8,14 @@ led.toggle(0,0) ### Parameters -* x - [Number](/microbit/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) -* y - [Number](/microbit/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) +* x - [Number](/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) +* y - [Number](/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) -If a parameter is [out of bounds](/microbit/reference/out-of-bounds) (a value other than 0-4), then this function will do nothing. +If a parameter is [out of bounds](/reference/out-of-bounds) (a value other than 0-4), then this function will do nothing. ### x, y coordinates? -The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/microbit/device/screen). +The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). ### Example @@ -27,5 +27,5 @@ led.toggle(2, 2) ### See also -[toggle all](/microbit/reference/led/toggle-all), [plot](/microbit/reference/led/plot), [unplot](/microbit/reference/led/unplot), [point](/microbit/reference/led/point), [LED screen](/microbit/device/screen), +[toggle all](/reference/led/toggle-all), [plot](/reference/led/plot), [unplot](/reference/led/unplot), [point](/reference/led/point), [LED screen](/device/screen), diff --git a/docs/reference/led/unplot.md b/docs/reference/led/unplot.md index 4e0e6547..f57da650 100644 --- a/docs/reference/led/unplot.md +++ b/docs/reference/led/unplot.md @@ -1,6 +1,6 @@ # Unplot -Turn off a LED light on the [LED screen](/microbit/device/screen). Specify which LED using x, y coordinates. Use [plot](/microbit/reference/led/plot) to turn a LED on. +Turn off a LED light on the [LED screen](/device/screen). Specify which LED using x, y coordinates. Use [plot](/reference/led/plot) to turn a LED on. ```sig led.unplot(0,0) @@ -8,14 +8,14 @@ led.unplot(0,0) ### Parameters -* x - [Number](/microbit/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) -* y - [Number](/microbit/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) +* x - [Number](/reference/types/number); the *x coordinate* or horizontal position (0, 1, 2, 3, 4) +* y - [Number](/reference/types/number); the *y coordinate* or vertical position (0, 1, 2, 3, 4) -If a parameter is [out of bounds](/microbit/reference/out-of-bounds) (a value other than 0-4), this function will do nothing. +If a parameter is [out of bounds](/reference/out-of-bounds) (a value other than 0-4), this function will do nothing. ### x, y coordinates? -The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/microbit/device/screen). +The LED screen is made up of 25 LEDs arranged in a 5x5 grid. To figure out the ``x``, ``y`` coordinates, see [LED screen](/device/screen). This code turns off centre LED: @@ -25,7 +25,7 @@ led.unplot(2, 2) ### Get the LED on/off state -Use the [point](/microbit/reference/led/point) function to find out if a LED is on or off. +Use the [point](/reference/led/point) function to find out if a LED is on or off. ### Example: toggle off @@ -45,9 +45,9 @@ led.unplot(2, 2) ### Lessons -[strobe light](/microbit/lessons/strobe-light) +[strobe light](/lessons/strobe-light) ### See also -[plot](/microbit/reference/led/plot), [point](/microbit/reference/led/point), [LED screen](/microbit/device/screen), [create image](/microbit/reference/images/create-image) +[plot](/reference/led/plot), [point](/reference/led/point), [LED screen](/device/screen), [create image](/reference/images/create-image) diff --git a/docs/reference/logic.md b/docs/reference/logic.md index f42bc6ce..9a81e7ea 100644 --- a/docs/reference/logic.md +++ b/docs/reference/logic.md @@ -1,13 +1,13 @@ # Logic -[if](/microbit/reference/logic/if) +[if](/reference/logic/if) ```blocks if(true) { } ``` -[Boolean](/microbit/reference/types/boolean) values: *true*; *false* +[Boolean](/reference/types/boolean) values: *true*; *false* ```blocks true diff --git a/docs/reference/logic/if.md b/docs/reference/logic/if.md index c1422c3f..824be5ae 100644 --- a/docs/reference/logic/if.md +++ b/docs/reference/logic/if.md @@ -5,7 +5,7 @@ Run code based on a condition. ### @parent blocks/language -Conditionally run code depending on whether a [Boolean](/microbit/reference/types/boolean) condition is true or false. +Conditionally run code depending on whether a [Boolean](/reference/types/boolean) condition is true or false. ### Block Editor @@ -17,13 +17,13 @@ In the Block Editor, click on the dark blue gear icon (see above) to add an *els ![](/static/mb/blocks/game-library/pic0.png) -If the screen [brightness](/microbit/reference/led/brightness) is `< 100`, this code sets the brightness to `255`: +If the screen [brightness](/reference/led/brightness) is `< 100`, this code sets the brightness to `255`: ### Lessons -[love meter](/microbit/lessons/love-meter), [zoomer](/microbit/lessons/zoomer) +[love meter](/lessons/love-meter), [zoomer](/lessons/zoomer) ### See also -[while loop](/microbit/reference/loops/while), [for](/microbit/reference/loops/for), [boolean](/microbit/reference/types/boolean) +[while loop](/reference/loops/while), [for](/reference/loops/for), [boolean](/reference/types/boolean) diff --git a/docs/reference/loops/for.md b/docs/reference/loops/for.md index a6dcdc97..d4ac9890 100644 --- a/docs/reference/loops/for.md +++ b/docs/reference/loops/for.md @@ -20,9 +20,9 @@ for (let k = 0; k < 4; k++) { ### Lessons -[looper](/microbit/lessons/looper) +[looper](/lessons/looper) ### See also -[while](/microbit/reference/loops/while), [if](/microbit/blocks/if) +[while](/reference/loops/while), [if](/blocks/if) diff --git a/docs/reference/loops/while.md b/docs/reference/loops/while.md index b2a04469..b6d6fe4c 100644 --- a/docs/reference/loops/while.md +++ b/docs/reference/loops/while.md @@ -5,7 +5,7 @@ Repeat code in a loop while a condition is true. ### @parent blocks/language -Repeat code while a [Boolean](/microbit/reference/types/boolean) `condition` is true. +Repeat code while a [Boolean](/reference/types/boolean) `condition` is true. ### ~hide @@ -19,7 +19,7 @@ let condition = false ![](/static/mb/string-0.png) -The while loop has a *condition* that evaluates to a [Boolean](/microbit/reference/types/boolean) value. After the `do` keyword, add the code that you want to run while the `condition` is `true`. The while loop concludes with `end while`. +The while loop has a *condition* that evaluates to a [Boolean](/reference/types/boolean) value. After the `do` keyword, add the code that you want to run while the `condition` is `true`. The while loop concludes with `end while`. The condition is tested before any code runs. Which means that if the condition is false, the code inside the loop doesn't execute. @@ -35,9 +35,9 @@ The following example uses a while loop to make a diagonal line on the LED scree ### Lessons -[rotation animation](/microbit/lessons/rotation-animation) +[rotation animation](/lessons/rotation-animation) ### See also -[on button pressed](/microbit/reference/input/on-button-pressed), [for](/microbit/reference/loops/for), [if](/microbit/blocks/if), [forever](/microbit/reference/basic/forever) +[on button pressed](/reference/input/on-button-pressed), [for](/reference/loops/for), [if](/blocks/if), [forever](/reference/basic/forever) diff --git a/docs/reference/math/math.md b/docs/reference/math/math.md index 24c64151..b4fefc22 100644 --- a/docs/reference/math/math.md +++ b/docs/reference/math/math.md @@ -4,15 +4,15 @@ Functions in the math library. ### @parent blocks/language -The math library includes math related functions that you can use with [Numbers](/microbit/reference/types/number). +The math library includes math related functions that you can use with [Numbers](/reference/types/number). -* In the [Block editor](/microbit/blocks/editor), click **maths** on the left to see the available blocks +* In the [Block editor](/blocks/editor), click **maths** on the left to see the available blocks The functions available in Block Editor are: ### abs -math `->` abs (x : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` abs (x : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the absolute value of input parameter `x` @@ -20,7 +20,7 @@ returns the absolute value of input parameter `x` ### max -math `->` max (x : [Number](/microbit/reference/types/number), y : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` max (x : [Number](/reference/types/number), y : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the larger of two input numbers (`x` and `y`) @@ -28,7 +28,7 @@ returns the larger of two input numbers (`x` and `y`) ### min -math `->` min (x : [Number](/microbit/reference/types/number), y : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` min (x : [Number](/reference/types/number), y : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) returns the smaller of two input numbers (`x` and `y`) @@ -36,17 +36,17 @@ returns the smaller of two input numbers (`x` and `y`) ### random -math `->` random (limit : [Number](/microbit/reference/types/number)) *returns* [Number](/microbit/reference/types/number) +math `->` random (limit : [Number](/reference/types/number)) *returns* [Number](/reference/types/number) -returns a random [Number](/microbit/reference/types/number) between 0 and the parameter *limit* +returns a random [Number](/reference/types/number) between 0 and the parameter *limit* ![](/static/mb/blocks/math-3.png) ### Lessons -[love meter](/microbit/lessons/love-meter) +[love meter](/lessons/love-meter) ### See also -[Block Editor documentation](/microbit/blocks/contents), [Number](/microbit/reference/types/number) +[Block Editor documentation](/blocks/contents), [Number](/reference/types/number) diff --git a/docs/reference/music/change-tempo.md b/docs/reference/music/change-tempo.md index a7c93408..adb1c5cd 100644 --- a/docs/reference/music/change-tempo.md +++ b/docs/reference/music/change-tempo.md @@ -12,9 +12,9 @@ music.changeTempoBy(20) ### Parameters -* `bpm` : [Number](/microbit/reference/types/number) - change the tempo by beats per minute +* `bpm` : [Number](/reference/types/number) - change the tempo by beats per minute ### See also -[play tone](/microbit/reference/music/play-tone), [ring tone](/microbit/reference/music/ring-tone) +[play tone](/reference/music/play-tone), [ring tone](/reference/music/ring-tone) diff --git a/docs/reference/music/play-tone.md b/docs/reference/music/play-tone.md index e002130f..57b06cf9 100644 --- a/docs/reference/music/play-tone.md +++ b/docs/reference/music/play-tone.md @@ -12,8 +12,8 @@ music.playTone(440, 120) ### Parameters -* `frequency` : [Number](/microbit/reference/types/number) - the frequency of the note (in Herz) -* `ms`: [Number](/microbit/reference/types/number) - the duration of the note (milliseconds) +* `frequency` : [Number](/reference/types/number) - the frequency of the note (in Herz) +* `ms`: [Number](/reference/types/number) - the duration of the note (milliseconds) ## Example @@ -24,5 +24,5 @@ music.playTone(freq, 1000) ### See also -[rest](/microbit/reference/music/rest), [ring tone](/microbit/reference/music/ring-tone) , [tempo](/microbit/reference/music/tempo), [set tempo](/microbit/reference/music/set-tempo), [change tempo by](/microbit/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/music/rest.md b/docs/reference/music/rest.md index 066f2ef1..804ffb59 100644 --- a/docs/reference/music/rest.md +++ b/docs/reference/music/rest.md @@ -12,7 +12,7 @@ music.rest(400) ### Parameters -* `ms`: [Number](/microbit/reference/types/number) - the duration of the rest (milliseconds) +* `ms`: [Number](/reference/types/number) - the duration of the rest (milliseconds) ## Example @@ -24,5 +24,5 @@ music.rest(1000) ### See also -[play tone](/microbit/reference/music/play-tone), [ring tone](/microbit/reference/music/ring-tone) , [tempo](/microbit/reference/music/tempo), [set tempo](/microbit/reference/music/set-tempo), [change tempo by](/microbit/reference/music/change-tempo-by) +[play tone](/reference/music/play-tone), [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/music/ring-tone.md b/docs/reference/music/ring-tone.md index dd1df69e..6e214134 100644 --- a/docs/reference/music/ring-tone.md +++ b/docs/reference/music/ring-tone.md @@ -12,7 +12,7 @@ music.ringTone(440) ### Parameters -* `frequency` : [Number](/microbit/reference/types/number) - Plays a tone in (Hz) +* `frequency` : [Number](/reference/types/number) - Plays a tone in (Hz) ### Example @@ -26,5 +26,5 @@ basic.forever(() => { ### See also -[rest](/microbit/reference/music/rest), [play tone](/microbit/reference/music/play-tone) , [tempo](/microbit/reference/music/tempo), [set tempo](/microbit/reference/music/set-tempo), [change tempo by](/microbit/reference/music/change-tempo-by) +[rest](/reference/music/rest), [play tone](/reference/music/play-tone) , [tempo](/reference/music/tempo), [set tempo](/reference/music/set-tempo), [change tempo by](/reference/music/change-tempo-by) diff --git a/docs/reference/music/set-tempo.md b/docs/reference/music/set-tempo.md index 93c45a90..3fda9b69 100644 --- a/docs/reference/music/set-tempo.md +++ b/docs/reference/music/set-tempo.md @@ -8,9 +8,9 @@ music.setTempo(60) ### Parameters -* Returns : [Number](/microbit/reference/types/number) - sets the tempo in beats per minute +* Returns : [Number](/reference/types/number) - sets the tempo in beats per minute ### See also -[play tone](/microbit/reference/music/play-tone), [ring tone](/microbit/reference/music/ring-tone) , [rest](/microbit/reference/music/rest), [tempo](/microbit/reference/music/tempo), [change tempo by](/microbit/reference/music/change-tempo-by) +[play tone](/reference/music/play-tone), [ring tone](/reference/music/ring-tone) , [rest](/reference/music/rest), [tempo](/reference/music/tempo), [change tempo by](/reference/music/change-tempo-by) diff --git a/docs/reference/music/tempo.md b/docs/reference/music/tempo.md index c6c7b844..30f0bf61 100644 --- a/docs/reference/music/tempo.md +++ b/docs/reference/music/tempo.md @@ -8,9 +8,9 @@ music.tempo() ### Parameters -* Returns : [Number](/microbit/reference/types/number) - returns the tempo in beats per minute +* Returns : [Number](/reference/types/number) - returns the tempo in beats per minute ### See also -[play tone](/microbit/reference/music/play-tone), [ring tone](/microbit/reference/music/ring-tone) , [rest](/microbit/reference/music/rest), [set tempo](/microbit/reference/music/set-tempo), [change tempo by](/microbit/reference/music/change-tempo-by) +[play tone](/reference/music/play-tone), [ring tone](/reference/music/ring-tone) , [rest](/reference/music/rest), [set tempo](/reference/music/set-tempo), [change tempo by](/reference/music/change-tempo-by) diff --git a/docs/reference/offline.md b/docs/reference/offline.md index f8088b66..6ed67f79 100644 --- a/docs/reference/offline.md +++ b/docs/reference/offline.md @@ -24,7 +24,7 @@ The micro:bit automatically saves and synchronises scripts for signed-in users t ## The new in-browser compiler -The compilation from a script to ARM machine code is now done entirely in the browser (read the [in depth story](https://www.touchdevelop.com/docs/touch-develop-in-208-bits) about building the compiler). The new compiler is used by the Block Editor, Touch Develop and Code Kingdoms to create a .hex file solely within the confines of your web browser (no Internet connection is needed). The micro:bit compilation process (see page 10 in the [Quick Start Guide](/microbit/js/quick-start)) has been updated below to reflect the new compiler architecture, as shown below: +The compilation from a script to ARM machine code is now done entirely in the browser (read the [in depth story](https://www.touchdevelop.com/docs/touch-develop-in-208-bits) about building the compiler). The new compiler is used by the Block Editor, Touch Develop and Code Kingdoms to create a .hex file solely within the confines of your web browser (no Internet connection is needed). The micro:bit compilation process (see page 10 in the [Quick Start Guide](/js/quick-start)) has been updated below to reflect the new compiler architecture, as shown below: ![](/static/mb/offline-2.png) diff --git a/docs/reference/out-of-bounds.md b/docs/reference/out-of-bounds.md index 4ad0a935..eeaf1989 100644 --- a/docs/reference/out-of-bounds.md +++ b/docs/reference/out-of-bounds.md @@ -4,7 +4,7 @@ The behavior of functions whose parameter values are out of bounds. Many of the BBC micro:bit functions have parameters. If a parameter is an unexpected value, the parameter is considered *out of bounds*. -For example, the [plot](/microbit/reference/led/plot) function has two parameters: +For example, the [plot](/reference/led/plot) function has two parameters: ### syntax @@ -39,5 +39,5 @@ let on = led.point(5, -5) ### see also -For more information on the out-of-bounds behavior of a function, see the documentation for that [function](/microbit/js/contents). +For more information on the out-of-bounds behavior of a function, see the documentation for that [function](/js/contents). diff --git a/docs/reference/pins/analog-pitch.md b/docs/reference/pins/analog-pitch.md index 62213a90..b229875c 100644 --- a/docs/reference/pins/analog-pitch.md +++ b/docs/reference/pins/analog-pitch.md @@ -1,6 +1,6 @@ # Analog Pitch -Emits a Pulse With Modulation (PWM) signal to the current pitch [pin](/microbit/device/pins). Use [analog set pitch pin](/microbit/reference/pins/analog-set-pitch-pin) to set the pitch pin. +Emits a Pulse With Modulation (PWM) signal to the current pitch [pin](/device/pins). Use [analog set pitch pin](/reference/pins/analog-set-pitch-pin) to set the pitch pin. ```sig pins.analogPitch(440, 300) @@ -8,8 +8,8 @@ pins.analogPitch(440, 300) ### Parameters -* `frequency` : [Number](/microbit/reference/types/number) -* `ms`: [Number](/microbit/reference/types/number) +* `frequency` : [Number](/reference/types/number) +* `ms`: [Number](/reference/types/number) ### Example @@ -27,5 +27,5 @@ pins.analogPitch(frequency1, duration) ### See also -[micro:bit pins](/microbit/device/pins), [analog set period](/microbit/reference/pins/analog-set-period), [analog set pitch pin](/microbit/reference/pins/analog-set-pitch-pin) +[micro:bit pins](/device/pins), [analog set period](/reference/pins/analog-set-period), [analog set pitch pin](/reference/pins/analog-set-pitch-pin) diff --git a/docs/reference/pins/analog-read-pin.md b/docs/reference/pins/analog-read-pin.md index 0f07d0ae..d1ee83bd 100644 --- a/docs/reference/pins/analog-read-pin.md +++ b/docs/reference/pins/analog-read-pin.md @@ -1,6 +1,6 @@ # Analog Read Pin -Read the specified [pin](/microbit/device/pins) (P0, P1, P2) as analog. +Read the specified [pin](/device/pins) (P0, P1, P2) as analog. ```sig pins.analogReadPin(AnalogPin.P0) @@ -12,7 +12,7 @@ pins.analogReadPin(AnalogPin.P0) ### Returns -* [Number](/microbit/reference/types/number) - a number between 0 and 1023 (included) +* [Number](/reference/types/number) - a number between 0 and 1023 (included) The following code reads `P1` and charts it on the screen: @@ -25,5 +25,5 @@ basic.forever(() => { ### See also -[micro:bit pins](/microbit/device/pins), [on pin pressed](/microbit/reference/input/on-pin-pressed), [analog write pin](/microbit/reference/pins/analog-write-pin), [digital read pin](/microbit/reference/pins/digital-read-pin), [digital write pin](/microbit/reference/pins/digital-write-pin) +[micro:bit pins](/device/pins), [on pin pressed](/reference/input/on-pin-pressed), [analog write pin](/reference/pins/analog-write-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin) diff --git a/docs/reference/pins/analog-set-period.md b/docs/reference/pins/analog-set-period.md index 5c49ad27..b881540d 100644 --- a/docs/reference/pins/analog-set-period.md +++ b/docs/reference/pins/analog-set-period.md @@ -1,6 +1,6 @@ # Analog Set Period -Configures the period of the Pulse Width Modulation (PWM) on the specified analog [pin](/microbit/device/pins) (``P0``, ``P1`` or ``P2``). Prior to calling this function, the given pin should be set as analog. +Configures the period of the Pulse Width Modulation (PWM) on the specified analog [pin](/device/pins) (``P0``, ``P1`` or ``P2``). Prior to calling this function, the given pin should be set as analog. ```sig pins.analogSetPeriod(AnalogPin.P0, 20000) @@ -8,8 +8,8 @@ pins.analogSetPeriod(AnalogPin.P0, 20000) ### Parameters -* `name` - [String](/microbit/reference/types/string); the pin name ("P0", "P1", or "P2") -* `micros` - a [Number](/microbit/reference/types/number) representing the micro-seconds of the analog period. +* `name` - [String](/reference/types/string); the pin name ("P0", "P1", or "P2") +* `micros` - a [Number](/reference/types/number) representing the micro-seconds of the analog period. The following code @@ -20,5 +20,5 @@ pins.analogSetPeriod(AnalogPin.P0, 20000) ### See also -[micro:bit pins](/microbit/device/pins), [on pin pressed](/microbit/reference/input/on-pin-pressed), [analog read pin](/microbit/reference/pins/analog-read-pin), [digital read pin](/microbit/reference/pins/digital-read-pin), [digital write pin](/microbit/reference/pins/digital-write-pin) +[micro:bit pins](/device/pins), [on pin pressed](/reference/input/on-pin-pressed), [analog read pin](/reference/pins/analog-read-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin) diff --git a/docs/reference/pins/analog-set-pitch-pin.md b/docs/reference/pins/analog-set-pitch-pin.md index 172b31b0..f28f1815 100644 --- a/docs/reference/pins/analog-set-pitch-pin.md +++ b/docs/reference/pins/analog-set-pitch-pin.md @@ -1,6 +1,6 @@ # Analog Set Pitch Pin -Specify which [pin](/microbit/device/pins) (P0, P1, P2) is used to generate tones. +Specify which [pin](/device/pins) (P0, P1, P2) is used to generate tones. ```sig pins.analogSetPitchPin(AnalogPin.P0) @@ -8,7 +8,7 @@ pins.analogSetPitchPin(AnalogPin.P0) ### Parameters -* `name` - [String](/microbit/reference/types/string); the pin name ("P0", "P1", or "P2") +* `name` - [String](/reference/types/string); the pin name ("P0", "P1", or "P2") ### Example @@ -26,5 +26,5 @@ pins.analogPitch(frequency, duration) ### See also -[micro:bit pins](/microbit/device/pins), [analog set period](/microbit/reference/pins/analog-set-period), [analog pitch](/microbit/reference/pins/analog-pitch) +[micro:bit pins](/device/pins), [analog set period](/reference/pins/analog-set-period), [analog pitch](/reference/pins/analog-pitch) diff --git a/docs/reference/pins/analog-write-pin.md b/docs/reference/pins/analog-write-pin.md index d1a354cb..291fdcba 100644 --- a/docs/reference/pins/analog-write-pin.md +++ b/docs/reference/pins/analog-write-pin.md @@ -1,6 +1,6 @@ # Analog Write Pin -Write to the specified [pin](/microbit/device/pins) (P0, P1, P2) as analog. +Write to the specified [pin](/device/pins) (P0, P1, P2) as analog. ```sig pins.analogWritePin(AnalogPin.P0, 400) @@ -8,8 +8,8 @@ pins.analogWritePin(AnalogPin.P0, 400) ### Parameters -* `name` - [String](/microbit/reference/types/string); the pin name ("P0", "P1", or "P2") -* `value` - a [Number](/microbit/reference/types/number) between 0 and 1023 included +* `name` - [String](/reference/types/string); the pin name ("P0", "P1", or "P2") +* `value` - a [Number](/reference/types/number) between 0 and 1023 included The following code writes `1023` to the `P0` pin: @@ -19,5 +19,5 @@ pins.analogWritePin(AnalogPin.P0, 1023) ### See also -[micro:bit pins](/microbit/device/pins), [on pin pressed](/microbit/reference/input/on-pin-pressed), [analog read pin](/microbit/reference/pins/analog-read-pin), [digital read pin](/microbit/reference/pins/digital-read-pin), [digital write pin](/microbit/reference/pins/digital-write-pin) +[micro:bit pins](/device/pins), [on pin pressed](/reference/input/on-pin-pressed), [analog read pin](/reference/pins/analog-read-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin) diff --git a/docs/reference/pins/digital-read-pin.md b/docs/reference/pins/digital-read-pin.md index 1a51366a..22ff2443 100644 --- a/docs/reference/pins/digital-read-pin.md +++ b/docs/reference/pins/digital-read-pin.md @@ -2,7 +2,7 @@ The digital read pin function. -Digitally read the specified [pin](/microbit/device/pins) (``P0``, ``P1``, ``P2``, ...) as digital. **Some pins are also used by the display, read the [pin documentation ](/microbit/device/pins) carefully.** +Digitally read the specified [pin](/device/pins) (``P0``, ``P1``, ``P2``, ...) as digital. **Some pins are also used by the display, read the [pin documentation ](/device/pins) carefully.** ```sig pins.digitalReadPin(DigitalPin.P3) @@ -14,7 +14,7 @@ pins.digitalReadPin(DigitalPin.P3) ### Returns -* [Number](/microbit/reference/types/number) - 0 or 1 +* [Number](/reference/types/number) - 0 or 1 ### Example: football score keeper @@ -36,5 +36,5 @@ basic.forever(() => { ### See also -[micro:bit pins](/microbit/device/pins), [digital write pin](/microbit/reference/pins/digital-write-pin), [analog read pin](/microbit/reference/pins/analog-read-pin), [analog write pin](/microbit/reference/pins/analog-write-pin), [on pin pressed](/microbit/reference/input/on-pin-pressed), [pin is pressed](/microbit/reference/input/pin-is-pressed) +[micro:bit pins](/device/pins), [digital write pin](/reference/pins/digital-write-pin), [analog read pin](/reference/pins/analog-read-pin), [analog write pin](/reference/pins/analog-write-pin), [on pin pressed](/reference/input/on-pin-pressed), [pin is pressed](/reference/input/pin-is-pressed) diff --git a/docs/reference/pins/digital-write-pin.md b/docs/reference/pins/digital-write-pin.md index 0cab9667..e60c245d 100644 --- a/docs/reference/pins/digital-write-pin.md +++ b/docs/reference/pins/digital-write-pin.md @@ -1,6 +1,6 @@ # Digital Write Pin -Write the value ``0`` or ``1`` to the specified (digital) [pin](/microbit/device/pins). **Some pins are also used by the display, read the [pin documentation ](/microbit/device/pins) carefully.** +Write the value ``0`` or ``1`` to the specified (digital) [pin](/device/pins). **Some pins are also used by the display, read the [pin documentation ](/device/pins) carefully.** ```sig pins.digitalWritePin(DigitalPin.P1, 1) @@ -9,7 +9,7 @@ pins.digitalWritePin(DigitalPin.P1, 1) ### Parameters * name - the pin name (``P0``, ``P1``, ``P2``, ...) -* value - [Number](/microbit/reference/types/number); 0 or 1 +* value - [Number](/reference/types/number); 0 or 1 ### Example: football score keeper @@ -31,5 +31,5 @@ basic.forever(() => { ### See also -[micro:bit pins](/microbit/device/pins), [digital read pin](/microbit/reference/pins/digital-read-pin), [analog read pin](/microbit/reference/pins/analog-read-pin), [analog write pin](/microbit/reference/pins/analog-write-pin), [on pin pressed](/microbit/reference/input/on-pin-pressed), [pin is pressed](/microbit/reference/pins/pin-is-pressed) +[micro:bit pins](/device/pins), [digital read pin](/reference/pins/digital-read-pin), [analog read pin](/reference/pins/analog-read-pin), [analog write pin](/reference/pins/analog-write-pin), [on pin pressed](/reference/input/on-pin-pressed), [pin is pressed](/reference/pins/pin-is-pressed) diff --git a/docs/reference/pins/map.md b/docs/reference/pins/map.md index cfd8bfe9..5e7ea593 100644 --- a/docs/reference/pins/map.md +++ b/docs/reference/pins/map.md @@ -10,11 +10,11 @@ pins.map(0, 0, 4, 0, 1023); ### Parameters -* ``value``: [Number](/microbit/reference/types/number) - the value to map -* ``from low``: [Number](/microbit/reference/types/number) - lower bound of the origin interval -* ``from high``: [Number](/microbit/reference/types/number) - upper bound of the origin interval -* ``to low``: [Number](/microbit/reference/types/number) - lower bound of the target interval -* ``to high``: [Number](/microbit/reference/types/number) - upper bound of the target interval +* ``value``: [Number](/reference/types/number) - the value to map +* ``from low``: [Number](/reference/types/number) - lower bound of the origin interval +* ``from high``: [Number](/reference/types/number) - upper bound of the origin interval +* ``to low``: [Number](/reference/types/number) - lower bound of the target interval +* ``to high``: [Number](/reference/types/number) - upper bound of the target interval ## Example @@ -28,5 +28,5 @@ led.plot(0, index) ### See also -[analog read pin](/microbit/reference/pins/analog-read-pin) +[analog read pin](/reference/pins/analog-read-pin) diff --git a/docs/reference/pins/servo-set-pulse.md b/docs/reference/pins/servo-set-pulse.md index 92e82def..f0774686 100644 --- a/docs/reference/pins/servo-set-pulse.md +++ b/docs/reference/pins/servo-set-pulse.md @@ -1,6 +1,6 @@ # Servo Set Pulse -Configures the pin [pin](/microbit/device/pins) (``P0``, ``P1`` or ``P2``) as an analog/PWM output if it isn't already, configures the period to be 20ms, and sets the pulse width, based on the value it is given. +Configures the pin [pin](/device/pins) (``P0``, ``P1`` or ``P2``) as an analog/PWM output if it isn't already, configures the period to be 20ms, and sets the pulse width, based on the value it is given. ```sig pins.servoSetPulse(AnalogPin.P1, 1500) @@ -8,8 +8,8 @@ pins.servoSetPulse(AnalogPin.P1, 1500) ### Parameters -* `name` - [String](/microbit/reference/types/string); the pin name ("P0", "P1", or "P2") -* `micros` - a [Number](/microbit/reference/types/number) representing the micro-seconds of the pulse width. +* `name` - [String](/reference/types/string); the pin name ("P0", "P1", or "P2") +* `micros` - a [Number](/reference/types/number) representing the micro-seconds of the pulse width. ### Example @@ -21,5 +21,5 @@ pins.servoSetPulse(AnalogPin.P0, 1000) ### See also -[BBC micro:bit pins](/microbit/device/pins), [on pin pressed](/microbit/reference/input/on-pin-pressed), [analog read pin](/microbit/reference/pins/analog-read-pin), [digital read pin](/microbit/reference/pins/digital-read-pin), [digital write pin](/microbit/reference/pins/digital-write-pin) +[BBC micro:bit pins](/device/pins), [on pin pressed](/reference/input/on-pin-pressed), [analog read pin](/reference/pins/analog-read-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin) diff --git a/docs/reference/pins/servo-write-pin.md b/docs/reference/pins/servo-write-pin.md index fad1f4e0..dfac6efe 100644 --- a/docs/reference/pins/servo-write-pin.md +++ b/docs/reference/pins/servo-write-pin.md @@ -1,6 +1,6 @@ # Servo Write Pin -Writes a value to the servo on to the specified [pin](/microbit/device/pins) (``P0``, ``P1``, ``P2``), controlling the shaft accordingly. +Writes a value to the servo on to the specified [pin](/device/pins) (``P0``, ``P1``, ``P2``), controlling the shaft accordingly. * on a standard servo, this will set the angle of the shaft (in degrees), moving the shaft to that orientation. * on a continuous rotation servo, this will set the speed of the servo (with 0 being full-speed in one direction, 180 being full speed in the other, and a value near 90 being no movement). @@ -11,8 +11,8 @@ pins.servoWritePin(AnalogPin.P0, 180) ### Parameters -* `name` - [String](/microbit/reference/types/string); the pin name ("P0", "P1", or "P2") -* `value` - a [Number](/microbit/reference/types/number) between 0 and 180 included +* `name` - [String](/reference/types/string); the pin name ("P0", "P1", or "P2") +* `value` - a [Number](/reference/types/number) between 0 and 180 included ### Examples @@ -41,5 +41,5 @@ pins.servoWritePin(AnalogPin.P0, 0) ### See also -[BBC micro:bit pins](/microbit/device/pins), [servo set pulse](/microbit/reference/pins/servo-set-pulse) +[BBC micro:bit pins](/device/pins), [servo set pulse](/reference/pins/servo-set-pulse) diff --git a/docs/reference/radio/on-data-received.md b/docs/reference/radio/on-data-received.md index 9929d501..c6bc1075 100644 --- a/docs/reference/radio/on-data-received.md +++ b/docs/reference/radio/on-data-received.md @@ -31,5 +31,5 @@ radio.onDataReceived(() => { ### See also -[receive number](/microbit/radio/receive-number), [send number](/microbit/radio/send-number), [set group](/microbit/reference/radio/set-group) +[receive number](/radio/receive-number), [send number](/radio/send-number), [set group](/reference/radio/set-group) diff --git a/docs/reference/radio/receive-number.md b/docs/reference/radio/receive-number.md index 2c43f86b..da7b1679 100644 --- a/docs/reference/radio/receive-number.md +++ b/docs/reference/radio/receive-number.md @@ -16,7 +16,7 @@ radio.receiveNumber() ### Return value -* the first number [number](/microbit/reference/types/number) of the packet if any. `0` otherwise. +* the first number [number](/reference/types/number) of the packet if any. `0` otherwise. ### Examples @@ -30,5 +30,5 @@ radio.onDataReceived(() => { ### See also -[receive number](/microbit/input/receive-number), [on data received](/microbit/reference/radio/on-data-received) +[receive number](/input/receive-number), [on data received](/reference/radio/on-data-received) diff --git a/docs/reference/radio/send-number.md b/docs/reference/radio/send-number.md index 7cf7432c..5ed65bff 100644 --- a/docs/reference/radio/send-number.md +++ b/docs/reference/radio/send-number.md @@ -30,5 +30,5 @@ input.onButtonPressed(Button.A, () => { ### See also -[receive number](/microbit/input/receive-number), [on data received](/microbit/reference/radio/on-data-received) +[receive number](/input/receive-number), [on data received](/reference/radio/on-data-received) diff --git a/docs/reference/radio/set-group.md b/docs/reference/radio/set-group.md index 38031c34..475ab1b9 100644 --- a/docs/reference/radio/set-group.md +++ b/docs/reference/radio/set-group.md @@ -18,7 +18,7 @@ radio.setGroup(1) ### Parameters -* ``id`` -- a [number](/microbit/number) between ``0`` and ``255``. +* ``id`` -- a [number](/number) between ``0`` and ``255``. ### Example @@ -30,5 +30,5 @@ radio.setGroup(128) ### See also -[receive number](/microbit/radio/receive-number), [send number](/microbit/radio/send-number), [on data received](/microbit/radio/on-data-received) +[receive number](/radio/receive-number), [send number](/radio/send-number), [on data received](/radio/on-data-received) diff --git a/docs/reference/types.md b/docs/reference/types.md index e522a8c9..54d3827c 100644 --- a/docs/reference/types.md +++ b/docs/reference/types.md @@ -6,12 +6,12 @@ Touch Develop types. A *type* refers to a class of data and the operations permitted on that data. The following types are supported by Block Editor for the BBC micro:bit: -* **[String](/microbit/reference/types/string)**: a sequence of characters -* **[Number](/microbit/reference/types/number)**: an integer number (32-bit signed) -* **[Boolean](/microbit/reference/types/boolean)**: true or false -* **[Image](/microbit/blocks/image)**: a collection of [micro:bit LED states](/microbit/device/screen) (on/off) +* **[String](/reference/types/string)**: a sequence of characters +* **[Number](/reference/types/number)**: an integer number (32-bit signed) +* **[Boolean](/reference/types/boolean)**: true or false +* **[Image](/blocks/image)**: a collection of [micro:bit LED states](/device/screen) (on/off) ### see also -[local variables](/microbit/reference/variables/var), [assignment operator](/microbit/reference/variables/assign) +[local variables](/reference/variables/var), [assignment operator](/reference/variables/assign) diff --git a/docs/reference/types/boolean.md b/docs/reference/types/boolean.md index 22272580..db8dcbea 100644 --- a/docs/reference/types/boolean.md +++ b/docs/reference/types/boolean.md @@ -4,7 +4,7 @@ true or false. ### @parent blocks/language -A Boolean has one of two possible values: `true`; `false`. Boolean (logical) operators (*and*, *or*, *not*) take Boolean inputs and yields a Boolean value. Comparison operators on other types ([numbers](/microbit/reference/types/number), [strings](/microbit/reference/types/string) yields a Boolean value. +A Boolean has one of two possible values: `true`; `false`. Boolean (logical) operators (*and*, *or*, *not*) take Boolean inputs and yields a Boolean value. Comparison operators on other types ([numbers](/reference/types/number), [strings](/reference/types/string) yields a Boolean value. The following blocks represent the true and false Boolean values, which can be plugged in anywhere a Boolean value is expected: @@ -21,7 +21,7 @@ true || false; !true; ``` -The next six blocks represent comparison operators that yield a Boolean value. Most comparisons you will do involve [numbers](/microbit/reference/types/number): +The next six blocks represent comparison operators that yield a Boolean value. Most comparisons you will do involve [numbers](/reference/types/number): ```blocks 42 == 0; @@ -32,7 +32,7 @@ The next six blocks represent comparison operators that yield a Boolean value. M 42 >= 0; ``` -Boolean values and operators are often used with an [if](/microbit/blocks/if) or [while](/microbit/reference/loops/while) statement to determine which code will execute next. For example: +Boolean values and operators are often used with an [if](/blocks/if) or [while](/reference/loops/while) statement to determine which code will execute next. For example: ### Functions that return a Boolean @@ -96,13 +96,13 @@ if(x < 5) { } ``` -See the documentation on [Numbers](/microbit/reference/types/number) for more information on comparing two Numbers. You can also [compare strings](/microbit/reference/types/string-functions) using the `equals` function. +See the documentation on [Numbers](/reference/types/number) for more information on comparing two Numbers. You can also [compare strings](/reference/types/string-functions) using the `equals` function. ### Lessons -[rotation animation](/microbit/lessons/rotation-animation), [love meter](/microbit/lessons/love-meter), [zoomer](/microbit/lessons/zoomer) +[rotation animation](/lessons/rotation-animation), [love meter](/lessons/love-meter), [zoomer](/lessons/zoomer) ### See also -[if](/microbit/blocks/if), [while](/microbit/reference/loops/while), [number](/microbit/reference/types/number) +[if](/blocks/if), [while](/reference/loops/while), [number](/reference/types/number) diff --git a/docs/reference/types/number.md b/docs/reference/types/number.md index 848c2231..75b9601a 100644 --- a/docs/reference/types/number.md +++ b/docs/reference/types/number.md @@ -8,23 +8,23 @@ A *Number* is an integer such as `42` or `-42`. More precisely, a *Number* is a ### Declare a number variable -Use the [var statement](/microbit/reference/variables/var) and the [assignment operator](/microbit/reference/variables/assign) declare a *local* number variable. Like this: +Use the [var statement](/reference/variables/var) and the [assignment operator](/reference/variables/assign) declare a *local* number variable. Like this: ![](/static/mb/blocks/number-0.png) ### Arithmetic operators -The following arithmetic operators work on numbers and return a [Number](/microbit/reference/types/number): +The following arithmetic operators work on numbers and return a [Number](/reference/types/number): * addition: `1 + 3` * subtraction: `1 - 3 ` * multiplication: `3 * 2` * integer division: `7 / 3` -* modulo is available through the [math library](/microbit/blocks/math) +* modulo is available through the [math library](/blocks/math) ### Relational operators -The following relational operators work on numbers and return a [Boolean](/microbit/reference/types/boolean): +The following relational operators work on numbers and return a [Boolean](/reference/types/boolean): * equality: `(3 + 1) = 4` * inequality: `3 != 4` @@ -35,27 +35,27 @@ The following relational operators work on numbers and return a [Boolean](/micro ### Show number -The [show number](/microbit/reference/basic/show-number) function displays a number on the [LED screen](/microbit/device/screen). For example, this code displays the number 42: +The [show number](/reference/basic/show-number) function displays a number on the [LED screen](/device/screen). For example, this code displays the number 42: ![](/static/mb/blocks/number-1.png) ### Functions that return a number -Some functions return a number, which you can store in a variable. For example the following code gets the display brightness (using the [brightness function](/microbit/reference/led/brightness)) and stores the value in a variable named `brightness`: +Some functions return a number, which you can store in a variable. For example the following code gets the display brightness (using the [brightness function](/reference/led/brightness)) and stores the value in a variable named `brightness`: ![](/static/mb/blocks/number-2.png) ### Math functions -The [math library](/microbit/blocks/math) includes math related functions. In the [Block Editor](/microbit/blocks/editor), click `math` on the Code Keyboard to see the math functions. For example, the `absolute` function returns the returns the absolute value of input parameter `x`: +The [math library](/blocks/math) includes math related functions. In the [Block Editor](/blocks/editor), click `math` on the Code Keyboard to see the math functions. For example, the `absolute` function returns the returns the absolute value of input parameter `x`: ![](/static/mb/blocks/number-3.png) ### Lessons -[game counter](/microbit/lessons/game-counter), [love meter](/microbit/lessons/love-meter) +[game counter](/lessons/game-counter), [love meter](/lessons/love-meter) ### See also -[math library](/microbit/blocks/math), [var](/microbit/reference/variables/var), [Boolean](/microbit/reference/types/boolean), [show number](/microbit/reference/basic/show-number) +[math library](/blocks/math), [var](/reference/variables/var), [Boolean](/reference/types/boolean), [show number](/reference/basic/show-number) diff --git a/docs/reference/types/string.md b/docs/reference/types/string.md index f4ee7643..274ade35 100644 --- a/docs/reference/types/string.md +++ b/docs/reference/types/string.md @@ -4,15 +4,15 @@ a piece of text. ### @parent blocks/language -A *String* is a sequence of characters. For the BBC micro:bit, ASCII character codes 32 to 126 are supported; letters, digits, punctuation marks, and a few symbols. All other character codes appear as a ? on the [LED screen](/microbit/device/screen). +A *String* is a sequence of characters. For the BBC micro:bit, ASCII character codes 32 to 126 are supported; letters, digits, punctuation marks, and a few symbols. All other character codes appear as a ? on the [LED screen](/device/screen). ### Declare a string -Use the [var statement](/microbit/reference/variables/var) and the [assignment operator](/microbit/reference/variables/assign) to declare a new *local* string variable. Like this: +Use the [var statement](/reference/variables/var) and the [assignment operator](/reference/variables/assign) to declare a new *local* string variable. Like this: ![](/static/mb/blocks/string-0.png) -To declare a string using the [Block Editor](/microbit/blocks/editor): +To declare a string using the [Block Editor](/blocks/editor): 1. Click `Variables` (as the Block drawer). @@ -28,7 +28,7 @@ Your code should look something like this: ### The function `show string` -Use [show string](/microbit/reference/basic/show-string) to display a string on the [LED screen](/microbit/device/screen). If the string is multiple characters, the string scrolls right to left. The following example displays `Hello world!` on the micro:bit screen: +Use [show string](/reference/basic/show-string) to display a string on the [LED screen](/device/screen). If the string is multiple characters, the string scrolls right to left. The following example displays `Hello world!` on the micro:bit screen: ![](/static/mb/blocks/string-2.png) @@ -36,9 +36,9 @@ The parameter of `show string` specifies the string ### Lessons -[glowing pendulum](/microbit/lessons/glowing-pendulum), [zoomer](/microbit/lessons/zoomer), [temperature](/microbit/lessons/temperature) +[glowing pendulum](/lessons/glowing-pendulum), [zoomer](/lessons/zoomer), [temperature](/lessons/temperature) ### See also -[variables](/microbit/reference/variables/var), [string functions](/microbit/reference/types/string-functions), [Number](/microbit/reference/types/number), [show string](/microbit/reference/basic/show-string) +[variables](/reference/variables/var), [string functions](/reference/types/string-functions), [Number](/reference/types/number), [show string](/reference/basic/show-string) diff --git a/docs/reference/variables/assign.md b/docs/reference/variables/assign.md index 7e2c2079..5acc2fd0 100644 --- a/docs/reference/variables/assign.md +++ b/docs/reference/variables/assign.md @@ -10,11 +10,11 @@ Set or change the value of a variable let item = 0 ```` -Use the assignment operator to set or change the value of a [variable](/microbit/reference/variables/var). +Use the assignment operator to set or change the value of a [variable](/reference/variables/var). ### Declare a variable -Declare a new *local* variable using the [variable](/microbit/reference/variables/var) statement and the assignment operator. Like this: +Declare a new *local* variable using the [variable](/reference/variables/var) statement and the assignment operator. Like this: ````blocks let num1 = 42; @@ -28,13 +28,13 @@ let num1 = 42 ```` ### Notes -* You can use the assignment operator with variables of each of the supported [types](/microbit/blocks/types). +* You can use the assignment operator with variables of each of the supported [types](/blocks/types). ### Lessons -[rotation animation](/microbit/lessons/rotation-animation) +[rotation animation](/lessons/rotation-animation) ### See also -[variable](/microbit/reference/variables/var), [types](/microbit/blocks/types) +[variable](/reference/variables/var), [types](/blocks/types) diff --git a/docs/reference/variables/change-var.md b/docs/reference/variables/change-var.md index 7bda2089..d0c596a2 100644 --- a/docs/reference/variables/change-var.md +++ b/docs/reference/variables/change-var.md @@ -13,7 +13,7 @@ x += 1 ### Declare a variable -Use the assignment operator to set the value of a [variable](/microbit/reference/variables/var). Change the value of a variable from 0 to 1 using the change item block. Like this: +Use the assignment operator to set the value of a [variable](/reference/variables/var). Change the value of a variable from 0 to 1 using the change item block. Like this: ```blocks let x = 0 @@ -22,7 +22,7 @@ x += 1 ### Example -Use the assignment operator to set the value of a [variable](/microbit/reference/variables/var). Change the value of a variable from 0 to 1 using the change item block. Then display the new value of the variable on the LED screen. Like this: +Use the assignment operator to set the value of a [variable](/reference/variables/var). Change the value of a variable from 0 to 1 using the change item block. Then display the new value of the variable on the LED screen. Like this: ```blocks let x = 0; @@ -32,9 +32,9 @@ basic.showNumber(x); ### Notes -* You can use the assignment operator with variables of each of the supported [types](/microbit/blocks/types). +* You can use the assignment operator with variables of each of the supported [types](/blocks/types). ### See also -[variable](/microbit/reference/variables/var), [types](/microbit/blocks/types) +[variable](/reference/variables/var), [types](/blocks/types) diff --git a/docs/reference/variables/var.md b/docs/reference/variables/var.md index 9bc42e09..4072c247 100644 --- a/docs/reference/variables/var.md +++ b/docs/reference/variables/var.md @@ -4,7 +4,7 @@ How to define and use local variables. ### @parent language -A variable is a place where you can store and retrieve data. Variables have a name, a [type](/microbit/blocks/types), and value: +A variable is a place where you can store and retrieve data. Variables have a name, a [type](/blocks/types), and value: * *name* is how you'll refer to the variable * *type* refers to the kind of data a variable can store @@ -12,7 +12,7 @@ A variable is a place where you can store and retrieve data. Variables have a na ### Var statement -Use the Block Editor variable statement to create a local variable and the [assignment operator](/microbit/reference/variables/assign) to store something in the variable. +Use the Block Editor variable statement to create a local variable and the [assignment operator](/reference/variables/assign) to store something in the variable. For example, this code stores the number `2` in the `num1` variable: @@ -24,7 +24,7 @@ Here's how to define a variable in the Block Editor: 2. Change the default variable name if you like. -3. Drag a block type on the right-side of the [assignment operator](/microbit/reference/variables/assign) and click the down arrow to change the variable name. +3. Drag a block type on the right-side of the [assignment operator](/reference/variables/assign) and click the down arrow to change the variable name. The resulting code should look something like this: @@ -44,13 +44,13 @@ The resulting code should look something like this: ![](/static/mb/blocks/var-4.png) -See [Image](/microbit/blocks/image) for info on creating and using image variables. +See [Image](/blocks/image) for info on creating and using image variables. The resulting code should look something like this: ![](/static/mb/blocks/var-5.png) -A variable is created for the number returned by the [brightness](/microbit/reference/led/brightness) function. +A variable is created for the number returned by the [brightness](/reference/led/brightness) function. ### Using variables @@ -68,7 +68,7 @@ Variables help simplify your code. For example, instead of turning on LEDs one b ![](/static/mb/blocks/var-8.png) -You can use a variable (`i`) and a [for loop](/microbit/reference/loops/for) to plot the same series of points (`i` is incremented by 1, each time the loop repeats): +You can use a variable (`i`) and a [for loop](/reference/loops/for) to plot the same series of points (`i` is incremented by 1, each time the loop repeats): ![](/static/mb/blocks/var-9.png) @@ -84,9 +84,9 @@ Local variables exist only within the function or block of code where they're de ### Lessons -[glowing pendulum](/microbit/lessons/glowing-pendulum), [love meter](/microbit/lessons/love-meter), [temperature](/microbit/lessons/temperature), [zoomer](/microbit/lessons/zoomer) +[glowing pendulum](/lessons/glowing-pendulum), [love meter](/lessons/love-meter), [temperature](/lessons/temperature), [zoomer](/lessons/zoomer) ### See also -[types](/microbit/blocks/types), [assignment operator](/microbit/reference/variables/assign) +[types](/blocks/types), [assignment operator](/reference/variables/assign)