led_blink

Dependencies:   TextLCD mbed

main.cpp

Committer:
ha731548874
Date:
2018-04-30
Revision:
0:2bf8deda62ee

File content as of revision 0:2bf8deda62ee:

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

TextLCD lcd(p23, p24, p25, p26, p27, p28);                  //rs, e, d4-d7

int x=0,y=0;
int main() 
{
    while(1) 
    {
        for(x=0;x<4;x++)
        {
            for(y=0;y<60;y++)
            { 
            lcd.cls();
            lcd.locate(0,0);
            lcd.printf("min:%d",x);
            lcd.locate(0,1);
            lcd.printf("sec:%d",y);

            wait(0.1);
        
            }
             
          }
        }
    }