Skip to content

Commit 9be20a5

Browse files
author
brentru
committed
better config.h since winc1500 pins are predefined already
1 parent 37a603d commit 9be20a5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

examples/adafruitio_00_publish/config.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,14 @@
3232
#ifdef USE_AIRLIFT
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
35-
// Don't change the names of these #define's! they match the variant ones
36-
#define SPIWIFI SPI
37-
#define SPIWIFI_SS 10 // Chip select pin
38-
#define SPIWIFI_ACK 9 // a.k.a BUSY or READY pin
39-
#define ESP32_RESETN 6 // Reset pin
40-
#define ESP32_GPIO0 -1 // Not connected
35+
// Don't change the names of these #define's! they match the variant ones
36+
#define SPIWIFI SPI
37+
#define SPIWIFI_SS 10 // Chip select pin
38+
#define SPIWIFI_ACK 9 // a.k.a BUSY or READY pin
39+
#define ESP32_RESETN 6 // Reset pin
40+
#define ESP32_GPIO0 -1 // Not connected
4141
#endif
4242
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
43-
#elif USE_WINC1500
44-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
4543
#else
4644
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4745
#endif

0 commit comments

Comments
 (0)