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.
Revision 3:08513ad1d0bb, committed 2015-12-24
- Comitter:
- ke7kto
- Date:
- Thu Dec 24 17:51:05 2015 +0000
- Parent:
- 2:df53d3fdfc70
- Commit message:
- Full pin setup;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file | 
--- a/main.cpp	Thu Dec 24 17:40:12 2015 +0000
+++ b/main.cpp	Thu Dec 24 17:51:05 2015 +0000
@@ -1,12 +1,19 @@
 #include "mbed.h"
 #include "nRF24L01P_PTX.h"
 #include "nRF24L01P_PRX.h"
- 
+ /*#VCC p3
+#GND GND
+#CSN D10
+#CE PTC11
+#MOSI D9
+#SCK PTD1
+#IRQ PTD0
+#MISO D3*/
 int main()
 {
-   nRF24L01P Device(PTD2, PTD3, PTD1, PTD5);
+   nRF24L01P Device(D9, D3, PTD1, D10);
  
-   nRF24L01P_PTX PTX(Device, PTA13, PTD0);
+   nRF24L01P_PTX PTX(Device, PTC11, PTD0);
  
    PTX.Initialize();
    PTX.SetDataRate(2000);
@@ -14,7 +21,7 @@
  
  
    nRF24L01P Receiver(PTD2, PTD3, PTD1, PTC7);
-   nRF24L01P_PRX PRX(Receiver, PTA12, PTD4);
+   nRF24L01P_PRX PRX(Receiver, PTC11, PTD0);
  
    printf("Initialize\r\n");
    PRX.Initialize();