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: mbed C12832 MMA7660
Revision 0:c8f6fd3a3e6a, committed 2018-12-17
- Comitter:
- Ambroisie
- Date:
- Mon Dec 17 15:35:57 2018 +0000
- Commit message:
- Ambroisie
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/C12832.lib Mon Dec 17 15:35:57 2018 +0000 @@ -0,0 +1,1 @@ +http://os.mbed.com/users/chris/code/C12832/#7de323fa46fe
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MMA7660.lib Mon Dec 17 15:35:57 2018 +0000 @@ -0,0 +1,1 @@ +http://os.mbed.com/users/Sissors/code/MMA7660/#36a163511e34
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Dec 17 15:35:57 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testpremier.cpp Mon Dec 17 15:35:57 2018 +0000 @@ -0,0 +1,34 @@ +#include "mbed.h" +#include "MMA7660.h" +#include "C12832.h" +MMA7660 MMA(p28, p27); +C12832 lcd(p5, p7, p6, p8, p11); +DigitalOut connectionLed(LED1); +int main() { + if (MMA.testConnection()) + connectionLed = 1; + lcd.cls(); + while(1) { + lcd.locate(0,0); + lcd.printf("AccelX: %4.2f",MMA.x()); + lcd.locate(0,8); + lcd.printf("AccelY: %4.2f",MMA.y()); + lcd.locate(0,16); + lcd.printf("AccelZ: %4.2f",MMA.z()); + wait(0.5); + } +} + + + + + + + + + + + + + +