
aquarium light controller wannabe
Dependencies: DS3231 FastPWM Menu QEI TextLCD _24LCXXX mbed
Revision 2:c50dfa998b4c, committed 2015-11-09
- Comitter:
- rakware
- Date:
- Mon Nov 09 17:53:25 2015 +0000
- Parent:
- 1:b0e2b4fdeb12
- Commit message:
- shubi
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b0e2b4fdeb12 -r c50dfa998b4c main.cpp --- a/main.cpp Sun Mar 22 17:28:46 2015 +0000 +++ b/main.cpp Mon Nov 09 17:53:25 2015 +0000 @@ -57,9 +57,9 @@ uint8_t Pwm_Min_Max_Array[sizeof(Pwm_Array)/sizeof(FastPWM)][2] = { - {0, 1}, - {0, 5}, - {0, 5}, + {0, 1}, //violet + {1, 35}, //royal blue + {0, 40}, //20000k {0, 35}, {0, 35}, {0, 35}, @@ -76,9 +76,9 @@ int pwm_idx = 0; -uint8_t SunRiseSet[2][2] = {{11,30},{21,30}}; +uint8_t SunRiseSet[2][2] = {{8,0},{20,30}}; -uint8_t ramptime = 60; //in minutes +uint8_t ramptime = 30; //in minutes bool refresh_display = true; @@ -455,7 +455,7 @@ //initial state = pwm_min for(uint8_t index = 0; index < sizeof(Pwm_Array)/sizeof(FastPWM); index++) { - Pwm_Array[index].period_ms(2); + Pwm_Array[index].period_ms(2); //500Hz Pwm_Array[index] = Pwm_Min_Max_Array[index][0]/100.0; }