Program to test nrF24 module / RF transmission

Dependencies:   MOD24_NRF nRF24

Committer:
villemejane
Date:
Sat Mar 19 19:01:34 2022 +0000
Revision:
2:68d03c147aff
Parent:
1:b96e529849d1
Program to test nrF24 module / RF transmission

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 0:4762540bcced 13 #include "MOD24_NRF.h"
villemejane 1:b96e529849d1 14 #include "nRF24.h"
villemejane 0:4762540bcced 15
villemejane 2:68d03c147aff 16 Serial debug_pc(USBTX, USBRX);
villemejane 2:68d03c147aff 17 InterruptIn bp_int(USER_BUTTON);
villemejane 2:68d03c147aff 18
villemejane 2:68d03c147aff 19 /* Main Function */
villemejane 0:4762540bcced 20 int main() {
villemejane 1:b96e529849d1 21 debug_pc.printf("Test\r\n");
villemejane 1:b96e529849d1 22 initNRF24();
villemejane 0:4762540bcced 23
villemejane 0:4762540bcced 24 while(1) {
villemejane 1:b96e529849d1 25 testNRF24();
villemejane 0:4762540bcced 26 }
villemejane 0:4762540bcced 27 }