split hardware configuration to modules

This commit is contained in:
2016-05-18 08:53:58 +02:00
parent 7a79f1ca12
commit 9cffc34073
3 changed files with 56 additions and 43 deletions

25
things/HardwareH801wifi.h Normal file
View File

@@ -0,0 +1,25 @@
/*
* 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"
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,
};