diff options
Diffstat (limited to 'arduino_sketch')
-rw-r--r-- | arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde b/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde index 794b314..090f14e 100644 --- a/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde +++ b/arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde @@ -23,9 +23,9 @@ // minutes of "dawn" before alarm #define TIN 30 // "dawn" + "daylight" -#define TDAY 45 +#define TDAY 40 // "dawn" + "daylight" + blue blinding light -#define TOUT 75 +#define TOUT 60 // number of available alarms; max 10 for storage in the DS1307 ram #define NALARMS 4 @@ -67,7 +67,7 @@ void setup () { attachInterrupt(IINT, button_pressed, HIGH); - digitalWrite(RPIN,HIGH); + analogWrite(RPIN,128); digitalWrite(YPIN,LOW); digitalWrite(BPIN,LOW); @@ -413,7 +413,7 @@ void set_leds() { st = 0; a = -1; save_status(); - analogWrite(RPIN,255); + analogWrite(RPIN,128); analogWrite(YPIN,0); analogWrite(BPIN,0); } |