m3pi_test

Dependents:   Line_Trace_No_collision_Light_control_longer_dis

Fork of m3pi by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
tennisbaca
Date:
Wed Feb 08 15:47:13 2017 +0000
Parent:
8:4b7d6ea9b35b
Commit message:
test

Changed in this revision

m3pi.cpp Show annotated file Show diff for this revision Revisions of this file
m3pi.h Show annotated file Show diff for this revision Revisions of this file
--- a/m3pi.cpp	Thu May 12 13:26:37 2011 +0000
+++ b/m3pi.cpp	Wed Feb 08 15:47:13 2017 +0000
@@ -194,6 +194,9 @@
     return(_ser.getc());
 }
 
+void m3pi::play(void){
+    _ser.putc(DO_PLAY);
+    }
 
 
 
--- a/m3pi.h	Thu May 12 13:26:37 2011 +0000
+++ b/m3pi.h	Wed Feb 08 15:47:13 2017 +0000
@@ -50,7 +50,6 @@
 #define M2_BACKWARD 0xC6
 
 
-
 /** m3pi control class
  *
  * Example:
@@ -217,6 +216,9 @@
      * @param int The character to send to the 3pi
      */
     int print(char* text, int length);
+    
+    void play();
+    
 
 #ifdef MBED_RPC
     virtual const struct rpc_method *get_rpc_methods();