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

tone() will not work on nrf52840 #38

Closed
Tasm-Devil opened this issue Mar 18, 2019 · 1 comment
Closed

tone() will not work on nrf52840 #38

Tasm-Devil opened this issue Mar 18, 2019 · 1 comment

Comments

@Tasm-Devil
Copy link

Tasm-Devil commented Mar 18, 2019

Hi,

i get a NameError when calling tone() a second time.
Line 63 square_wave_sample = audioio.RawSample(square_wave) uses a module that is probably not imported on some boards (e.g. nrf52840 Express).

Line 63 should never been executed but it will because a ValueError is thrown in Line 53 when calling tone() and creating the PWMOut-Object a second time.

Thats strange because you would assume, using the with-statement will deinitialize the used Pin. I assume, the deinit is faulty.

Anyone an idea, where to fix this.

@kattni
Copy link
Contributor

kattni commented Sep 11, 2019

I'm not sure what the problem was at the time that this issue was created. CircuitPython has had updates since that time that are now the reason why the nRF52840 doesn't work with simpleio.tone(). Closing in favor of #45.

@kattni kattni closed this as completed Sep 11, 2019
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

2 participants