domel: testna aplikacija izpisuje: 88 02 00 03

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Revision:
46:81c79481f73b
Parent:
29:0b58d21e87d6
--- a/main.cpp	Fri Sep 15 07:45:03 2017 +0100
+++ b/main.cpp	Tue Sep 26 21:02:30 2017 +0000
@@ -2,11 +2,44 @@
 
 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(0.5);
+        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);
+        
+        
+        
+        
+        
+        
+        
+        
     }
 }