Test program for the Nordic Semi nRF24L01 Transceiver Module (http://www.sparkfun.com/products/691), talking to another module connected to SparkFun\'s Nordic Serial Interface Board (http://www.sparkfun.com/products/9019).

Dependencies:   mbed nRF24L01P

Revision:
4:7fa578849b23
Parent:
3:37c053b30ca0
Child:
6:c55f867da01d
--- a/main.cpp	Thu Dec 13 11:30:36 2018 +0000
+++ b/main.cpp	Tue Dec 18 10:57:49 2018 +0000
@@ -40,24 +40,18 @@
 // The nRF24L01+ supports transfers from 1 to 32 bytes, but Sparkfun's
 //  "Nordic Serial Interface Board" (http://www.sparkfun.com/products/9019)
 //  only handles 4 byte transfers in the ATMega code.
+
     char txData[TRANSFER_SIZE], rxData[TRANSFER_SIZE];
     int txDataCnt = 0;
     int rxDataCnt = 0;
 
     my_nrf24l01p.powerUp();
     
-    printSettings();
-    
     setFrequency(2450);
-    setPower(-6);
-    setDataReet(1000);
     
     printSettings();
-    
-    setDefaults();
-    
-    printSettings();
-
+    my_nrf24l01p.enableAutoAcknowledge(NRF24L01P_PIPE_P0);
+    my_nrf24l01p.enableAutoRetransmit(100000, 10);
     my_nrf24l01p.setTransferSize( TRANSFER_SIZE );
 
     my_nrf24l01p.setReceiveMode();