diff --git a/things/HardwareSonoff.h b/things/HardwareSonoff.h new file mode 100644 index 0000000..fe21387 --- /dev/null +++ b/things/HardwareSonoff.h @@ -0,0 +1,22 @@ +/* + * Sonoff + * off-the-shelf wifi relay module + * + * Settings in IDE: + * - Board: "Generic ESP8266 Module" + * - Flash Size: "1M (64k SPIFFS)" + * - Upload Speed: "1152200" + */ + +#include "DeviceButton.h" + +const char* FWNAME = "things@Sonoff"; + +const byte PIN_BUTTON = 0; +DeviceButton deviceButton(PIN_BUTTON); + +Device* devices[] = { + &deviceButton, +}; + +void hardwareSetup() {}; diff --git a/things/things.ino b/things/things.ino index c67bbc7..e72db51 100644 --- a/things/things.ino +++ b/things/things.ino @@ -5,6 +5,7 @@ //#include "HardwareWittyDhtIrRxTx.h" //#include "HardwareWittyBbq.h" //#include "HardwareH801wifi.h" +//#include "HardwareSonoff.h" const char* FWVERSION = "1.0.0";