Skip to content

Commit 81487b5

Browse files
author
brentru
committed
build for metro m4 wifi
1 parent 5e67c30 commit 81487b5

File tree

25 files changed

+36
-36
lines changed

25 files changed

+36
-36
lines changed

examples/adafruitio_00_publish/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_01_subscribe/config.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
33-
// Configure the pins used for the ESP32 connection
34-
#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
41-
#endif
42-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
33+
// Configure the pins used for the ESP32 connection
34+
#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
41+
#endif
42+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
4343
#else
44-
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
44+
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
4545
#endif
4646
/******************************* FONA **************************************/
4747

examples/adafruitio_02_pubsub/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_03_multiple_feeds/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_04_location/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_05_type_conversion/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_06_digital_in/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_07_digital_out/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_08_analog_in/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

examples/adafruitio_09_analog_out/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// comment out the following lines if you are using fona or ethernet
3030
#include "AdafruitIO_WiFi.h"
3131

32-
#ifdef USE_AIRLIFT
32+
#if defined(USE_AIRLIFT) || defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE)
3333
// Configure the pins used for the ESP32 connection
3434
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
3535
// Don't change the names of these #define's! they match the variant ones

0 commit comments

Comments
 (0)