Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Raspberry Pi Pico #3

Open
fbalaban-sci opened this issue Jan 15, 2023 · 0 comments
Open

Issue with Raspberry Pi Pico #3

fbalaban-sci opened this issue Jan 15, 2023 · 0 comments

Comments

@fbalaban-sci
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant