app-shield

Dependencies:   C12832 mbed

Fork of app-shield-LCD by Robert Tomczak

main.cpp

Committer:
jbleduc
Date:
2016-09-30
Revision:
6:5a51edf4a4a3
Parent:
4:39c7c31b8fb0

File content as of revision 6:5a51edf4a4a3:

#include "mbed.h"
#include "C12832.h"

// Using Arduino pin notation
C12832 lcd(D11, D13, D12, D7, D10);

int main()
{
    int j=0;
    lcd.cls();
    lcd.locate(0,3);
    lcd.printf("Seconde ecoulees : ");

    while(true) {   // this is the third thread
        lcd.locate(0,15);
        lcd.printf("%d",j);
        j++;
        wait(1.0);
    }
}