hello. I am new here to this site seeing everyone here is very helpful. I am currently working on a project but I'm trying to add audio <PCM.h> to my project. I have servo, stepper, and ultrasonic all in one sketch, those upload perfectly to my board but when I add <PCM.h> to the list of "#include" I get this instead "error compiling for board Arduino Uno". When I remove <PCM.h> from the list everything seems to upload to my board just fine and yes I added the code lines for PCM.h after including the library . Anyone can help I would really appreciate it. There isn't much about it on YouTube or google.
Read how to get the most out of this forum in the posts at the top. Post code and full error. There are buttons in the ide that help to copy for forum. Make sure code tags used
From PCM.h:
- Takes over Timer 1 (16-bit) for the 8000 Hz timer. This breaks PWM
- (analogWrite()) for Arduino pins 9 and 10. Takes Timer 2 (8-bit)
- for the pulse width modulation, breaking PWM for pins 11 & 3.
Are you using any libraries that use Timer1 or Timer2?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.