-
Notifications
You must be signed in to change notification settings - Fork 26
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
Comments
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 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
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));
The text was updated successfully, but these errors were encountered: