RAPIRO serial control test program
RAPIROはRaspberry Piを載せるように設計されていますが、シリアル通信ができるものであれば接続できますのでmbedを載せてみました。 "#M0"から"#M8"までのコマンドをmbedから送っています。
Revision 1:484d4306404b, committed 2014-02-11
- Comitter:
- kanpapa
- Date:
- Tue Feb 11 07:41:02 2014 +0000
- Parent:
- 0:4db7407197c2
- Commit message:
- add comments.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4db7407197c2 -r 484d4306404b main.cpp --- a/main.cpp Tue Feb 11 07:05:22 2014 +0000 +++ b/main.cpp Tue Feb 11 07:41:02 2014 +0000 @@ -16,15 +16,15 @@ rapiro.baud(57600); myled = 1; - wait(3); + wait(3); // RAPIRO startup wait. myled = 0; for (int cmd = 1 ; cmd < 8 ; cmd++){ - rapiro.printf("#M%d\n",cmd); + rapiro.printf("#M%d\n",cmd); // Send command #M1...#M8 blink(); wait(5); } - rapiro.printf("#M0\n"); + rapiro.printf("#M0\n"); // RAPIRO Stop while(1); } \ No newline at end of file
diff -r 4db7407197c2 -r 484d4306404b mbed.bld --- a/mbed.bld Tue Feb 11 07:05:22 2014 +0000 +++ b/mbed.bld Tue Feb 11 07:41:02 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43 \ No newline at end of file