MultiSerialのテストコード

Dependencies:   MultiSerial mbed

main.cpp

Committer:
Hatter
Date:
2014-08-21
Revision:
0:21b4f45cdcde
Child:
3:ad45842c796b

File content as of revision 0:21b4f45cdcde:

   #include"mbed.h"
    #include"MultiSerial.h"
    
    MultiSerial test1(p9,p10);
    MultiSerial test2(USBTX,USBRX);

int main(){

    uint8_t data1[5]={0};
    test1.write(data1, 0xAA);
    uint8_t data2[8]={0};
    test2.read(data2, 0xAA);    
    
    
    for(;;);  
}