remove preprocessor stuff

This commit is contained in:
Ronald Schaten 2016-04-22 22:42:18 +02:00
parent d79d445a3e
commit 0294f2f5c4

View File

@ -6,28 +6,23 @@
#include "DeviceIrRx.h"
#include "DeviceIrTx.h"
// HAS_LED
#define PIN_LED_RED D8
#define PIN_LED_GREEN D6
#define PIN_LED_BLUE D7
const byte PIN_LED_RED = D8;
const byte PIN_LED_GREEN = D6;
const byte PIN_LED_BLUE = D7;
DeviceLed deviceLed(PIN_LED_RED, PIN_LED_GREEN, PIN_LED_BLUE);
// HAS_LDR
#define PIN_LDR A0
const byte PIN_LDR = A0;
DeviceLdr deviceLdr(PIN_LDR);
// HAS_DHT
#define PIN_DHT D5
#define TYPE_DHT DHT22
const byte PIN_DHT = D5;
const byte TYPE_DHT = DHT22;
DeviceDht deviceDht(PIN_DHT, TYPE_DHT);
// HAS_IRRX
#define PIN_IRRX D1
#define PIN_POWER D0
const byte PIN_IRRX = D1;
const byte PIN_POWER = D0;
DeviceIrRx deviceIrRx(PIN_IRRX, PIN_POWER);
// HAS_IRTX
#define PIN_IRTX D2
const byte PIN_IRTX = D2;
DeviceIrTx deviceIrTx(PIN_IRTX);
Device* devices[] = {