Skip to content

Commit

Permalink
Merge pull request #4 from FoamyGuy/fix_circup_instruction
Browse files Browse the repository at this point in the history
fix circup instruction. convert tabs to spaces in readme
  • Loading branch information
dhalbert authored Nov 6, 2024
2 parents cd0f995 + 8b8fe22 commit d9e17c3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ following command to install:

.. code-block:: shell
circup install adafruit--circuitpython-ad569x
circup install adafruit_ad569x
Or the following command to update an existing version:

Expand All @@ -96,20 +96,20 @@ Usage Example

.. code-block:: python
import board
import adafruit_ad569x
import board
import adafruit_ad569x
i2c = board.I2C()
dac = adafruit_ad569x.Adafruit_AD569x(i2c)
i2c = board.I2C()
dac = adafruit_ad569x.Adafruit_AD569x(i2c)
# length of the sine wave
LENGTH = 100
# sine wave values written to the DAC
value = [int(math.sin(math.pi * 2 * i / LENGTH) * ((2**15) - 1) + 2**15) for i in range(LENGTH)]
LENGTH = 100
# sine wave values written to the DAC
value = [int(math.sin(math.pi * 2 * i / LENGTH) * ((2**15) - 1) + 2**15) for i in range(LENGTH)]
while True:
for v in value:
dac.value = v
while True:
for v in value:
dac.value = v
Documentation
=============
Expand Down

0 comments on commit d9e17c3

Please sign in to comment.