voici
Fork of m3pi by
Diff: m3pi.h
- Revision:
- 10:a12166fc8c19
- Parent:
- 9:f65c5aa1775c
--- a/m3pi.h Mon Nov 23 23:22:28 2015 +0000 +++ b/m3pi.h Thu May 03 12:06:02 2018 +0000 @@ -223,6 +223,16 @@ * @param int The character to send to the 3pi */ int print(char* text, int length); + + /** Send a string buffer to the 3pi serial interface for + * playing music. See here for details about the string's + * format: + * http://www.pololu.com/docs/0J18/3 + * @param music A pointer to a char array + * @param length The length of the music string + */ + void play(char* music, int length); + #ifdef MBED_RPC virtual const struct rpc_method *get_rpc_methods();