Skip to content

Commit abe2edb

Browse files
authored
Merge pull request #92 from brentru/default-to-nina-pins
Examples use WIFININA Pin Names
2 parents b7bce75 + b28405c commit abe2edb

File tree

28 files changed

+240
-125
lines changed

28 files changed

+240
-125
lines changed

examples/adafruitio_00_publish/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_01_subscribe/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_03_multiple_feeds/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_04_location/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_05_type_conversion/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_06_digital_in/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_07_digital_out/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_08_analog_in/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_09_analog_out/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_10_dashboard_creation/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_11_group_pub/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_12_group_sub/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_13_rgb/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_14_neopixel/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_15_temp_humidity/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

examples/adafruitio_16_servo/config.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
1717
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
1818
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
19+
// - Adafruit AirLift Shield -> https://www.adafruit.com/product/4285
20+
// - Adafruit AirLift FeatherWing -> https://www.adafruit.com/product/4264
1921

2022
#define WIFI_SSID "your_ssid"
2123
#define WIFI_PASS "your_pass"
@@ -35,11 +37,11 @@
3537
// Don't change the names of these #define's! they match the variant ones
3638
#define SPIWIFI SPI
3739
#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
40+
#define NINA_ACK 9 // a.k.a BUSY or READY pin
41+
#define NINA_RESETN 6 // Reset pin
42+
#define NINA_GPIO0 -1 // Not connected
4143
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, NINA_ACK, NINA_RESETN, NINA_GPIO0, &SPIWIFI);
4345
#else
4446
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4547
#endif

0 commit comments

Comments
 (0)