![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
domel: testna aplikacija izpisuje: 88 02 00 03
Fork of mbed-os-example-mbed5-blinky by
main.cpp
- Committer:
- gorazdko
- Date:
- 2017-09-26
- Revision:
- 46:81c79481f73b
- Parent:
- 29:0b58d21e87d6
File content as of revision 46:81c79481f73b:
#include "mbed.h" DigitalOut led1(LED1); Serial pc(/*USBTX*/ UART_TX, /*USBRX*/ UART_RX, 9600); // tx, rx // main() runs in its own thread in the OS int main() { while (true) { led1 = !led1; wait(2.0); led1 = !led1; uint8_t ch = 0x88; pc.printf("%c", ch); ch = 0x02; pc.printf("%c", ch); ch = 0x00; pc.printf("%c", ch); ch = 0x03; pc.printf("%c", ch); led1 = !led1; wait(10.0); } }