From 2cae6b69818b39f12eb426e71c3e74d51afa2dc5 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 24 Jan 2012 11:36:00 +0100 Subject: Arduino sketch: tune settings --- .../fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'arduino_sketch/fuzzy_alarm_clock_ds1307') 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); } -- cgit v1.2.3