mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 20:56:37 +00:00
change spi2 to generic espSPI
This commit is contained in:
parent
370c6cd9fc
commit
f61f9330f5
@ -23,7 +23,7 @@ static WiFiEventHandler gotIpEventHandler, disconnectedEventHandler;
|
|||||||
// #include <WiFi.h>
|
// #include <WiFi.h>
|
||||||
// #include "WiFiSpi.h"
|
// #include "WiFiSpi.h"
|
||||||
// extern WiFiSpiClass WiFi;
|
// extern WiFiSpiClass WiFi;
|
||||||
SPIClass spi2(ESPSPI_MOSI, ESPSPI_MISO, ESPSPI_SCLK); // SPI port where esp is connected
|
SPIClass espSPI(ESPSPI_MOSI, ESPSPI_MISO, ESPSPI_SCLK); // SPI port where esp is connected
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
//#include "DNSserver.h"
|
//#include "DNSserver.h"
|
||||||
@ -165,7 +165,7 @@ void wifiSetup()
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Initialize the WifiSpi library
|
// Initialize the WifiSpi library
|
||||||
WiFiSpi.init(ESPSPI_CS, 8000000, &spi2);
|
WiFiSpi.init(ESPSPI_CS, 8000000, &espSPI);
|
||||||
|
|
||||||
// check for the presence of the shield:
|
// check for the presence of the shield:
|
||||||
if (WiFiSpi.status() == WL_NO_SHIELD) {
|
if (WiFiSpi.status() == WL_NO_SHIELD) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user