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:
- 4:3bff5791d6d3
- Parent:
- 3:43dac789686d
- Child:
- 5:0f73a04481fd
diff -r 43dac789686d -r 3bff5791d6d3 main.cpp
--- a/main.cpp Fri May 24 14:12:15 2019 +0000
+++ b/main.cpp Fri May 24 16:55:41 2019 +0000
@@ -15,29 +15,10 @@
int main()
{
- int connect = 0;
wait_ms(1000);
DigitalOut myled(LED1);
- BT.printf("$$$"); //Passage en mode commande
- wait_ms(10000); //
- BT.printf("C\r"); //Demande de connexion
- wait_ms(1000); //
-
- /*while(connect != 1) {
- BT.printf("$$$"); //Passage en mode commande
- wait_ms(1000); //
- BT.printf("C\r"); //Demande de connexion
- wait_ms(1000); //
- BT.printf("O"); //Test de connection
- if (BT.readable()) { //
- if (BT.getc() == 'O') { //Réponse de l'expérience reçue ?
- connect = 1;
- BT.printf("---\r");
- }
- }
- } */
-
+
while(1) {
switch (cas) {