I’m trying to get my 3pi to make any noise from the buzzer. I want it make using closed libraries, and not use any of the build in functions by setting the PORT/DDR myself.
What would be the same as:
[code]
#include <pololu/3pi.h>
int main()
{
play_from_program_space(PSTR(">g32>>c32")); // Play welcoming notes.
}[/code]
We merged your two posts since they are about the same question.
It might be helpful for you to look at the OrangutanBuzzer library to get a better understanding on how the library’s functions work (e.g. playNote()). You can find a detailed description of the functions in the OrangutanBuzzer library in section 3 in the Pololu AVR Library Command Reference user’s guide.
If try writing the code and run into issues, you can post your entire code here, and I would be happy to take a look.