Skip to content

Commit ed61330

Browse files
remove default SPI settings
allow broad host pin capability
1 parent 3466503 commit ed61330

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cedargrove_ad9833.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def __init__(
4848
wave_freq=440,
4949
wave_phase=0,
5050
wave_type="sine",
51-
spi=board.SPI(),
52-
select=board.D6,
51+
spi=None,
52+
select=None,
5353
m_clock=25000000,
5454
):
5555
"""Initialize SPI bus interconnect and create the SPIDevice instance.
@@ -63,10 +63,8 @@ def __init__(
6363
Defaults to 0.
6464
:param str wave_type: The "sine", "triangle", or "square" wave shape.
6565
Defaults to "sine".
66-
:param busio.SPI spi: The `busio.SPI` definition. Defaults to
67-
`board.SPI()`.
68-
:param board select: The chip select pin designation. Defaults to
69-
`board.D6`.
66+
:param busio.SPI spi: The `busio.SPI` definition. Defaults to None.
67+
:param board select: The chip select pin designation. Defaults to None.
7068
:param int m_clock: Master clock frequency in Hz. Defaults to 25MHz.
7169
"""
7270

0 commit comments

Comments
 (0)