![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Test of wireless system
Diff: main.cpp
- Revision:
- 3:08513ad1d0bb
- Parent:
- 2:df53d3fdfc70
--- 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();