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.
Dependencies: mbed Random HMC5883L Buzzer
main.cpp
- Committer:
- briceetpapaul
- Date:
- 2019-12-22
- Revision:
- 1:6e74ea075482
- Parent:
- 0:5e4ab3834036
File content as of revision 1:6e74ea075482:
#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)
{
}
}