Copy off node 1 to behave node 2
Dependencies: mbed RF24Network RF24
Revision 10:a3cd481e7ef3, committed 2021-05-25
- Comitter:
- Giamarchi
- Date:
- Tue May 25 14:03:18 2021 +0000
- Parent:
- 8:5c8bf540ed8e
- Commit message:
- new version
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5c8bf540ed8e -r a3cd481e7ef3 main.cpp --- a/main.cpp Mon May 24 13:39:15 2021 +0000 +++ b/main.cpp Tue May 25 14:03:18 2021 +0000 @@ -131,11 +131,13 @@ node.del++; payload_t payload_tx; payload_tx.src = this_node; + payload_tx.data = node.del%5; + if(!BTN1) payload_tx.dest = 00; if(!BTN2) payload_tx.dest = 01; - payload_tx.data = node.del%5; + pc.printf("Envoi..."); RF24NetworkHeader header_tx(other_node); // vers node "other_node"