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