AVANCES MICROPROCESADORES

Dependencies:   mbed

Revision:
0:f58ee3dfd8d2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Feb 01 17:49:55 2020 +0000
@@ -0,0 +1,38 @@
+#include "mbed.h"
+
+DigitalOut myled(PD_13);
+Serial device(PA_2,PA_3);
+
+int i=0;
+int main() {
+    
+    device.baud(115200);
+    //device.printf("65A"); imprimir texto
+    //  device.printf("-");
+    //device.printf("%d",i);  //enviar entero
+    //device.printf("%c",i);  //enviar character
+    //device.printf("%x",i);   //enviar hexadecimal
+    //device.printf("\n");
+    i=0;
+    while(i<255) {
+        i++;
+        device.printf("%c\r",i);
+               } 
+    i=0;
+    while(i<255) {
+        i++;
+        device.printf("%d\r",i);
+            }  
+    i=0;  
+    while(i<255){ 
+        i++;
+        device.printf("%x\r",i);
+                }
+    //    device.printf("%c\r",i); //enviar fin de carrera\r
+    //device.printf("-");
+    //device.printf("%d",i);  //enviar entero
+    //device.printf("%c",i);  //enviar character
+    //device.printf("%x",i);   //enviar hexadecimal
+    //device.printf("\n");
+    
+}