File tree 1 file changed +11
-11
lines changed 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ following command to install:
83
83
84
84
.. code-block :: shell
85
85
86
- circup install adafruit--circuitpython-ad569x
86
+ circup install adafruit_ad569x
87
87
88
88
Or the following command to update an existing version:
89
89
@@ -96,20 +96,20 @@ Usage Example
96
96
97
97
.. code-block :: python
98
98
99
- import board
100
- import adafruit_ad569x
99
+ import board
100
+ import adafruit_ad569x
101
101
102
- i2c = board.I2C()
103
- dac = adafruit_ad569x.Adafruit_AD569x(i2c)
102
+ i2c = board.I2C()
103
+ dac = adafruit_ad569x.Adafruit_AD569x(i2c)
104
104
105
105
# 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 )]
109
109
110
- while True :
111
- for v in value:
112
- dac.value = v
110
+ while True :
111
+ for v in value:
112
+ dac.value = v
113
113
114
114
Documentation
115
115
=============
You can’t perform that action at this time.
0 commit comments