mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-19 23:46:02 +01:00
Add Mega definitions to allow compilation
This commit is contained in:
parent
c35a6aeedc
commit
ebfc59387f
@ -53,6 +53,12 @@
|
|||||||
#define SPIWIFI_ACK 7 // a.k.a BUSY or READY pin
|
#define SPIWIFI_ACK 7 // a.k.a BUSY or READY pin
|
||||||
#define ESP32_RESETN 5 // Reset pin
|
#define ESP32_RESETN 5 // Reset pin
|
||||||
#define ESP32_GPIO0 -1 // Not connected
|
#define ESP32_GPIO0 -1 // Not connected
|
||||||
|
#elif defined(ARDUINO_AVR_MEGA2560)
|
||||||
|
#define SPIWIFI SPI // The SPI port
|
||||||
|
#define SPIWIFI_SS 53 // Chip select pin
|
||||||
|
#define ESP32_RESETN 22 // Reset pin
|
||||||
|
#define SPIWIFI_ACK 23 // a.k.a BUSY or READY pin
|
||||||
|
#define ESP32_GPIO0 -1
|
||||||
#else
|
#else
|
||||||
#warning "WiFiNINA has no SPI port or pin allocations for this archiecture yet!"
|
#warning "WiFiNINA has no SPI port or pin allocations for this archiecture yet!"
|
||||||
#endif
|
#endif
|
||||||
@ -88,7 +94,8 @@ bool WifiNINA::setup(const char *SSid,
|
|||||||
if (WiFi.status() == WL_NO_MODULE) {
|
if (WiFi.status() == WL_NO_MODULE) {
|
||||||
DIAG(F("Communication with WiFi module failed!"));
|
DIAG(F("Communication with WiFi module failed!"));
|
||||||
// don't continue for now!
|
// don't continue for now!
|
||||||
while (true);
|
// while (true);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print firmware version on the module
|
// Print firmware version on the module
|
||||||
|
@ -105,6 +105,7 @@ lib_deps =
|
|||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
arduino-libraries/Ethernet
|
arduino-libraries/Ethernet
|
||||||
SPI
|
SPI
|
||||||
|
https://github.com/adafruit/WiFiNINA
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
monitor_echo = yes
|
monitor_echo = yes
|
||||||
build_flags =
|
build_flags =
|
||||||
|
Loading…
Reference in New Issue
Block a user