Skip to content

Commit 9a8cd75

Browse files
initial repo load
1 parent eb1343e commit 9a8cd75

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

README.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ Introduction
2020

2121
A CircuitPython driver for the AD5245 digital potentiometer.
2222

23+
The AD5245 Digital Potentiometer breakout board is a simple implementation of the
24+
Analog Devices' I2C, 10K-ohm chip. The potentiometer sports 256 resistance steps
25+
and can work with a power source from 2.7v to 5.5v. The pins act similarly to a
26+
passive resistive potentiometer, but require that voltages placed on any of the
27+
three pins not exceed the power supply voltage or drop below ground potential.
28+
29+
The Cedar Grove AD5245 custom breakout board provides power and signal connections
30+
for I2C and the potentiometer chip. The AD5245 is also integrated with the
31+
AD9833 ADSR Precision Waveform Generator FeatherWing.
32+
2333

2434
Dependencies
2535
=============

cedargrove_ad5245.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@
3838

3939

4040
class AD5245:
41-
"""Driver for the DS3502 I2C Potentiometer.
41+
"""Class representing the Cedar Grove AD5245, an I2C digital linear taper
42+
potentiometer.
4243
4344
:param address: The I2C device address for the device. Default is ``0x2C``.
44-
:param wiper: The default and inital wiper value. Default is 0.
45+
:param wiper: The inital wiper value. Default is 0.
4546
"""
4647

4748
_BUFFER = bytearray(1)
@@ -116,6 +117,6 @@ def set_default(self, default):
116117
self._default_wiper = default
117118

118119
def shutdown(self):
119-
"""Connects the W to the B terminal and open circuits the A terminal.
120+
"""Connects the W to the B terminal and opens the A terminal connection.
120121
The contents of the wiper register are not changed."""
121122
self._write_to_device(0x20, 0)
84.8 KB
Binary file not shown.
File renamed without changes.

0 commit comments

Comments
 (0)