From 8b8fe22a2a7df85911280b2c96dacfe187d5bb16 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Tue, 5 Nov 2024 20:04:50 -0600 Subject: [PATCH] fix circup instruction. convert tabs to spaces in readme --- README.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.rst b/README.rst index f79ad31..7cb53f2 100644 --- a/README.rst +++ b/README.rst @@ -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: @@ -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 =============