Seri Haberleşme Baud Rate değiştirme
Dependencies: mbed
main.cpp
- Committer:
- ctasdemir
- Date:
- 2018-05-11
- Revision:
- 0:dde3632b5960
File content as of revision 0:dde3632b5960:
#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); } }