Added description for flows and turn on and off option
This commit is contained in:
parent
89d4291168
commit
60e5131850
7 changed files with 99 additions and 19 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#define TIMER_MILLISECOND 60000 // poling in minutes
|
||||
#define INDICATOR_PIN 13 // diode
|
||||
#define DEVICE_BASE_ID 20
|
||||
#define DEVICE_BASE_ID 98
|
||||
|
||||
// POWER CONSUMPTION SENSOR
|
||||
//#define POWERCON_ENABLED // comment out to disable sensor
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
#define TEMPERATURE_TIMER_MULTIPLIER 10
|
||||
|
||||
// LIGHT SENSOR
|
||||
#define LIGHT_ENABLED // comment out to disable sensor
|
||||
//#define LIGHT_ENABLED // comment out to disable sensor
|
||||
#define LIGHT_SENSOR SensorBH1750()
|
||||
#define LIGHT_PROTOCOL ProtocolOregon(11, DEVICE_BASE_ID + 3)
|
||||
#define LIGHT_TIMER_MULTIPLIER 10
|
||||
|
|
|
|||
|
|
@ -36,13 +36,14 @@ void Interrupt::sleep()
|
|||
sleep_enable(); // enables the sleep bit in the mcucr register
|
||||
// so sleep is possible. just a safety pin
|
||||
|
||||
power_adc_disable();
|
||||
//power_adc_disable();
|
||||
//power_spi_disable();
|
||||
//power_usart0_disable();
|
||||
//power_timer0_disable();
|
||||
//power_timer1_disable();
|
||||
//power_timer2_disable();
|
||||
//power_twi_disable();
|
||||
//power_all_disable()
|
||||
//power_all_disable();
|
||||
|
||||
while( ! Interrupt::wakeUpNow)
|
||||
{
|
||||
|
|
@ -52,7 +53,7 @@ void Interrupt::sleep()
|
|||
sleep_disable(); // first thing after waking from sleep:
|
||||
// disable sleep...
|
||||
|
||||
power_adc_enable();
|
||||
//power_adc_enable();
|
||||
//power_spi_enable();
|
||||
//power_usart0_enable();
|
||||
//power_timer0_enable();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue