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

'AD9833' class object has no attribute '_pause' #1

Open
phrogger opened this issue Sep 23, 2019 · 0 comments
Open

'AD9833' class object has no attribute '_pause' #1

phrogger opened this issue Sep 23, 2019 · 0 comments

Comments

@phrogger
Copy link

I am running your driver "cedargrove_ad9833.py", not the "cedargrove_ad9833.mpy"

When running a simple test program, that just creates an AD9833 object, then sets the frequency to a fixed value and starts the wave generator, I get the following error.

Traceback (most recent call last):
File "main.py", line 21, in
File "cedargrove_ad9833.py", line 185, in update_freq
File "cedargrove_ad9833.py", line 226, in update_control_reg
AttributeError: 'AD9833' object has no attribute '_pause'

Examining the python source for the AD9833 class indicates that there is no attribute "self._pause"
Adding a line "self._pause = False" to the def init resolves everything.


I bought some AD9833 featherwing wave_generator boards from Oshpark, assembled one, and everything works as expected. Thanks for designing the board and driver code and releasing the information.
--- Graham

==

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