From 07c3e9ed162a68df74c55d536e34da7e07efc9fe Mon Sep 17 00:00:00 2001 From: Auri Date: Tue, 2 Jun 2020 13:27:30 +0200 Subject: [PATCH] Custom SPI support --- RFM69.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RFM69.h b/RFM69.h index 8673372..5cde615 100644 --- a/RFM69.h +++ b/RFM69.h @@ -197,7 +197,7 @@ class RFM69 { RFM69(uint8_t slaveSelectPin, uint8_t interruptPin, bool isRFM69HW, uint8_t interruptNum) //interruptNum is now deprecated : RFM69(slaveSelectPin, interruptPin, isRFM69HW){}; - RFM69(uint8_t slaveSelectPin=RF69_SPI_CS, uint8_t interruptPin=RF69_IRQ_PIN, bool isRFM69HW=false); + RFM69(uint8_t slaveSelectPin=RF69_SPI_CS, uint8_t interruptPin=RF69_IRQ_PIN, bool isRFM69HW=false, SPIClass *spi=nullptr); bool initialize(uint8_t freqBand, uint16_t ID, uint8_t networkID=1); void setAddress(uint16_t addr); @@ -249,6 +249,7 @@ class RFM69 { bool _spyMode; uint8_t _powerLevel; bool _isRFM69HW; + SPIClass *_spi; #if defined (SPCR) && defined (SPSR) uint8_t _SPCR; uint8_t _SPSR; @@ -314,4 +315,4 @@ class RFM69 { #endif }; -#endif \ No newline at end of file +#endif