projet ghostbuzzter

Dependencies:   mbed Random HMC5883L Buzzer

Files at this revision

API Documentation at this revision

Comitter:
briceetpapaul
Date:
Sun Dec 22 11:34:06 2019 +0000
Parent:
1:6e74ea075482
Commit message:
fin;

Changed in this revision

main.cpp Show diff for this revision Revisions of this file
main_test_boussole.cpp Show annotated file Show diff for this revision Revisions of this file
main_test_buzzer.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6e74ea075482 -r 780472a0cfaf main.cpp
--- a/main.cpp	Sun Dec 22 11:32:39 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#include "mbed.h"
-#include "HMC5883L.h"
-#include "Buzzer.h"
-
-int main() 
-{
-    Buzzer buzz(p8);
-    buzz.definirPeriode(0.00025);
-    buzz.demarrer();
-    wait(2);
-    buzz.definirPeriode(0.0025);
-    buzz.demarrer();
-    wait(2);
-    buzz.definirPeriode(0.025);
-    buzz.demarrer();
-    wait(2);
-    buzz.changerPeriode(0.25);
-    wait(2);
-    buzz.changerPeriode(2.5);
-    while(1) 
-    {
-        
-    }
-}
diff -r 6e74ea075482 -r 780472a0cfaf main_test_boussole.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_test_boussole.cpp	Sun Dec 22 11:34:06 2019 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "HMC5883L.h"
+#include "Gestion.h"
+
+int16_t tabOutput[3];
+
+int main() 
+{   
+    while(1) 
+    {
+        compass.getXYZ(tabOutput);
+        printf("x : %d | z :  %d | y : %d\r\n", tabOutput[0], tabOutput[1], tabOutput[2]);
+        wait(0.5);
+    }
+}
+
diff -r 6e74ea075482 -r 780472a0cfaf main_test_buzzer.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_test_buzzer.cpp	Sun Dec 22 11:34:06 2019 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "HMC5883L.h"
+#include "Buzzer.h"
+
+int main() 
+{
+    Buzzer buzz(p8);
+    buzz.definirPeriode(0.00025);
+    buzz.demarrer();
+    wait(2);
+    buzz.definirPeriode(0.0025);
+    buzz.demarrer();
+    wait(2);
+    buzz.definirPeriode(0.025);
+    buzz.demarrer();
+    wait(2);
+    buzz.changerPeriode(0.25);
+    wait(2);
+    buzz.changerPeriode(2.5);
+    while(1) 
+    {
+        
+    }
+}