ルンバハック用.

Dependencies:   mbed

cmd_Receiver.cpp

Committer:
naoki_westwell
Date:
2016-06-24
Revision:
0:ac1e1657002a

File content as of revision 0:ac1e1657002a:

#include "mbed.h"
#include <System_Select.h>

#ifdef CMD_RECEIVER

Serial Device(p13, p14);
Serial Roomba(p9, p10);
//Serial pc(USBTX, USBRX); // tx, rx

int main() {
    Device.baud(115200);
    Roomba.baud(115200);
    
    while(1) {
        if(Device.readable()){
            Roomba.putc(Device.getc());
        }
    }
}

#endif