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

PCM Library use Leonardo or MegaCore (Atmega128) #6

Open
sahingokalp23 opened this issue Feb 12, 2019 · 3 comments
Open

PCM Library use Leonardo or MegaCore (Atmega128) #6

sahingokalp23 opened this issue Feb 12, 2019 · 3 comments

Comments

@sahingokalp23
Copy link

How can i use this library for Arduino leonardo or MegaCore (atmega128)?? When i try i see this error;

\Arduino\libraries\PCM-master\PCM.c:105:17: error: 'WGM21' undeclared (first use in this function)

TCCR0A |= _BV(WGM21) | _BV(WGM20);

             ^

\Arduino\libraries\PCM-master\PCM.c:105:17: note: each undeclared identifier is reported only once for each function it appears in

\Arduino\libraries\PCM-master\PCM.c:105:30: error: 'WGM20' undeclared (first use in this function)

TCCR0A |= _BV(WGM21) | _BV(WGM20);

                          ^

\Arduino\libraries\PCM-master\PCM.c:106:18: error: 'WGM22' undeclared (first use in this function)

TCCR0B &= ~_BV(WGM22);

              ^

\Arduino\libraries\PCM-master\PCM.c:110:26: error: 'COMA01' undeclared (first use in this function)

TCCR0A = (TCCR0A | _BV(COMA01)) & ~_BV(COMA00);

                      ^

\Arduino\libraries\PCM-master\PCM.c:110:42: error: 'COMA00' undeclared (first use in this function)

TCCR0A = (TCCR0A | _BV(COMA01)) & ~_BV(COMA00);

                                      ^

\Arduino\libraries\PCM-master\PCM.c:111:19: error: 'COM2B1' undeclared (first use in this function)

TCCR0A &= ~(_BV(COM2B1) | _BV(COM2B0));

               ^

\Arduino\libraries\PCM-master\PCM.c:111:33: error: 'COM2B0' undeclared (first use in this function)

TCCR0A &= ~(_BV(COM2B1) | _BV(COM2B0));

@Daniel-a-r835
Copy link

Hello,

Did you ever figure out what to do here?

I can’t for the life of me understand why it’s so hard to play PCM off this chip.

@sahingokalp23
Copy link
Author

sahingokalp23 commented Aug 19, 2020 via email

@cbrito
Copy link

cbrito commented Aug 27, 2020

@ sahingokalp23 can you share how you resolved the issue? Did you include some other library?

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