From 0ecf3dc2b4ea0f1a676f923b25d26e25807820d8 Mon Sep 17 00:00:00 2001 From: Ron Hale-Evans Date: Thu, 23 Jun 2016 14:29:32 -0700 Subject: [PATCH] Rewrote in simple language. Updated example (needs work). --- docs/reference/pins/analog-read-pin.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/reference/pins/analog-read-pin.md b/docs/reference/pins/analog-read-pin.md index 12768b3f..fceccfe0 100644 --- a/docs/reference/pins/analog-read-pin.md +++ b/docs/reference/pins/analog-read-pin.md @@ -9,19 +9,20 @@ pins.analogReadPin(AnalogPin.P0) ### Parameters -* a [string](/reference/types/string) that stores the pin you say (`P0` through `P4`, or `P10`) +* a [string](/reference/types/string) that stores the name of the pin + you say (`P0` through `P4`, or `P10`) ### Returns -* a [number](/reference/types/number) from `0` through `1024` +* a [number](/reference/types/number) from `0` through `1023` -This program reads pin `P1` and shows the number as a -[bar graph](/reference/led/plot-bar-graph). +This program reads pin `P1` and shows the number +on the LED screen. ```blocks basic.forever(() => { let value = pins.analogReadPin(AnalogPin.P1) - led.plotBarGraph(value, 1023) + basic.showNumber(value) }); ``` @@ -32,4 +33,3 @@ basic.forever(() => { [analog write pin](/reference/pins/analog-write-pin), [digital read pin](/reference/pins/digital-read-pin), [digital write pin](/reference/pins/digital-write-pin) -