LowPowerLab / RFM69

RFM69 library for RFM69W, RFM69HW, RFM69CW, RFM69HCW (semtech SX1231, SX1231H)
GNU General Public License v3.0
778 stars 381 forks source link

Arduino Due compatibility #68

Open itavero opened 7 years ago

itavero commented 7 years ago

It seems that this library is currently not compatible with the Arduino Due (SAM3X8).

LowPowerLab commented 7 years ago

Good observation. Actually it was not really intended to support anything but AVR (specifically 328p and 1284p).

ajaybnl commented 4 years ago

it could, try adding spi pins directly in rfm69.cpp:

Replace SPI.begin(); with : SPI.begin(SCK,MOSI,MISO,CS);

and in rfm69.h:

define RF69_IRQ_PIN PIN_NUMBER

define RF69_SPI_CS PIN_NUMBER