Practica_6_-_Ejercicio_02

Dependencies:   mbed TextLCD

main.cpp

Committer:
isaacross99
Date:
2019-11-20
Revision:
32:ad8e0f2469c3
Parent:
31:080589c1250a

File content as of revision 32:ad8e0f2469c3:

#include "mbed.h"
#include "TextLCD.h"
TextLCD lcd(PTE24, PTE25, PTD1, PTD3, PTD2, PTD0, TextLCD::LCD16x2); // rs, e, d4-d7

int main() {
    int contador = 0, i = 0;
    while(1){
        for(i = 0; i <= 59; i++){
            lcd.printf("%d", contador);
            contador = contador + 1;
            wait(1);
            lcd.cls();
        }
        contador = 0;
    }
}