domel: testna aplikacija izpisuje: 88 02 00 03
Fork of mbed-os-example-mbed5-blinky by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut led1(LED1); 00004 00005 00006 Serial pc(/*USBTX*/ UART_TX, /*USBRX*/ UART_RX, 9600); // tx, rx 00007 00008 00009 // main() runs in its own thread in the OS 00010 int main() { 00011 while (true) { 00012 00013 led1 = !led1; 00014 wait(2.0); 00015 led1 = !led1; 00016 00017 00018 uint8_t ch = 0x88; 00019 pc.printf("%c", ch); 00020 00021 ch = 0x02; 00022 pc.printf("%c", ch); 00023 00024 ch = 0x00; 00025 pc.printf("%c", ch); 00026 00027 ch = 0x03; 00028 pc.printf("%c", ch); 00029 00030 led1 = !led1; 00031 00032 00033 00034 wait(10.0); 00035 00036 00037 00038 00039 00040 00041 00042 00043 } 00044 } 00045
Generated on Thu Jul 14 2022 13:14:11 by
1.7.2
