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

Can't get it to work with mega2560 #10

Open
13um45 opened this issue Jun 15, 2018 · 2 comments
Open

Can't get it to work with mega2560 #10

13um45 opened this issue Jun 15, 2018 · 2 comments

Comments

@13um45
Copy link

13um45 commented Jun 15, 2018

I've been using this without issue on my uno. Trying to get it to work with a mega2560 but sound isn't being output. I read in this issue: #6 that you just need to connect to pin 9 or 10, neither seem to work for me. Any ideas as to why or how you would port this for a mega? Thanks

@troisiemetype
Copy link

Hi,

It should work as is, the register definitions are the same between Atmega 328P and 2560.
On page 55 of the datasheet it's written that power reduction register has to be properly set to enable timer 2. Although I think the Arduino environnement takes care of that, maybe it's worth a try?

@nathanRamaNoodles
Copy link

I also had the same issue. I thought my Mega was broken, so I tested if my timer 2 was broken, but it wasn't. I think this library needs to use #if defines for the Mega and the Uno. Hopefully, this will encourage this library to also work on the esp8266.

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

3 participants