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.
Dependents: LIS302_HelloWorld mbed_line_camera
Revision 0:0785e0c655e0, committed 2009-11-13
- Comitter:
- simon
- Date:
- Fri Nov 13 00:02:35 2009 +0000
- Child:
- 1:fe7ccd3480e6
- Commit message:
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Nov 13 00:02:35 2009 +0000
@@ -0,0 +1,13 @@
+// LIS302 Hello World!
+
+#include "mbed.h"
+#include "LIS302.h"
+
+LIS302 acc(p5, p6, p7, p8); // mosi, miso, sclk, ncs
+
+int main() {
+ while(1) {
+ printf("%.3f %.3f %.3f\n", acc.x(), acc.y(), acc.z());
+ wait(0.1);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Nov 13 00:02:35 2009 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479
LIS302 Accelerometer