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-os nRF24L01P
Diff: main.cpp
- Revision:
- 6:fb9b0e731946
- Parent:
- 5:e0a364225ab5
- Child:
- 9:8714c0dbb6de
diff -r e0a364225ab5 -r fb9b0e731946 main.cpp
--- a/main.cpp Fri Oct 29 08:37:24 2021 +0000
+++ b/main.cpp Fri Dec 10 07:55:30 2021 +0000
@@ -25,7 +25,7 @@
{
// Nombre de caractères transmis à chaque envoi
-#define TRANSFER_SIZE 1
+#define TRANSFER_SIZE 20
char txData[TRANSFER_SIZE], rxData[TRANSFER_SIZE];
char caractere_recu=0;
@@ -39,8 +39,8 @@
my_nrf24l01p.powerUp();
// paramétrage
- my_nrf24l01p.setRfFrequency(2418); // Définition de la fréquence du canal d'E/R
- my_nrf24l01p.setAirDataRate(NRF24L01P_DATARATE_1_MBPS); // Définition du débit de la communication RF
+ my_nrf24l01p.setRfFrequency(2414); // Définition de la fréquence du canal d'E/R
+ my_nrf24l01p.setAirDataRate(NRF24L01P_DATARATE_2_MBPS); // Définition du débit de la communication RF
my_nrf24l01p.setRfOutputPower(-6);