Custom SPI support

This commit is contained in:
Auri 2020-06-02 13:46:46 +02:00 committed by GitHub
parent 78447f61ef
commit 06d2786f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -36,8 +36,8 @@ class RFM69_ATC: public RFM69 {
public:
static volatile uint8_t ACK_RSSI_REQUESTED; // new flag in CTL byte to request RSSI with ACK (could potentially be merged with ACK_REQUESTED)
RFM69_ATC(uint8_t slaveSelectPin=RF69_SPI_CS, uint8_t interruptPin=RF69_IRQ_PIN, bool isRFM69HW=false, uint8_t interruptNum=0) :
RFM69(slaveSelectPin, interruptPin, isRFM69HW) {
RFM69_ATC(uint8_t slaveSelectPin=RF69_SPI_CS, uint8_t interruptPin=RF69_IRQ_PIN, bool isRFM69HW=false, uint8_t interruptNum=0, SPIClass *spi=nullptr) :
RFM69(slaveSelectPin, interruptPin, isRFM69HW, spi) {
}
bool initialize(uint8_t freqBand, uint16_t ID, uint8_t networkID=1);