Custom SPI support

This commit is contained in:
Auri 2020-06-02 13:27:30 +02:00 committed by GitHub
parent f77011bf0b
commit 07c3e9ed16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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
#endif