Rewrote in simple language. Added hint about averaging read values.
This commit is contained in:
		@@ -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),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user