m3pi library with fixes for left and right motor specific functions and additional functionality like play
Revision 1:66b56d54336e, committed 2011-06-02
- Comitter:
- ryantm
- Date:
- Thu Jun 02 19:15:43 2011 +0000
- Parent:
- 0:a6a3ac2e729d
- Child:
- 2:68c904e3f9d0
- Commit message:
- improves play comment
Changed in this revision
m3pi.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/m3pi.cpp Thu Jun 02 19:14:14 2011 +0000 +++ b/m3pi.cpp Thu Jun 02 19:15:43 2011 +0000 @@ -175,10 +175,11 @@ } void m3pi::play (char* music, int length) { - // the 3pi will not accept music strings longer than 100 + // The default 3pi serial slave program + // will not accept music strings longer than 100. if (length > 100) length = 100; - _ser.putc(DO_PLAY); + _ser.putc(DO_PLAY); _ser.putc(length); for (int i = 0 ; i < length ; i++) { _ser.putc(music[i]);