new device: pushbutton

This commit is contained in:
2016-04-24 12:17:15 +02:00
parent 99ce953de3
commit d9d2ccd9bf
3 changed files with 48 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#include "DeviceDht.h"
#include "DeviceIrRx.h"
#include "DeviceIrTx.h"
#include "DeviceButton.h"
const byte PIN_LED_RED = D8;
const byte PIN_LED_GREEN = D6;
@ -25,12 +26,16 @@ DeviceIrRx deviceIrRx(PIN_IRRX, PIN_POWER);
const byte PIN_IRTX = D2;
DeviceIrTx deviceIrTx(PIN_IRTX);
const byte PIN_BUTTON = D2;
DeviceButton deviceButton(PIN_BUTTON);
Device* devices[] = {
&deviceLed,
&deviceLdr,
&deviceDht,
&deviceIrRx,
&deviceIrTx,
&deviceButton,
};
void setupHandler() {