Chris Styles
/
m3pi_BluetoothRPC
Accepts RPC commands over bluetooth (RN42)
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "m3pi.h" 00003 #include "SerialRPCInterface.h" 00004 00005 // RN42 module defaults to 115,200 and is connected on p28,p27 00006 SerialRPCInterface Interface(p28, p27, 115200); 00007 00008 m3pi m3pi; 00009 00010 int main() { 00011 00012 m3pi.locate(0,1); 00013 m3pi.printf("Blutooth"); 00014 00015 // do nothing, just wait for RPC comands 00016 while(1) {} 00017 }
Generated on Wed Jul 13 2022 06:00:45 by 1.7.2