Chris Styles
/
m3pi_USBSerialRPC
Program to show how to drive the m3pi using RPC commands over the serial port
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "m3pi.h" 00003 #include "SerialRPCInterface.h" 00004 00005 SerialRPCInterface Interface(USBTX, USBRX); // defaults to 9600 00006 m3pi m3pi; 00007 00008 int main() { 00009 00010 m3pi.locate(0,1); 00011 m3pi.printf("USB RPC"); 00012 00013 // do nothing, just wait for RPC comands over USB 00014 while (1) {} 00015 }
Generated on Wed Jul 13 2022 06:00:44 by 1.7.2