Ejercicio 3 práctica 2

Dependencies:   mbed

Revision:
0:7005b985c781
--- /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