Copy off node 1 to behave node 2

Dependencies:   mbed RF24Network RF24

Revision:
7:1f768ebd2742
Parent:
6:6a3d4e0f6799
Child:
8:5c8bf540ed8e
Child:
9:0736b94c8a51
--- a/main.cpp	Fri May 21 07:52:27 2021 +0000
+++ b/main.cpp	Sun May 23 23:41:26 2021 +0000
@@ -8,6 +8,8 @@
 //  Projet 2021 : Jeu type Simon's pour la rééducation
 //
 //  Note : Utilisation de Timer et du SPI
+//
+//  Code pour le node 01
 /*************************************/
 #include "mbed.h"
 #include <RF24Network.h>
@@ -35,7 +37,7 @@
 const uint16_t other_node = 00;
 
 // How often to send payload packet to the other unit
-const unsigned long interval = 1000; //ms
+//const unsigned long interval = 1000; //ms
 
 // When did we last send?
 unsigned long last_sent;
@@ -125,7 +127,7 @@
         {
             payload_t payload_tx;
             payload_tx.src = this_node;
-            payload_tx.dest = 02;
+            payload_tx.dest = 00;
             payload_tx.data = node.del%5;
             pc.printf("Envoi...");
 
@@ -135,7 +137,7 @@
                 pc.printf("ok.\r\n");
             else
                 pc.printf("erreur.\r\n");
-            wait_ms(2000);
+            wait_ms(1000);
         }
     }
 }
\ No newline at end of file