Les bros de la fst / Mbed 2 deprecated TP3P1

Dependencies:   C12832 MMA7660 mbed

Files at this revision

API Documentation at this revision

Comitter:
Bleiz038
Date:
Fri Nov 16 12:01:21 2018 +0000
Commit message:
ddf

Changed in this revision

C12832.lib Show annotated file Show diff for this revision Revisions of this file
MMA7660.lib Show annotated file Show diff for this revision Revisions of this file
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/C12832.lib	Fri Nov 16 12:01:21 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	Fri Nov 16 12:01:21 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/main.cpp	Fri Nov 16 12:01:21 2018 +0000
@@ -0,0 +1,22 @@
+#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);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Nov 16 12:01:21 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file