Sosa

Dependencies:   TextLCD mbed

main.cpp

Committer:
ReneCA
Date:
2014-09-17
Revision:
0:af7b404a4e12

File content as of revision 0:af7b404a4e12:

#include "mbed.h"
#include "TextLCD.h"

TextLCD lcd(p20,p19,p21,p22,p23,p24); //rs,e,d4,d5,d6,d7
int s,m,h;

int main() {
    while(1){
        for(h=0;h<24;h++){
            for(m=0;m<60;m++){
                for(s=0;s<60;s++){
                    wait(1);
                    lcd.locate(0,1);
                    lcd.printf("Reloj: %2d:%2d:%2d",h,m,s);
                    }
                }
            }
        }
}