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.
Diff: common.cpp
- Revision:
- 40:40d4161fe1ad
- Parent:
- 8:1861d0eef60a
- Child:
- 44:d15530b37144
--- a/common.cpp Tue Jan 17 11:44:16 2017 +0100 +++ b/common.cpp Tue Jan 17 11:46:14 2017 +0100 @@ -20,23 +20,23 @@ unsigned long long tx_address) { radio->powerDown(); radio->powerUp(); - + radio->setAirDataRate(DATA_RATE); radio->setRfOutputPower(POWER); radio->setRfFrequency(NRF24L01P_MIN_RF_FREQUENCY + 4 * CHANNEL); - + radio->setCrcWidth(NRF24L01P_CRC_8_BIT); radio->enableAutoAcknowledge(NRF24L01P_PIPE_P0); radio->enableAutoAcknowledge(NRF24L01P_PIPE_P1); radio->enableAutoRetransmit(0x0F, 0x0F); - + radio->setTxAddress(tx_address, 4); radio->setRxAddress(tx_address, 4, NRF24L01P_PIPE_P0); radio->setRxAddress(rx_address, 4, NRF24L01P_PIPE_P1); - + radio->setTransferSize(TRANSFER_SIZE, NRF24L01P_PIPE_P0); radio->setTransferSize(TRANSFER_SIZE, NRF24L01P_PIPE_P1); - + radio->setReceiveMode(); radio->enable(); }