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: XBeeLib mbed mbed-rtos EthernetInterface
Diff: main.cpp
- Revision:
- 20:2a94c9200119
- Parent:
- 18:972fb2937e41
- Child:
- 21:5adfcfd83e95
--- a/main.cpp Sun Nov 11 21:15:33 2018 +0000
+++ b/main.cpp Sun Nov 11 21:56:42 2018 +0000
@@ -29,11 +29,11 @@
//feux gauche
//rouge
-DigitalOut feux_gauche_rouge(p30);
+DigitalOut feux_gauche_rouge(p12);
//orange
-DigitalOut feux_gauche_orange(p28);
+DigitalOut feux_gauche_orange(p14);
//vert
-DigitalOut feux_gauche_vert(p26);
+DigitalOut feux_gauche_vert(p16);
//liste des message a envoyer rouge et vert seulement pour le coordinateur
//////////////////////////
@@ -54,14 +54,16 @@
log_serial->printf("\r\nGot a %s RX packet [%08x:%08x|%04x], len %d\r\nData: ", broadcast ? "BROADCAST" : "UNICAST", UINT64_HI32(remote_addr64), UINT64_LO32(remote_addr64), remote.get_addr16(), len);
- for (int i = 0; i < len; i++)
- log_serial->printf("%02x ", data[i]);
- /* if (data[0]==0x76){
+ /*for (int i = 0; i < len; i++)
+ log_serial->printf("%02x ", data[i]);*/
+ if (data[0]==0x76){
+ feux_gauche_rouge = 1;
+ feux_gauche_vert = 0;
+ }
+ if (data[0]==0x72){
feux_gauche_rouge = 0;
+ feux_gauche_vert = 1;
}
- if (data[0}==0x72){
- feux_gauche_vert = 1;
- }*/
log_serial->printf("\r\n");
}
