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

Pin definitions for Arduino Nano 33 IoT #3

Open
ajtadeo opened this issue Jun 14, 2024 · 1 comment
Open

Pin definitions for Arduino Nano 33 IoT #3

ajtadeo opened this issue Jun 14, 2024 · 1 comment

Comments

@ajtadeo
Copy link

ajtadeo commented Jun 14, 2024

Hello, I'm trying to use your library to play two scores simultaneously on my Nano via piezo buzzers for a circuit on my graduation cap. I was reading the header for the pin definitions and I was wondering if these apply to the 33 IoT? This is a great project and exactly what I was looking for so I'm hoping I'm able to use it.

@LenShustek
Copy link
Owner

I've not used the Nano 33 IoT, so I don't know if it will work "out of the box". It uses a modern 32-bit Cortex M0 processor, which is very different from the old 8-bit AVX processors that the original Arduinos had.

In order to be fast enough to play music on those slow AVX processors, playtune_poll does direct manipulation of the hardware registers that control the output bits. The Cortex processor certainly has equivalent registers that will do that, but they may be called by different names.

You might get lucky -- try it and see! But at the very least you will have to do the hard work of mapping the numbers of the pins you want to use to the register and bit numbers inside the processor, as described in the .h file. It's quite unlikely that it will be the same as for the Micro, or for the Nano or for the Mega, which are the examples I give.

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