Skip to content

Commit 54d1719

Browse files
brentrubrentru
authored andcommitted
update configs
1 parent 21b1490 commit 54d1719

File tree

25 files changed

+342
-290
lines changed

25 files changed

+342
-290
lines changed

examples/adafruitio_00_publish/config.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,20 @@
2020
#define WIFI_SSID "your_ssid"
2121
#define WIFI_PASS "your_pass"
2222

23-
// uncomment the following line for AirLift
24-
// #define USE_AIRLIFT
25-
26-
// uncomment the following line for WINC1500
27-
// #define USE_WINC1500
28-
2923
// comment out the following two lines if you are using fona or ethernet
3024
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
3127
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
3228

29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
32+
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
36+
3337
/******************************* FONA **************************************/
3438

3539
// the AdafruitIO_FONA client will work with the following boards:

examples/adafruitio_01_subscribe/config.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_02_pubsub/config.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_03_multiple_feeds/config.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_04_location/config.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_05_type_conversion/config.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_06_digital_in/config.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_07_digital_out/config.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_08_analog_in/config.h

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// visit io.adafruit.com if you need to create an account,
44
// or if you need your Adafruit IO key.
5-
#define IO_USERNAME "your_username"
6-
#define IO_KEY "your_key"
5+
#define IO_USERNAME "your_username"
6+
#define IO_KEY "your_key"
77

88
/******************************* WIFI **************************************/
99

@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

17-
#define WIFI_SSID "your_ssid"
18-
#define WIFI_PASS "your_pass"
20+
#define WIFI_SSID "your_ssid"
21+
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

examples/adafruitio_09_analog_out/config.h

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// visit io.adafruit.com if you need to create an account,
44
// or if you need your Adafruit IO key.
5-
#define IO_USERNAME "your_username"
6-
#define IO_KEY "your_key"
5+
#define IO_USERNAME "your_username"
6+
#define IO_KEY "your_key"
77

88
/******************************* WIFI **************************************/
99

@@ -13,24 +13,26 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

17-
#define WIFI_SSID "your_ssid"
18-
#define WIFI_PASS "your_pass"
20+
#define WIFI_SSID "your_ssid"
21+
#define WIFI_PASS "your_pass"
1922

2023
// comment out the following two lines if you are using fona or ethernet
2124
#include "AdafruitIO_WiFi.h"
25+
26+
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2227
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2328

24-
/******************************* AirLift **************************************/
29+
// uncomment the following two lines if you are using airlift,
30+
// #define USE_AIRLIFT
31+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
2532

26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
33+
// uncomment the following two lines if you are using winc1500,
34+
// #define USE_WINC1500
35+
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3436

3537
/******************************* FONA **************************************/
3638

0 commit comments

Comments
 (0)