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:   BSP_DISCO_L476VG LCD_DISCO_L476VG mbed nRF24L01P

Fork of Final_project by Dominic Naples

Revision:
4:dcee65c6cebf
Parent:
3:2544ec35c76f
--- a/main.cpp	Thu Apr 12 23:00:18 2018 +0000
+++ b/main.cpp	Tue Apr 17 21:33:05 2018 +0000
@@ -44,8 +44,9 @@
     //led_green = 1;
     lcd.Clear();
     lcd.DisplayString((uint8_t *)"HELLO");
-    wait(1);
-    
+    wait(5);
+      lcd.Clear();
+      
     while (1) {
 
         // If we've received anything over the host serial link...
@@ -72,12 +73,16 @@
 
             // ...read the data into the receive buffer
             rxDataCnt = my_nrf24l01p.read( NRF24L01P_PIPE_P0, rxData, sizeof( rxData ) );
-
             // Display the receive buffer contents via the host serial link
             for ( int i = 0; rxDataCnt > 0; rxDataCnt--, i++ ) {
 
                 pc.putc( rxData[i] );
+                
             }
+                lcd.Clear();
+                lcd.DisplayString((uint8_t *)"REC");
+                wait(5);
+                lcd.Clear();
 }
     
    
@@ -85,19 +90,7 @@
    // printf("Scroll sequence\n");
     //led_green = 0;
     //lcd.Clear();
-    //lcd.ScrollSentence(title, 2, 200);
-    //lcd.Clear();
-  
-  //  while(1) {
-    //    printf("BAR = %d\n", temp);
-      //  sprintf((char *)stemp, "BAR %d", temp);
-        //lcd.DisplayString(stemp);
-        //lcd.BarLevelConfig((uint8_t)temp);
-        //temp++;
-        //if (temp > 4) temp = 0;
-        //led_green = !led_green;
-       // wait(1);
-    
+   
             // Toggle LED2 (to help debug nRF24L01+ -> Host communication)
             myled2 = !myled2;
         }