Skip to content

Commit 6b6dca3

Browse files
Disable SDO pin upon initialization
1 parent a8cabec commit 6b6dca3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resistive potentiometer, but requires that voltages placed on any of the
2424
three pins not exceed the analog power supply voltage.
2525

2626
The CircuitPython driver supports a single SPI potentiometer device per instance.
27-
It does not work with daisy-chained devices.
27+
It does not work with daisy-chained devices. The SDO pin is set to high-impedance.
2828

2929
The Cedar Grove AD5293 custom breakout board provides power and signal
3030
connections for SPI and the potentiometer chip. The AD5293 is also

cedargrove_ad5293.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class AD5293:
4444
placed on any of the three pins not exceed the analog power supply voltage.
4545
4646
The CircuitPython driver supports a single SPI potentiometer device per
47-
instance. It does not work with daisy-chained devices.
47+
instance. It does not work with daisy-chained devices. The SDO pin is
48+
set to high-impedance.
4849
4950
The Cedar Grove AD5293 custom breakout board provides power and signal
5051
connections for SPI and the potentiometer chip. The AD5293 is also used in
@@ -71,6 +72,10 @@ def __init__(self, spi=board.SPI(), select=board.D9, wiper=0):
7172
# Power on delay (2ms minimum)
7273
time.sleep(0.03)
7374

75+
# Disable SDO pin (high impedance)
76+
self._send_data(0x8001) # Disable SDO
77+
self._send_data(0x0000) # NOP
78+
7479
# Place device into normal mode (not powered-down)
7580
self._send_data(0x2000)
7681

0 commit comments

Comments
 (0)