Skip to content

Commit d9e17c3

Browse files
authored
Merge pull request #4 from FoamyGuy/fix_circup_instruction
fix circup instruction. convert tabs to spaces in readme
2 parents cd0f995 + 8b8fe22 commit d9e17c3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ following command to install:
8383

8484
.. code-block:: shell
8585
86-
circup install adafruit--circuitpython-ad569x
86+
circup install adafruit_ad569x
8787
8888
Or the following command to update an existing version:
8989

@@ -96,20 +96,20 @@ Usage Example
9696

9797
.. code-block:: python
9898
99-
import board
100-
import adafruit_ad569x
99+
import board
100+
import adafruit_ad569x
101101
102-
i2c = board.I2C()
103-
dac = adafruit_ad569x.Adafruit_AD569x(i2c)
102+
i2c = board.I2C()
103+
dac = adafruit_ad569x.Adafruit_AD569x(i2c)
104104
105105
# length of the sine wave
106-
LENGTH = 100
107-
# sine wave values written to the DAC
108-
value = [int(math.sin(math.pi * 2 * i / LENGTH) * ((2**15) - 1) + 2**15) for i in range(LENGTH)]
106+
LENGTH = 100
107+
# sine wave values written to the DAC
108+
value = [int(math.sin(math.pi * 2 * i / LENGTH) * ((2**15) - 1) + 2**15) for i in range(LENGTH)]
109109
110-
while True:
111-
for v in value:
112-
dac.value = v
110+
while True:
111+
for v in value:
112+
dac.value = v
113113
114114
Documentation
115115
=============

0 commit comments

Comments
 (0)