|
2 | 2 |
|
3 | 3 | // visit io.adafruit.com if you need to create an account, |
4 | 4 | // 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" |
7 | 7 |
|
8 | 8 | /******************************* WIFI **************************************/ |
9 | 9 |
|
|
13 | 13 | // - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405 |
14 | 14 | // - Feather M0 WiFi -> https://www.adafruit.com/products/3010 |
15 | 15 | // - 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 |
16 | 19 |
|
17 | | -#define WIFI_SSID "your_ssid" |
18 | | -#define WIFI_PASS "your_pass" |
| 20 | +#define WIFI_SSID "your_ssid" |
| 21 | +#define WIFI_PASS "your_pass" |
19 | 22 |
|
20 | 23 | // comment out the following two lines if you are using fona or ethernet |
21 | 24 | #include "AdafruitIO_WiFi.h" |
| 25 | + |
| 26 | +// if you are using ESP32, MKR1000, ESP8266 or WICED, use the following line |
22 | 27 | AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS); |
23 | 28 |
|
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); |
25 | 32 |
|
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); |
34 | 36 |
|
35 | 37 | /******************************* FONA **************************************/ |
36 | 38 |
|
|
0 commit comments