2.1.28, initiation update to PXT v5.28.24 (#54)

This commit is contained in:
Amerlander
2019-12-02 05:58:26 +01:00
committed by Peli de Halleux
parent 38a964516e
commit 5c114a0c57
1261 changed files with 50692 additions and 21604 deletions

View File

@@ -13,18 +13,18 @@ The @boardname@ measures magnetic force with **microteslas**.
## ~
### Parameters
## Parameters
* ``dimension`` means which direction the @boardname@ should measure
magnetic force in: either `Dimension.X` (the left-right direction),
`Dimension.Y` (the forward/backward direction), or `Dimension.Z`
(the up/down direction)
### Returns
## 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
## Example: metal detector
This program makes the center LED of the @boardname@ get brighter when
the magnetic force is stronger, and dimmer when it is weaker.
@@ -37,6 +37,6 @@ basic.forever(() => {
})
```
### See also
## See also
[compass heading](/reference/input/compass-heading)