first version, just reacting to the button
This commit is contained in:
parent
b8d4e9fef8
commit
7fd1d56eae
22
things/HardwareSonoff.h
Normal file
22
things/HardwareSonoff.h
Normal 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() {};
|
@ -5,6 +5,7 @@
|
||||
//#include "HardwareWittyDhtIrRxTx.h"
|
||||
//#include "HardwareWittyBbq.h"
|
||||
//#include "HardwareH801wifi.h"
|
||||
//#include "HardwareSonoff.h"
|
||||
|
||||
const char* FWVERSION = "1.0.0";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user