Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of kl25Z_nRF_TX by
Revision 2:8ea3931ff17a, committed 2017-12-13
- 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);
}
