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
Diff: main.cpp
- Revision:
- 0:9e8a54e32f30
- Child:
- 1:13af94a28e0d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Feb 06 07:46:51 2020 +0000 @@ -0,0 +1,29 @@ +#include "mbed.h" +#include "math.h" +#include "bluetoothV2bibli.h" + +DigitalOut myled(LED1); +DigitalOut myled4(LED4); + +void data_on_blueth(void); //fonction d'interruption +int main(void) +{ + //Ticker timer; + + init_blueth(); + myled=1; + myled4=1; + //timer.attach(&data_on_blueth,0.005); // creation de l'interruption + while(1) { + if(get_val_pc(30) == 1024)myled=!myled; + } +} + +void data_on_blueth(void) +{ + static short i = 0; + short reg[4]={30,45,60,75}; + formatTrameT(reg[i], 500000 ); //A chaque IT + i++; + if(i>3)i=0; +} \ No newline at end of file