batch fixing ](/microbit/ -> ](/ links

This commit is contained in:
Peli de Halleux
2016-04-13 08:27:45 -07:00
parent 2e49901a7e
commit d28efb3b84
517 changed files with 2235 additions and 2235 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)