fixing broken links

This commit is contained in:
Peli de Halleux 2016-04-18 08:33:09 -07:00
parent 4795c58e97
commit 4169663a8b
26 changed files with 32 additions and 47 deletions

View File

@ -33,7 +33,7 @@ basic.showString(s)
### Lessons
[answering machine](/lessons/answering-machine), [rock paper scissors](/lessons/rock-paper-scissors), [love meter](/lessons/love-meter), [digital pet](/lessons/digital-pet)
[answering machine](/lessons/answering-machine), [rock paper scissors](/lessons/rock-paper-scissors), [love meter](/lessons/love-meter)
### See also

View File

@ -19,5 +19,4 @@ devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {})
### See Also
[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)
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength), [on signal strength changed](/reference/devices/on-signal-strength-changed)

View File

@ -14,7 +14,7 @@ The set of supported events will depend on the remote device and the BBC micro:b
![](/static/mb/tell-camera-to-0.png)
### KindScript
### JavaScript
```
export function tellCameraTo(event: string)

View File

@ -10,7 +10,7 @@ The functions in the antenna namespace allow the BBC micro:bit to communicate wi
![](/static/mb/tell-microphone-to-0.png)
### KindScript
### JavaScript
```
export function tellMicrophoneTo(event: string)

View File

@ -14,7 +14,7 @@ The set of supported events will depend on the remote device and the BBC micro:b
![](/static/mb/tell-remote-control-to-0.png)
### KindScript
### JavaScript
```
export function tellRemoteControlTo(event: string)

View File

@ -1,16 +1,12 @@
# Change
The game library
### Change
Sprite will change the x position by this number
## Block Editor
### Block Editor
![](/static/mb/change-0.png)
## KindScript
### JavaScript
Sprite will change the x position by this number

View File

@ -4,7 +4,7 @@ The clear function for images.
Turn off all the pixels in an [Image](/reference/images/image).
### KindScript
### JavaScript
```
export function clear(img: micro_bit.Image)

View File

@ -55,5 +55,5 @@ export function startCountdown(ms: number)
### Lessons
[bop it](/lessons/bop-it) | [game of chance](/lessons/game-of-chance) | [game counter](/lessons/game-counter)
[game of chance](/lessons/game-of-chance), [game counter](/lessons/game-counter)

View File

@ -4,7 +4,7 @@ The pixel function.
Get the state of a pixel in an [Image](/reference/images/image).
### KindScript
### JavaScript
```
export function pixel(_this: micro_bit.Image, x: number, y: number) : boolean

View File

@ -4,7 +4,7 @@ The plot frame function.
Display an [Image](/reference/images/image) on the BBC micro:bit's [LED screen](/device/screen)
### KindScript
### JavaScript
```
export function plotFrame(_this: micro_bit.Image, index: number)

View File

@ -4,7 +4,7 @@ The plot image function.
Display an [Image](/reference/images/image) on the BBC micro:bit's [LED screen](/device/screen)
### KindScript
### JavaScript
```
export function plotImage(_this: micro_bit.Image, xOffset: number)

View File

@ -8,7 +8,7 @@ Scrolls the frames within an [Image](/reference/images/image) on the [LED screen
![](/static/mb/scroll-image-0.png)
### KindScript
### JavaScript
```
export function scrollImage(_this: micro_bit.Image, xOffsetPerStep: number, interval: number)

View File

@ -4,7 +4,7 @@ The set pixel function. #set pixel.
Set the on/off state of pixel in an [Image](/reference/images/image).
### KindScript
### JavaScript
```
export function setPixel(_this: micro_bit.Image, x: number, y: number, value: boolean)

View File

@ -4,7 +4,7 @@ The show frame function.
Display an [Image](/reference/images/image) on the BBC micro:bit's [LED screen](/device/screen)
### KindScript
### JavaScript
```
export function showFrame(img: micro_bit.Image, frame: number)

View File

@ -4,12 +4,6 @@ The show image function.
Show an [Image](/reference/images/image) on the [LED screen](/device/screen), followed by a 400ms pause.
### Block Editor
![](/static/mb/show-image-0.png)
### KindScript
```
export function showImage(_this: micro_bit.Image, xOffset: number)
```
@ -20,7 +14,7 @@ export function showImage(_this: micro_bit.Image, xOffset: number)
### Create image and show image
Use the [image editor](/reference/images/image) to create images using the [create image](/reference/image/create-image) function, and then use `show image` like this:
Use the [image editor](/reference/images/image) to create images using the [create image](/reference/images/create-image) function, and then use `show image` like this:
```
let img = images.createImage(`

View File

@ -4,10 +4,8 @@ The width function.
Get the width of an [Image](/reference/images/image) in columns.
### KindScript
```
export function width(_this: micro_bit.Image) : number
```sig
images.createImage().width();
```
### Parameters

View File

@ -37,5 +37,5 @@ basic.forever(() => {
### See also
[on button pressed](/input/on-button-pressed), [if](/reference/logic/if), [forever](/basic/forever)
[on button pressed](/reference/input/on-button-pressed), [if](/reference/logic/if), [forever](/reference/basic/forever)

View File

@ -28,5 +28,5 @@ input.onPinPressed(TouchPin.P0, () => {
### See also
[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)
[BBC 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)

View File

@ -2,8 +2,6 @@
Display an [Image](/reference/images/image) on the BBC micro:bit's [LED screen](/device/screen). NOTE: `basic -> plot image` has been replaced by `basic -> show leds`.
### KindScript syntax
```sig
basic.plotLeds(`
. . . . .

View File

@ -24,5 +24,5 @@ for (let k = 0; k < 4; k++) {
### See also
[while](/reference/loops/while), [if](/blocks/if)
[while](/reference/loops/while), [if](/reference/logic/if)

View File

@ -39,5 +39,5 @@ The following example uses a while loop to make a diagonal line on the LED scree
### See also
[on button pressed](/reference/input/on-button-pressed), [for](/reference/loops/for), [if](/blocks/if), [forever](/reference/basic/forever)
[on button pressed](/reference/input/on-button-pressed), [for](/reference/loops/for), [if](/reference/logic/if), [forever](/reference/basic/forever)

View File

@ -31,5 +31,5 @@ radio.onDataReceived(() => {
### See also
[receive number](/reference/radio/receive-number), [send number](/radio/send-number), [set group](/reference/radio/set-group)
[receive number](/reference/radio/receive-number), [send number](/reference/radio/send-number), [set group](/reference/radio/set-group)

View File

@ -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](/blocks/if) or [while](/reference/loops/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](/reference/loops/while) statement to determine which code will execute next. For example:
### Functions that return a Boolean
@ -104,5 +104,5 @@ See the documentation on [Numbers](/reference/types/number) for more information
### See also
[if](/blocks/if), [while](/reference/loops/while), [number](/reference/types/number)
[if](/reference/logic/if), [while](/reference/loops/while), [number](/reference/types/number)

View File

@ -20,7 +20,7 @@ The following arithmetic operators work on numbers and return a [Number](/refere
* subtraction: `1 - 3 `
* multiplication: `3 * 2`
* integer division: `7 / 3`
* modulo is available through the [math library](/blocks/math)
* modulo is available through the [math library](/reference/math)
### Relational operators
@ -47,7 +47,7 @@ Some functions return a number, which you can store in a variable. For example t
### Math functions
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`:
The [math library](/reference/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)
@ -57,5 +57,5 @@ The [math library](/blocks/math) includes math related functions. In the [Block
### See also
[math library](/blocks/math), [var](/reference/variables/var), [Boolean](/reference/types/boolean), [show number](/reference/basic/show-number)
[math library](/reference/math), [var](/reference/variables/var), [Boolean](/reference/types/boolean), [show number](/reference/basic/show-number)

View File

@ -28,7 +28,7 @@ let num1 = 42
````
### Notes
* You can use the assignment operator with variables of each of the supported [types](/blocks/types).
* You can use the assignment operator with variables of each of the supported [types](/reference/types).
### Lessons
@ -36,5 +36,5 @@ let num1 = 42
### See also
[variable](/reference/variables/var), [types](/blocks/types)
[variable](/reference/variables/var), [types](/reference/types)

View File

@ -32,9 +32,9 @@ basic.showNumber(x);
### Notes
* You can use the assignment operator with variables of each of the supported [types](/blocks/types).
* You can use the assignment operator with variables of each of the supported [types](/reference/types).
### See also
[variable](/reference/variables/var), [types](/blocks/types)
[variable](/reference/variables/var), [types](/reference/types)