Did it work? It looks like your code is correct, though you don’t need to have an RPC call, unless you are using a wireless interface that supports that. I made a version of the m3pi library that implements play, along with various other little fixes & additions, and it looks exactly the same as yours except I made the return type be void.
Hi RyanTM,
No, however I did try it, but didn’t compile. I’m still trying to refresh my C++ knowledge. And get stuck easily.
Anyway, thanks for the entries in both m3pi.cpp and m3pi.h for play() function. I’m going to try it. Now, how would I set up a tune. like the “welcome” or “go” in the line follower program, and call it? I’m using the 3pi as slave with mbed plugged into expansion board.
Is this original line for the 3pi added? const char welcome[] PROGMEM = ">g32>>c32"
And: play_from_program_space(welcome);
You can see how confused I still am!
By the way, did manage to use Timer() to stop robot after 35 seconds. and DigitalIn to stop robot in it’s tracks using Sharp 10cm distance sensor still attached. Next, I’ll spin it around and go back the other way. About what I did a couple years ago with just the 3pi.