Extra Program

Dependencies:   C12832 MMA7660

main.cpp

Committer:
sarahmarshy
Date:
2017-09-19
Revision:
6:f8cb706c480c
Parent:
4:39c7c31b8fb0
Child:
7:adfd46d88d34

File content as of revision 6:f8cb706c480c:

#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("mbed application shield!");

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