328P to be doing two function at a time

Hi,
I have my 3pi to disply a message using #include <pololu/orangutan.h>
and to play frequency (music note) using #include <pololu/3pi.h>

Can I make it display the message while it is playing the frequency at the same time?

Thanks

Hello,

Your 3pi can do both at the same time. Simply follow your note-playing command with your message-displaying command.

Thanks,
Geoff

It didn’t work. The note I play has a timer and the message also has a timer. How can I do two timers at a time.

Thanks

Can you show me your code and describe what it should be doing, and what it does instead? I suppose I should have asked what it is exactly that you are trying to accomplish in the first place. :slight_smile:

Geoff

First of all thank you for helping me out.

This is my code.
imageshack.us/photo/my-images/705/helpgvm.jpg/
I want to play music and display my message at the same time.

Thanks

Ah, you’re trying to play a melody. Gotcha.

This page should have everything you need. Of particular import are the buzzer2 and buzzer3 examples that demonstrate playing a melody while performing other actions.

Geoff

Thank you very much, I got it working very well.

Glad to hear it. Have fun.

Geoff