Omar Espinoza / Mbed 2 deprecated E3_P5

Dependencies:   mbed FXOS8700Q

Files at this revision

API Documentation at this revision

Comitter:
omarem
Date:
Sun Apr 12 03:17:56 2020 +0000
Commit message:
Ejercicio3.Practica5

Changed in this revision

FXOS8700Q.lib Show annotated file Show diff for this revision Revisions of this file
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/FXOS8700Q.lib	Sun Apr 12 03:17:56 2020 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/Freescale/code/FXOS8700Q/#aee7dea904e2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Apr 12 03:17:56 2020 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h" 
+ 
+Serial com1(USBTX, USBRX);
+ 
+ 
+void Boton(int Si, int No)
+{
+    int pulsado;
+    
+    pulsado = Si;
+    
+    com1.printf("El boton esta pulsado \n", pulsado);
+    
+    
+    int sinpulsar;
+    
+    sinpulsar = No;  
+    
+    com1.printf("El boton no esta pulsado \n", sinpulsar);
+ 
+}
+int main ()
+{
+    int e1,e2;
+    
+    e1 = 0;
+    e2 = !e1;
+    
+    Boton(e1,e2);
+    
+    
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Apr 12 03:17:56 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file