Chris Styles
/
m3pi_BluetoothRPC
Accepts RPC commands over bluetooth (RN42)
main.cpp@2:acdb15f683eb, 2010-11-10 (annotated)
- Committer:
- chris
- Date:
- Wed Nov 10 09:05:28 2010 +0000
- Revision:
- 2:acdb15f683eb
- Parent:
- 0:74f2e70fcd27
- Child:
- 3:be428c849e1c
Updated to latest m3pi library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:74f2e70fcd27 | 1 | #include "mbed.h" |
chris | 0:74f2e70fcd27 | 2 | #include "m3pi.h" |
chris | 0:74f2e70fcd27 | 3 | #include "SerialRPCInterface.h" |
chris | 0:74f2e70fcd27 | 4 | |
chris | 0:74f2e70fcd27 | 5 | // RN42 module defaults to 115,200 and is on p28,p27 |
chris | 0:74f2e70fcd27 | 6 | SerialRPCInterface Interface(p28, p27, 115200); |
chris | 2:acdb15f683eb | 7 | |
chris | 0:74f2e70fcd27 | 8 | m3pi m3pi(p23,p9,p10); |
chris | 0:74f2e70fcd27 | 9 | |
chris | 0:74f2e70fcd27 | 10 | int main() { |
chris | 0:74f2e70fcd27 | 11 | |
chris | 0:74f2e70fcd27 | 12 | m3pi.locate(0,1); |
chris | 0:74f2e70fcd27 | 13 | m3pi.printf("Blth RPC"); |
chris | 0:74f2e70fcd27 | 14 | // do nothing, just wait for RPC comands |
chris | 0:74f2e70fcd27 | 15 | while(1) {} |
chris | 0:74f2e70fcd27 | 16 | } |