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.
Revision 0:f41d8c10429c, committed 2015-05-14
- Comitter:
- pai2015ensarsarajcic
- Date:
- Thu May 14 17:57:48 2015 +0000
- Commit message:
- Ba?i? Amar; Saraj?i? Ensar
Changed in this revision
diff -r 000000000000 -r f41d8c10429c MMA8451Q.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MMA8451Q.lib Thu May 14 17:57:48 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/emilmont/code/MMA8451Q/#c4d879a39775
diff -r 000000000000 -r f41d8c10429c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu May 14 17:57:48 2015 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "MMA8451Q.h" +#define dp23 P0_0 +#define MMA8451_I2C_ADDRESS (0x1d<<1) + + + +Serial pc(USBTX, USBRX); +MMA8451Q acc(PTE25, PTE24, MMA8451_I2C_ADDRESS); + +int main() { + while(1) { + pc.printf("X=%f Y=%f Z=%f\n", acc.getAccX(), acc.getAccY(), acc.getAccZ()); + wait(1); + } +}
diff -r 000000000000 -r f41d8c10429c mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu May 14 17:57:48 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/dbbf35b96557 \ No newline at end of file