22 lines
554 B
Plaintext
22 lines
554 B
Plaintext
|
#define WIFI_SSID "myNetwork"
|
||
|
#define WIFI_PASSWORD "myPassword"
|
||
|
#define WEBHOOK_URL "example.com/aoeuhtns"
|
||
|
|
||
|
// In this example we have three pins that will
|
||
|
// be controlled: pin 5 will be a momentary switch
|
||
|
// and pins 8 and 10 will be sustained/latched switches.
|
||
|
//
|
||
|
// We would expect the webhook to return something like:
|
||
|
//
|
||
|
// 0 1
|
||
|
// 1 0
|
||
|
// 2 1
|
||
|
//
|
||
|
// to activate the momentary switch, (pin 5) deactivate the first
|
||
|
// latched switch, (pin 8) and activate the second latched switch. (pin 10)
|
||
|
const int PIN_MAP[][2] = {
|
||
|
{5, 0},
|
||
|
{8, 1},
|
||
|
{10, 1}
|
||
|
};
|