Do clock divider on chip select. Should improve SPI interop with other devices
This commit is contained in:
parent
937805d6a2
commit
8f80038227
1 changed files with 1 additions and 0 deletions
1
RF24.cpp
1
RF24.cpp
|
@ -23,6 +23,7 @@
|
|||
void RF24::csn(int mode)
|
||||
{
|
||||
SPI.setDataMode(SPI_MODE0);
|
||||
SPI.setClockDivider(SPI_CLOCK_DIV8);
|
||||
digitalWrite(csn_pin,mode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue