Skip to content

Commit

Permalink
readme.md: Remove a redundant code line in the second example
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-hh committed Dec 9, 2017
1 parent 311a65f commit 2d77ff7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ calibration of the returned timing pattern has to be done.
The value returned by alert_read is the raw register bitmap,
not corrected for the sign.
This correction has to be done by the script. In the script below this is
achieved implicitely by storing the values into a signed halfword array.
achieved implicitely by storing the values into a signed hal array.
Otherwise, it may be done by:
```
value = adc.alread_read()
Expand Down Expand Up @@ -242,7 +242,6 @@ def sample_auto(x, adc = ads.alert_read, data = data):
data[index_put] = adc()
index_put += 1
data = array("h", [0] * _BUFFERSIZE)
index_put = 0
irq_pin = Pin(13, Pin.IN, Pin.PULL_UP)
Expand Down

0 comments on commit 2d77ff7

Please sign in to comment.