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.
Diff: main.cpp
- Revision:
- 0:c036efff0b10
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Nov 13 11:58:12 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);
+ }
+}