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