enable reset button on witty module

This commit is contained in:
Ronald Schaten 2016-03-21 09:25:13 +01:00
parent 130d2a7f77
commit 602077a726

View File

@ -13,13 +13,19 @@ extern "C" {
#include <DHT.h> // https://github.com/adafruit/DHT-sensor-library #include <DHT.h> // https://github.com/adafruit/DHT-sensor-library
#include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson #include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson
#define HARDWARE_WITTY
// configure DHT sensor // configure DHT sensor
#define DHTPIN D4 // what pin the DHT is connected to #define DHTPIN D4 // what pin the DHT is connected to
//#define DHTTYPE DHT11 // DHT11 //#define DHTTYPE DHT11 // DHT11
//#define DHTTYPE DHT21 // DHT21 (AM2301) //#define DHTTYPE DHT21 // DHT21 (AM2301)
#define DHTTYPE DHT22 // DHT22 (AM2302) #define DHTTYPE DHT22 // DHT22 (AM2302)
#define CONFIGPIN D3 // config-button is connected to this pin #ifdef HARDWARE_WITTY
#define CONFIGPIN D2 // config-button is connected to this pin
#else
#define CONFIGPIN D3 // config-button is connected to this pin
#endif
#define RGBRED D8 // red led channel on witty module #define RGBRED D8 // red led channel on witty module
#define RGBGRN D6 // green led channel on witty module #define RGBGRN D6 // green led channel on witty module