switch around some pins

This commit is contained in:
Ronald Schaten 2016-04-20 00:29:07 +02:00
parent f12580cd8e
commit e63aedccf6

View File

@ -16,16 +16,16 @@ DeviceLed deviceLed(PIN_LED_RED, PIN_LED_GREEN, PIN_LED_BLUE);
DeviceLdr deviceLdr(PIN_LDR);
// HAS_DHT
#define PIN_DHT D4
#define PIN_DHT D5
#define TYPE_DHT DHT22
DeviceDht deviceDht(PIN_DHT, TYPE_DHT);
// HAS_IRRX
#define PIN_IRRX D1
#define PIN_POWER D2
#define PIN_POWER D0
DeviceIrRx deviceIrRx(PIN_IRRX, PIN_POWER);
Device* devices[] = { &deviceLed, &deviceLdr, &deviceIrRx };
Device* devices[] = { &deviceLed, &deviceLdr, &deviceDht, &deviceIrRx };
void setupHandler() {
for (int i = 0; i < sizeof(devices) / sizeof(*devices); i++) {