Do clock divider on chip select. Should improve SPI interop with other devices

This commit is contained in:
maniacbug 2011-05-21 23:24:27 -07:00
parent 937805d6a2
commit 8f80038227
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@
void RF24::csn(int mode) void RF24::csn(int mode)
{ {
SPI.setDataMode(SPI_MODE0); SPI.setDataMode(SPI_MODE0);
SPI.setClockDivider(SPI_CLOCK_DIV8);
digitalWrite(csn_pin,mode); digitalWrite(csn_pin,mode);
} }