2016-05-18 08:53:58 +02:00
|
|
|
/*
|
|
|
|
* H801 WiFi
|
|
|
|
* off-the-shelf RGBWW led wifi controller
|
|
|
|
*
|
|
|
|
* Settings in IDE:
|
|
|
|
* - Board: "Generic ESP8266 Module"
|
|
|
|
* - Flash Size: "1M (64k SPIFFS)"
|
|
|
|
* - Upload Speed: "1152200"
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "DeviceLed.h"
|
|
|
|
#include "DeviceRgb.h"
|
|
|
|
|
2016-05-18 09:08:35 +02:00
|
|
|
const char* FWNAME = "things@H801wifi";
|
2016-05-18 09:04:10 +02:00
|
|
|
|
2016-05-18 08:53:58 +02:00
|
|
|
const byte PIN_LED = 14;
|
|
|
|
DeviceLed deviceLed(PIN_LED);
|
|
|
|
|
|
|
|
const byte PIN_RGB_RED = 15;
|
|
|
|
const byte PIN_RGB_GREEN = 13;
|
|
|
|
const byte PIN_RGB_BLUE = 12;
|
|
|
|
DeviceRgb deviceRgb(PIN_RGB_RED, PIN_RGB_GREEN, PIN_RGB_BLUE);
|
|
|
|
|
|
|
|
Device* devices[] = {
|
|
|
|
&deviceLed,
|
|
|
|
&deviceRgb,
|
|
|
|
};
|