Merge pull request #185 from haschler/master

Revert redundant pin numbering for ESP32
This commit is contained in:
Felix Rusu 2022-11-16 17:20:05 -05:00 committed by GitHub
commit ff7e3555d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -113,12 +113,7 @@ bool RFM69::initialize(uint8_t freqBand, uint16_t nodeID, uint8_t networkID)
if(_spi == nullptr){
_spi = &SPI;
}
#if defined(ESP32)
_spi->begin(18,19,23,5); //SPI3 (SCK,MISO,MOSI,CS)
//_spi->begin(14,12,13,15); //SPI2 (SCK,MISO,MOSI,CS)
#else
_spi->begin();
#endif
#ifdef SPI_HAS_TRANSACTION
_settings = SPISettings(8000000, MSBFIRST, SPI_MODE0);