SPI communication bandwidth was changed to 10 MHz for faster data transfers.
Dependents: DifferentialDriveRobot
Diff: nRF24L01P.cpp
- Revision:
- 1:eefb4f0c0b19
- Parent:
- 0:8ae48233b4e4
diff -r 8ae48233b4e4 -r eefb4f0c0b19 nRF24L01P.cpp --- a/nRF24L01P.cpp Wed Jan 19 22:59:48 2011 +0000 +++ b/nRF24L01P.cpp Tue Oct 08 13:34:05 2019 +0000 @@ -184,7 +184,7 @@ nCS_ = 1; - spi_.frequency(_NRF24L01P_SPI_MAX_DATA_RATE/5); // 2Mbit, 1/5th the maximum transfer rate for the SPI bus + spi_.frequency(_NRF24L01P_SPI_MAX_DATA_RATE); // 2Mbit, 1/5th the maximum transfer rate for the SPI bus spi_.format(8,0); // 8-bit, ClockPhase = 0, ClockPolarity = 0 wait_us(_NRF24L01P_TIMING_Tundef2pd_us); // Wait for Power-on reset