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: MMA8451Q mbed sMotor
Revision 0:19a04545e304, committed 2014-05-12
- Comitter:
- tim003
- Date:
- Mon May 12 09:55:57 2014 +0000
- Commit message:
- LV9-PAI-Grupa2-Tim003-Zadatak1
Changed in this revision
diff -r 000000000000 -r 19a04545e304 MMA8451Q.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MMA8451Q.lib Mon May 12 09:55:57 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/JoKer/code/MMA8451Q/#2d14600116fc
diff -r 000000000000 -r 19a04545e304 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon May 12 09:55:57 2014 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "MMA8451Q.h"
+
+#define ADDRESS (0x1d<<1)
+
+ #define SDA PTE25
+ #define SCL PTE24
+
+Serial pc(USBTX, USBRX);
+
+MMA8451Q acc(SDA, SCL, ADDRESS);
+
+int main() {
+ while(1) {
+
+ pc.printf("Po x osi: %lf, Po y osi: %lf, Po z osi: %lf \n", acc.getAccX(), acc.getAccY(), acc.getAccZ());
+ wait(1);
+ }
+}
diff -r 000000000000 -r 19a04545e304 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon May 12 09:55:57 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776 \ No newline at end of file
diff -r 000000000000 -r 19a04545e304 sMotor.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sMotor.lib Mon May 12 09:55:57 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/XtaticO/code/sMotor/#4b3b9e047ce3