Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- radio.begin();
- // optionally, increase the delay between retries & # of retries
- radio.setRetries(15,15);
- // optionally, reduce the payload size. seems to
- // improve reliability
- //radio.setPayloadSize(8);
- //
- // Open pipes to other nodes for communication
- //
- // This simple sketch opens two pipes for these two nodes to communicate
- // back and forth.
- // Open 'our' pipe for writing
- // Open the 'other' pipe for reading, in position #1 (we can have up to 5 pipes open for reading)
- //if ( role == role_ping_out )
- {
- //radio.openWritingPipe(pipes[0]);
- radio.openReadingPipe(1,pipes[1]);
- }
- //else
- {
- //radio.openWritingPipe(pipes[1]);
- //radio.openReadingPipe(1,pipes[0]);
- }
- RF24/examples/GettingStarted/
- ROLE: Pong back
- *** PRESS 'T' to begin transmitting to the other node
- STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0
- RX_ADDR_P0-1 = 0xe7e7e7e7e7 0xf0f0f0f0d2
- RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6
- TX_ADDR = 0xe7e7e7e7e7
- RX_PW_P0-6 = 0x00 0x20 0x00 0x00 0x00 0x00
- EN_AA = 0x3f
- EN_RXADDR = 0x03
- RF_CH = 0x4c
- RF_SETUP = 0x07
- CONFIG = 0x0f
- DYNPD/FEATURE = 0x00 0x00
- Data Rate = 1MBPS
- Model = nRF24L01+
- CRC Length = 16 bits
- PA Power = PA_HIGH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement