Test of wireless system

Dependencies:   mbed nRF24L01

Files at this revision

API Documentation at this revision

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();