Skip to content

Commit

Permalink
Merge pull request #25 from vi7/change_schedule
Browse files Browse the repository at this point in the history
Change schedule
  • Loading branch information
vi7 authored Nov 25, 2021
2 parents 53955b9 + 4e45864 commit 4d2ee12
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 8 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@
#include "secrets.h"

/*
* !!! DO NOT USE pins D1,D2
* Device pins and wire colors
*
* !!! DO NOT USE pins D1(5),D2(4)
* because they are reserved
* for I2C bus SCL,SDA !!!
*/
#define FANRELAYPIN D0
#define LAMPRELAYPIN D3
#define HUMRELAYPIN D4
#define PUMPPIN D5
#define LDRPIN A0
#define FANRELAYPIN D0 // white
#define LAMPRELAYPIN D3 // white/light-brown
#define HUMRELAYPIN D4 // violet
#define PUMPPIN D5 // blue
#define LDRPIN A0 // dark-brown/blue

/* monitoring constants */
const uint8_t MAX_TEMP = 40;
Expand Down
12 changes: 6 additions & 6 deletions src/schedules.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const schedule LAMP_ON_SCHEDULE = {
0, // sec
0, // min
18, // hour
22, // hour
8, // day
3, // month
2020, // year
Expand All @@ -23,7 +23,7 @@ const schedule LAMP_ON_SCHEDULE = {
const schedule LAMP_OFF_SCHEDULE = {
0, // sec
0, // min
12, // hour
18, // hour
8, // day
3, // month
2020, // year
Expand All @@ -34,7 +34,7 @@ const schedule LAMP_OFF_SCHEDULE = {
const schedule FAN_ON_SCHEDULE = {
0, // sec
1, // min
18, // hour
22, // hour
8, // day
3, // month
2020, // year
Expand All @@ -44,7 +44,7 @@ const schedule FAN_ON_SCHEDULE = {
const schedule FAN_OFF_SCHEDULE = {
0, // sec
1, // min
12, // hour
18, // hour
8, // day
3, // month
2020, // year
Expand All @@ -55,7 +55,7 @@ const schedule FAN_OFF_SCHEDULE = {
const schedule HUM_ON_SCHEDULE = {
0, // sec
2, // min
18, // hour
22, // hour
8, // day
3, // month
2020, // year
Expand All @@ -65,7 +65,7 @@ const schedule HUM_ON_SCHEDULE = {
const schedule HUM_OFF_SCHEDULE = {
0, // sec
2, // min
12, // hour
18, // hour
8, // day
3, // month
2020, // year
Expand Down

0 comments on commit 4d2ee12

Please sign in to comment.