Este es el modulo HC05 con listas bien asperas :v

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
junmorenodi
Date:
Thu Jul 11 13:05:17 2019 +0000
Commit message:
QWERT

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jul 11 13:05:17 2019 +0000
@@ -0,0 +1,38 @@
+#include "mbed.h"
+#include <list>
+#include <vector>
+
+Serial pc(USBTX, USBRX);
+Serial blue(PG_14,PG_9);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+PwmOut ledPWM(PE_9);
+std::list<int> lista;
+float data_sent=NULL;
+int c=0;
+
+int main() {
+    
+    blue.baud(9600);
+    pc.baud(9600);
+    pc.printf("Start \r\n");
+    
+    for(int i=1;i<=10;++i)
+   {
+    lista.push_back(i);
+    }
+    
+    int arr[lista.size()];
+    
+    std::copy(lista.begin(), lista.end(), arr);
+    
+  for(int j=0;j<10;++j)
+   {
+    data_sent=arr[j];
+      pc.printf("Valor Data_Sent: %.1f \r\n", data_sent);     
+    DigitalOut led3(LED3);
+    wait(1);
+    }  
+  
+    }
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jul 11 13:05:17 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file