Real Time Lab Program

Dependencies:   C12832_lcd mbed

main.cpp

Committer:
robt
Date:
2015-01-25
Revision:
0:b5e206fd1d2c

File content as of revision 0:b5e206fd1d2c:

#include "mbed.h"
#include "C12832_lcd.h"

C12832_LCD lcd;

int i=0;

int main()
{

    lcd.printf("Hello Colluders!");

    lcd.locate(0,20);
    lcd.printf("Here's a counter: ");

    while(1) {

        lcd.locate(100,20);
        i=i+1;
        lcd.printf("%3d",i);
        wait(0.2);
        if (i==999) {
            i=0;
        }
    }
}