lcd

Dependencies:   TextLCD mbed

main.cpp

Committer:
mijimy
Date:
2017-06-20
Revision:
0:348c0df0b54e

File content as of revision 0:348c0df0b54e:

#include "mbed.h"
#include "TextLCD.h"  // insert lcd library

TextLCD display(D8, D9, D4, D5, D6, D7); // rs, e, d4-d7 // declare lcd

int main() {
    int i; // declare variable i
        
    while(1) {
        for(i=99;i>0;i-=2)
        {   display.locate(4,1); // col 1 row 1
            display.printf("count:%2i",i);
            wait(0.5);
            }
        
    }
}