Initial commit.

This commit is contained in:
2020-05-06 17:05:51 -04:00
commit 13f7706782
5 changed files with 221 additions and 0 deletions

21
config.h.example Normal file
View File

@ -0,0 +1,21 @@
#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}
};