Test program for the accelerometer on the app shield

Dependencies:   C12832 MMA7660 mbed

Fork of app-shield-LCD by Chris Styles

main.cpp

Committer:
chris
Date:
2014-02-05
Revision:
3:2db94ee076ee
Parent:
2:a87e255a8f3a
Child:
4:39c7c31b8fb0

File content as of revision 3:2db94ee076ee:

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


C12832 lcd(p5, p7, p6, p8, p11);

int main()
{
    int j=0;
    lcd.cls();
    lcd.locate(0,3);
    lcd.printf("mbed application board!");

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