Revert redundant pin numbering for ESP32

spi->begin() chooses VSPI pin numbering by default.
This commit is contained in:
haschler 2022-11-15 21:40:30 +01:00 committed by GitHub
parent 2864347e78
commit 52df472c32
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);