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:9525cf87fb78
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 03 10:44:41 2020 +0000 @@ -0,0 +1,19 @@ +#include "bluetoothV1bibli.h" + +int val=5; //la data + +void data_on_blueth(void); //fonction d'interruption +int main(void) +{ + Ticker timer; + + + init_blueth(); + timer.attach(&data_on_blueth,0.005); // creation de l'interruption + while(1) {} +} + +void data_on_blueth(void) +{ + send_data(val); //A chaque IT +} \ No newline at end of file