SLIP UART demo
main.cpp
- Committer:
- janekm
- Date:
- 2015-11-05
- Revision:
- 1:2d5fabdb498a
- Parent:
- 0:313c84319d93
File content as of revision 1:2d5fabdb498a:
#include "mbed.h" //------------------------------------ // Hyperterminal configuration // 9600 bauds, 8-bit data, no parity //------------------------------------ Serial pc(p8, p10); DigitalOut myled(p24); DigitalOut S900Vcc(p9); DigitalOut S900En(p20); DigitalOut S900On(p13); int main() { int i = 1; pc.baud(19200); pc.printf("Hello World !\n"); while(1) { wait(1); pc.printf("This program runs since %d seconds.\n", i++); myled = !myled; } }