Seri Haberleşme Baud Rate değiştirme
Dependencies: mbed
Revision 0:dde3632b5960, committed 2018-05-11
- Comitter:
- ctasdemir
- Date:
- Fri May 11 05:10:45 2018 +0000
- Commit message:
- Seri Haberle?me Baud Rate de?i?tirme
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 dde3632b5960 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri May 11 05:10:45 2018 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +Serial device(USBTX, USBRX); // tx, rx +int rd = 0; +int main() { + device.baud(115200); + while(1){ + device.printf("Hello World\n"); + rd = device.readable(); + if(rd !=0) + { + device.putc(device.getc()); + } + + wait(1.0); + } +} \ No newline at end of file
diff -r 000000000000 -r dde3632b5960 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 11 05:10:45 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/5571c4ff569f \ No newline at end of file