nada

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
poresc
Date:
Sun Oct 25 06:45:23 2020 +0000
Commit message:
ll

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
diff -r 000000000000 -r 8b3f25c2e7ed main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 25 06:45:23 2020 +0000
@@ -0,0 +1,46 @@
+#include "string"
+#include "mbed.h"
+#include "sstream"
+Serial pc(USBTX,USBRX);
+DigitalIn valor(PTC5);
+DigitalOut right(PTC7);
+DigitalOut left(PTC0);
+int rea;
+string cadena;
+using namespace std;
+//using namespace boost;
+float h;
+
+int main(){
+    while(1){
+        if(pc.readable()){
+        cadena=pc.getc();
+        //h=rea-50000;
+       // pc.printf("%s",);
+       // std::string Convert(float rea);
+        //cadena=float.toString("%f",rea);
+        pc.printf(cadena);
+        }
+  /*      if(rea=='1'){
+            pc.printf("hola perras");
+            right=1;
+            
+           // wait(1);
+            }else{
+            pc.printf("esperando");
+            right=0;
+            //wait(1);
+           // led=0;
+           
+        }
+        if(rea=='2'){
+            left=1;
+            //wait(1);
+            }else{
+            left=0;
+            //wait(1);*/
+        }
+        }
+
+
+
diff -r 000000000000 -r 8b3f25c2e7ed mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Oct 25 06:45:23 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file