Rewrote in simple language. Added hint about averaging read values.
This commit is contained in:
parent
79c32097b5
commit
7a0a2fbd0a
@ -9,7 +9,7 @@ pins.analogReadPin(AnalogPin.P0)
|
|||||||
|
|
||||||
### Parameters
|
### Parameters
|
||||||
|
|
||||||
* a [string](/reference/types/string) that stores the name of the pin
|
* a [string](/reference/types/string) with the name of the pin
|
||||||
you say (`P0` through `P4`, or `P10`)
|
you say (`P0` through `P4`, or `P10`)
|
||||||
|
|
||||||
### Returns
|
### Returns
|
||||||
@ -26,6 +26,14 @@ basic.forever(() => {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### ~hint
|
||||||
|
|
||||||
|
If you are using **analog read pin** with another micro:bit
|
||||||
|
running **analog write pin**, it is a good idea to check
|
||||||
|
**analog read pin** many times and then take an average.
|
||||||
|
|
||||||
|
#### ~
|
||||||
|
|
||||||
### See also
|
### See also
|
||||||
|
|
||||||
[micro:bit pins](/device/pins),
|
[micro:bit pins](/device/pins),
|
||||||
|
Loading…
Reference in New Issue
Block a user