El_clan_zoncillo / Mbed 2 deprecated Practica2_3

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Javier001
Date:
Thu Oct 18 10:45:17 2018 +0000
Commit message:
sdfsdf

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 Oct 18 10:45:17 2018 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+DigitalIn boton(PC_13);
+int main()
+{
+ int contador =0;
+ while(1) {
+ contador++;
+ if(boton==0) {
+ printf("El contador vale %d\n",contador);
+ }
+ wait(0.10);
+ }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Oct 18 10:45:17 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file