codigo sin probar

Dependencies:   mbed CMSIS_DSP_5 TextLCD

Committer:
MIGUI
Date:
Thu Oct 18 10:40:35 2018 +0000
Revision:
0:fcb220c9cf97
Child:
1:80ebc024450a
ejercicio 1 de depuraci?n

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MIGUI 0:fcb220c9cf97 1 #include "mbed.h"
MIGUI 0:fcb220c9cf97 2
MIGUI 0:fcb220c9cf97 3 DigitalIn boton(PC_13);
MIGUI 0:fcb220c9cf97 4
MIGUI 0:fcb220c9cf97 5 int main() {
MIGUI 0:fcb220c9cf97 6 int contador=0;
MIGUI 0:fcb220c9cf97 7 while(1) {
MIGUI 0:fcb220c9cf97 8 contador++;
MIGUI 0:fcb220c9cf97 9 if (boton==0) {;
MIGUI 0:fcb220c9cf97 10 prinf("El contador vale %d\n",contador);
MIGUI 0:fcb220c9cf97 11 }
MIGUI 0:fcb220c9cf97 12 wait(0.10);
MIGUI 0:fcb220c9cf97 13 }
MIGUI 0:fcb220c9cf97 14 }