Program to test nrF24 module / RF transmission

Dependencies:   MOD24_NRF nRF24

Committer:
villemejane
Date:
Tue Dec 14 15:03:53 2021 +0000
Revision:
1:b96e529849d1
Parent:
0:4762540bcced
Child:
2:68d03c147aff
nRF24 L01 - RF communication module

Who changed what in which revision?

UserRevisionLine numberNew contents of line
villemejane 0:4762540bcced 1 /****************************************************************************/
villemejane 0:4762540bcced 2 /* Test MOD-24LR / nrf24L01 */
villemejane 0:4762540bcced 3 /****************************************************************************/
villemejane 0:4762540bcced 4 /* LEnsE / Julien VILLEMEJANE / Institut d'Optique Graduate School */
villemejane 0:4762540bcced 5 /****************************************************************************/
villemejane 0:4762540bcced 6 /* Brochage */
villemejane 0:4762540bcced 7 /* TO COMPLETE */
villemejane 0:4762540bcced 8 /****************************************************************************/
villemejane 0:4762540bcced 9 /* Test réalisé sur Nucléo-F411RE */
villemejane 0:4762540bcced 10 /****************************************************************************/
villemejane 0:4762540bcced 11
villemejane 0:4762540bcced 12 #include "mbed.h"
villemejane 1:b96e529849d1 13 #include "voiture_auto.h"
villemejane 1:b96e529849d1 14 #include "rplidar.h"
villemejane 0:4762540bcced 15 #include "MOD24_NRF.h"
villemejane 1:b96e529849d1 16 #include "nRF24.h"
villemejane 0:4762540bcced 17
villemejane 0:4762540bcced 18 int main() {
villemejane 1:b96e529849d1 19 debug_pc.printf("Test\r\n");
villemejane 1:b96e529849d1 20 initVoiture();
villemejane 1:b96e529849d1 21 initNRF24();
villemejane 0:4762540bcced 22
villemejane 0:4762540bcced 23 while(1) {
villemejane 1:b96e529849d1 24 testNRF24();
villemejane 0:4762540bcced 25 }
villemejane 0:4762540bcced 26 }