projet ghostbuzzter

Dependencies:   mbed Random HMC5883L Buzzer

Files at this revision

API Documentation at this revision

Comitter:
briceetpapaul
Date:
Sun Dec 22 11:30:17 2019 +0000
Child:
1:6e74ea075482
Commit message:
fini

Changed in this revision

Buzzer.lib Show annotated file Show diff for this revision Revisions of this file
HMC5883L.lib Show annotated file Show diff for this revision Revisions of this file
Random.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/Buzzer.lib	Sun Dec 22 11:30:17 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/briceetpapaul/code/Buzzer/#c5a5dc015c10
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HMC5883L.lib	Sun Dec 22 11:30:17 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/tylerjw/code/HMC5883L/#bc4e1201e092
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Random.lib	Sun Dec 22 11:30:17 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/briceetpapaul/code/Random/#aad2349101de
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Dec 22 11:30:17 2019 +0000
@@ -0,0 +1,26 @@
+#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.definirPeriode(0.25);
+    buzz.demarrer();
+    wait(2);
+    buzz.definirPeriode(2.5);
+    buzz.demarrer();
+    while(1) 
+    {
+        
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Dec 22 11:30:17 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file