@ -9,14 +9,14 @@ or low acceleration.
|
||||
input.setAccelerometerRange(AcceleratorRange.OneG);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
## Parameters
|
||||
|
||||
* ``range`` means the biggest number of gravities of acceleration you
|
||||
will be measuring (either `1g`, `2g`, `4g`, or `8g`). Any bigger numbers
|
||||
will be ignored by your @boardname@, both when you are picking a
|
||||
number of gravities, and when you are measuring acceleration.
|
||||
|
||||
### Example
|
||||
## Example
|
||||
|
||||
This program sets the highest acceleration that your @boardname@
|
||||
will measure is 4G. Then it shows acceleration from side to side
|
||||
@ -29,13 +29,13 @@ basic.forever(() => {
|
||||
});
|
||||
```
|
||||
|
||||
#### ~hint
|
||||
### ~hint
|
||||
|
||||
This program does not work in the simulator, only in a @boardname@.
|
||||
|
||||
#### ~
|
||||
### ~
|
||||
|
||||
### See Also
|
||||
## See Also
|
||||
|
||||
[compass heading](/reference/input/compass-heading),
|
||||
[light level](/reference/input/light-level)
|
||||
|
Reference in New Issue
Block a user