first version, just reacting to the button

This commit is contained in:
Ronald Schaten 2016-12-13 23:47:54 +01:00
parent b8d4e9fef8
commit 7fd1d56eae
2 changed files with 23 additions and 0 deletions

22
things/HardwareSonoff.h Normal file
View File

@ -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() {};

View File

@ -5,6 +5,7 @@
//#include "HardwareWittyDhtIrRxTx.h"
//#include "HardwareWittyBbq.h"
//#include "HardwareH801wifi.h"
//#include "HardwareSonoff.h"
const char* FWVERSION = "1.0.0";