Skip to content

Commit da49d16

Browse files
brentrubrentru
authored andcommitted
refactor config.h files
1 parent d2d377e commit da49d16

File tree

25 files changed

+200
-100
lines changed

25 files changed

+200
-100
lines changed

examples/adafruitio_00_publish/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_01_subscribe/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_02_pubsub/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_03_multiple_feeds/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_04_location/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_05_type_conversion/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_06_digital_in/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_07_digital_out/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_08_analog_in/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

examples/adafruitio_09_analog_out/config.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,19 @@
2323
// comment out the following two lines if you are using fona or ethernet
2424
#include "AdafruitIO_WiFi.h"
2525

26+
// uncomment the following line if you are using airlift,
27+
// #define USE_AIRLIFT
28+
29+
// uncomment the following line if you are using winc1500,
30+
// #define USE_WINC1500
31+
2632
// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line
2733
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2834

29-
// uncomment the following two lines if you are using airlift,
30-
// #define USE_AIRLIFT
35+
// uncomment the following line if you are using airlift,
3136
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, SPIWIFI_SS, SPIWIFI_ACK, ESP32_RESETN, ESP32_GPIO0);
3237

33-
// uncomment the following two lines if you are using winc1500,
34-
// #define USE_WINC1500
38+
// uncomment the following line if you are using winc1500,
3539
// AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
3640

3741
/******************************* FONA **************************************/

0 commit comments

Comments
 (0)