Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832 MMA7660 mbed
Fork of app-shield-accelerometer by
main.cpp
- Committer:
- chris
- Date:
- 2014-02-06
- Revision:
- 5:636ebfdf373b
- Parent:
- 4:39c7c31b8fb0
- Child:
- 6:244758de2362
File content as of revision 5:636ebfdf373b:
#include "mbed.h"
#include "C12832.h"
#include "MMA7660.h"
// Using Arduino pin notation
C12832 lcd(D11, D13, D12, D7, D10);
MMA7660 MMA(SDA,SCL);
int main()
{
lcd.cls();
lcd.locate(0,3);
lcd.printf("mbed application shield!");
while(1) {
lcd.locate(0,14);
lcd.printf("x=%.2f y=%.2f z=%.2f",MMA.x(), MMA.y(), MMA.z());
wait(0.2);
}
}
