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

Compile for Leonardo? #17

Open
JeremySCook opened this issue Sep 16, 2021 · 2 comments
Open

Compile for Leonardo? #17

JeremySCook opened this issue Sep 16, 2021 · 2 comments

Comments

@JeremySCook
Copy link

Hi, I can get an example file to compile for an Uno, but not for a Leonardo (Pro Micro).

Would it be possible to add this functionality, or perhaps I'm missing something? Using 1.1.13 if that helps.

@JeremySCook
Copy link
Author

So thanks to @diyelectromusic on Twitter, the included .txt file (with a .cpp extension instead of .txt) can be subbed to have it compile for Leonardo (tested on a Pro Micro). Seems to compile for an Uno as well, but have not actually tested it there.

Tone-leo.txt

@diyelectromusic
Copy link

I now have a version of this library that can support all four timers on the ATmega32U4 giving four tones on an Arduino Leonardo. Is that something of interest?

I'm a bit of a github newbie, but if you are interested, I'll attempt to submit a PR!

I have some preliminary tests on an Uno and Pro Micro, but I haven't tested it on the other supported boards or been able to test it particularly exhaustively. I do have oscilloscope traces showing that the timings appear correct for all four timers for a limited range of frequencies.

Kevin

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