Skip to content

Commit 02dad98

Browse files
remove SPI pin default settings
1 parent 3739fec commit 02dad98

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cedargrove_ad5293.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"""
2626

2727
import time
28-
import board
2928
import digitalio
3029
from adafruit_bus_device.spi_device import SPIDevice
3130

@@ -54,14 +53,12 @@ class AD5293:
5453
connections for SPI and the potentiometer chip. The AD5293 is also used in
5554
the AD9833-based Cedar Grove Precision VCO Eurorack module."""
5655

57-
def __init__(self, spi=board.SPI(), select=board.D9, wiper=0):
56+
def __init__(self, spi=None, select=None, wiper=0):
5857
"""Initialize the AD5293 device instance. During initialization, the
5958
potentiometer is reset, writing is enabled, and the wiper is set to the
6059
specified initialization value.
61-
:param busio.SPI spi: The `busio.SPI` definition. Defaults to
62-
`board.SPI()`.
63-
:param board select: The chip select pin designation. Defaults to
64-
`board.D9`.
60+
:param busio.SPI spi: The `busio.SPI` definition. Defaults to None.
61+
:param board select: The chip select pin designation. Defaults to None.
6562
:param int wiper: The initial 10-bit potentiometer wiper integer value,
6663
range from 0 to 1023. Defaults to 0."""
6764

0 commit comments

Comments
 (0)