/reference/types -> /types

This commit is contained in:
Peli de Halleux
2017-03-16 07:57:41 -07:00
parent 69bd0225ad
commit 00e9217e73
116 changed files with 224 additions and 361 deletions

View File

@ -23,7 +23,7 @@ A **g** is as much acceleration as you get from Earth's gravity.
### Returns
* a [number](/reference/types/number) that means the amount of acceleration. When the @boardname@ is lying flat on a surface with the screen pointing up, `x` is `0`, `y` is `0`, and `z` is `-1023`.
* a [number](/types/number) that means the amount of acceleration. When the @boardname@ is lying flat on a surface with the screen pointing up, `x` is `0`, `y` is `0`, and `z` is `-1023`.
### Example: bar chart

View File

@ -8,7 +8,7 @@ input.buttonIsPressed(Button.A);
### Parameters
* ``button`` is a [String](/reference/types/string). You should store `A` in it to check the left button, `B` to check the right button, or `A+B` to check both at the same time.
* ``button`` is a [String](/types/string). You should store `A` in it to check the left button, `B` to check the right button, or `A+B` to check both at the same time.
### Returns

View File

@ -12,7 +12,7 @@ input.compassHeading();
### Returns
* a [number](/reference/types/number) from `0` to `360` degrees, which means the compass heading. If the compass isn't ready, it returns `-1003`.
* a [number](/types/number) from `0` to `360` degrees, which means the compass heading. If the compass isn't ready, it returns `-1003`.
### Example

View File

@ -16,7 +16,7 @@ input.lightLevel();
### Returns
* a [Number](/reference/types/number) that means a light level from ``0`` (dark) to ``255`` (bright).
* a [Number](/types/number) that means a light level from ``0`` (dark) to ``255`` (bright).
### Example: show light level

View File

@ -22,7 +22,7 @@ The @boardname@ measures magnetic force with **microteslas**.
### Returns
* a [number](/reference/types/number) of microteslas that means the strength of the magnet
* a [number](/types/number) of microteslas that means the strength of the magnet
### Example: metal detector

View File

@ -19,7 +19,7 @@ instead of the USB cable.
### Parameters
* a [string](/reference/types/string) that holds the pin name (**P0**, **P1**, or **P2**)
* a [string](/types/string) that holds the pin name (**P0**, **P1**, or **P2**)
### returns

View File

@ -19,7 +19,7 @@ check how the @boardname@ is moving.
### Returns
* a [number](/reference/types/number) that means how much the microbit is tilted in the direction you say, from `0` to `360` degrees
* a [number](/types/number) that means how much the microbit is tilted in the direction you say, from `0` to `360` degrees
### Example: @boardname@ leveler

View File

@ -8,7 +8,7 @@ input.runningTime();
### Returns
* the [Number](/reference/types/number) of milliseconds since the program started.
* the [Number](/types/number) of milliseconds since the program started.
(One second is 1000 milliseconds.)
### Example: elapsed time

View File

@ -9,7 +9,7 @@ input.temperature();
### Returns
* a [Number](/reference/types/number) that means the Celsius temperature.
* a [Number](/types/number) that means the Celsius temperature.
### How does it work?