nikita teggi
/
blesample
bluetooth
Revision 0:735eb61b464f, committed 2017-07-16
- Comitter:
- nikitateggi
- Date:
- Sun Jul 16 10:26:41 2017 +0000
- Commit message:
- bluetooth naming
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 000000000000 -r 735eb61b464f main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jul 16 10:26:41 2017 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" +Serial pc(USBTX, USBRX); +Serial blue(PTC4,PTC3); + + + +int main() +{ + + blue.baud(38400); + pc.baud(38400); + + while (1) + { + if (blue.readable()) + { + pc.putc(blue.getc()); + + } + if (pc.readable()) + { + blue.putc(pc.getc()); + + } + + } +} +
diff -r 000000000000 -r 735eb61b464f mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jul 16 10:26:41 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/093f2bd7b9eb \ No newline at end of file