Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- Nthnthj
- Date:
- 2020-01-14
- Revision:
- 1:e856bb79d8b6
- Parent:
- 0:a7e7666c7a9d
File content as of revision 1:e856bb79d8b6:
#include "mbed.h" #define TX PA_9 #define RX PA_10 //#define FilTX PA_2 //#define FilRX PA_3 Serial pc(USBTX, USBRX); Serial BT(TX,RX); //Serial Fil(FilTX, FilRX); //DigitalOut LEDA(PB_8,0); //DigitalOut LEDB(PB_9,0); int main() { //char c; char Buffer[10]; char Buffer2[10]; while(1) { if(BT.readable()){ BT.scanf("%s",&Buffer); pc.printf(Buffer); pc.puts(Buffer); //c = pc.getc(); //pc.printf(Buffer2); } if(pc.readable()){ pc.scanf("%s", &Buffer2); BT.printf(Buffer2); BT.puts(Buffer2); } //BT.puts("coucou"); //pc.puts("Hello_test"); } }