Micropython-AD9833 icon indicating copy to clipboard operation
Micropython-AD9833 copied to clipboard

Issue with Raspberry Pi Pico

Open fbalaban-sci opened this issue 1 year ago • 0 comments

Heya Kip! I'm having some issues with running this on Raspberry Pi Pico.

My code is:

from machine import Pin, SPI
from ad9833 import AD9833

spi = SPI(1, baudrate=9600, polarity=1, phase=0,firstbit=SPI.MSB)
ss = Pin(0, Pin.OUT, Pin.PULL_UP)

wave = AD9833(spi, ss)

wave.set_freq(14500)
wave.set_type(0)
wave.send()
print(wave.shape_type)

and I’m getting this error message: Traceback (most recent call last): File "<stdin>", line 11, in <module> File "ad9833.py", line 57, in send File "ad9833.py", line 20, in _send AttributeError: 'SPI' object has no attribute 'send' P.S I'm new to both Raspberry Pi Pico and Python I'm sorry if it’s a very basic question.

fbalaban-sci avatar Jan 15 '23 23:01 fbalaban-sci