dd

Dependencies:   mbed nRF24L01P

Fork of kl25Z_nRF_TX by Eduvance SIT2017

Files at this revision

API Documentation at this revision

Comitter:
sivanand
Date:
Wed Dec 13 06:26:52 2017 +0000
Parent:
1:c5c9925140b7
Commit message:
updated

Changed in this revision

Transmitter.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Transmitter.cpp	Sat Jun 04 05:34:31 2016 +0000
+++ b/Transmitter.cpp	Wed Dec 13 06:26:52 2017 +0000
@@ -8,13 +8,13 @@
 
 int main()
 {
-    char count[2];
+    char count[1];
     char TxDataCnt;
     char temp;
 
 
     my_nrf24l01p.powerUp();
-    my_nrf24l01p.setRfFrequency(2410);
+    my_nrf24l01p.setRfFrequency(2404);
 
     // Display the (default) setup of the nRF24L01+ chip
     pc.printf( "nRF24L01+ Frequency    : %d MHz\r\n",  my_nrf24l01p.getRfFrequency() );
@@ -25,13 +25,13 @@
 
     pc.printf( "Simple Transmitter (0 - 9 Counter) \r\n");
 
-    TxDataCnt = 2;
+    TxDataCnt = 1;
     my_nrf24l01p.setTransferSize(TxDataCnt);
 
     my_nrf24l01p.enable();
 
     count[0] = 0x01;
-    count[1] = 0x01;
+    
 
     while (1) {
 
@@ -43,7 +43,7 @@
         // Toggle LED1 (to help debug Host -> nRF24L01+ communication)
         RedLED = !RedLED;
             
-        count[1]++;
+        count[0]++;
         
         wait(1);
     }