Skip to content

Issue with Raspberry Pi Pico #3

@fbalaban-sci

Description

@fbalaban-sci

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions