hal/arduino/HalMultiSensor/HalConfiguration.h

32 lines
1 KiB
C
Raw Normal View History

#ifndef HALCONFIGURATION_H
#define HALCONFIGURATION_H
2016-06-10 21:50:59 +02:00
//#define ENABLE_DEBUG // comment out to disable debug
2016-07-08 22:14:23 +02:00
#define TIMER_MILLISECOND 60000 // poling in minutes
#define INDICATOR_PIN 13 // diode
2018-12-03 22:28:05 +01:00
#define TX_PIN 11
#define DEVICE_BASE_ID 99
2016-06-10 19:33:26 +02:00
// POWER CONSUMPTION SENSOR
2016-06-10 21:50:59 +02:00
//#define POWERCON_ENABLED // comment out to disable sensor
#define POWERCON_SENSOR SensorPhotocell()
2018-12-03 22:28:05 +01:00
#define POWERCON_PROTOCOL ProtocolOregon(TX_PIN, DEVICE_BASE_ID + 0)
#define POWER_TIMER_MULTIPLIER 1
// TEMPERATURE SENSOR
2016-06-10 19:33:26 +02:00
#define TEMPERATURE_ENABLED // comment out to disable sensor
2018-12-03 22:28:05 +01:00
#define TEMPERATURE_SENSOR SensorDHT(DHT11, 10)
#define TEMPERATURE_PROTOCOL ProtocolOregon(TX_PIN, DEVICE_BASE_ID + 1)
2016-06-10 19:33:26 +02:00
#define TEMPERATURE_TIMER_MULTIPLIER 10
// LIGHT SENSOR
//#define LIGHT_ENABLED // comment out to disable sensor
2016-07-08 22:14:23 +02:00
#define LIGHT_SENSOR SensorBH1750()
2018-12-03 22:28:05 +01:00
#define LIGHT_PROTOCOL ProtocolOregon(TX_PIN, DEVICE_BASE_ID + 2)
2016-06-10 19:33:26 +02:00
#define LIGHT_TIMER_MULTIPLIER 10
2016-02-24 21:51:16 +01:00
#endif // HALCONFIGURATION_H