Skip to content

Commit

Permalink
remove SPI pin default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
CedarGroveStudios committed Mar 29, 2023
1 parent 3739fec commit 02dad98
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cedargrove_ad5293.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"""

import time
import board
import digitalio
from adafruit_bus_device.spi_device import SPIDevice

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

def __init__(self, spi=board.SPI(), select=board.D9, wiper=0):
def __init__(self, spi=None, select=None, wiper=0):
"""Initialize the AD5293 device instance. During initialization, the
potentiometer is reset, writing is enabled, and the wiper is set to the
specified initialization value.
:param busio.SPI spi: The `busio.SPI` definition. Defaults to
`board.SPI()`.
:param board select: The chip select pin designation. Defaults to
`board.D9`.
:param busio.SPI spi: The `busio.SPI` definition. Defaults to None.
:param board select: The chip select pin designation. Defaults to None.
:param int wiper: The initial 10-bit potentiometer wiper integer value,
range from 0 to 1023. Defaults to 0."""

Expand Down

0 comments on commit 02dad98

Please sign in to comment.