projet ghostbuzzter
Dependencies: mbed Random HMC5883L Buzzer
Revision 2:780472a0cfaf, committed 2019-12-22
- Comitter:
- briceetpapaul
- Date:
- Sun Dec 22 11:34:06 2019 +0000
- Parent:
- 1:6e74ea075482
- Commit message:
- fin;
Changed in this revision
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) + { + + } +}