Skip to content

fix circup instruction. convert tabs to spaces in readme #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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