aboutsummaryrefslogtreecommitdiff
path: root/arduino_sketch
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2012-01-24 11:36:00 +0100
committerElena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>2012-01-24 11:36:00 +0100
commit2cae6b69818b39f12eb426e71c3e74d51afa2dc5 (patch)
tree9fbd08afe5f7b0cd38c7f7630e3df5e3af8f9db5 /arduino_sketch
parent5d2de0923d3b33af2516766d51bea3e021407c11 (diff)
Arduino sketch: tune settings
Diffstat (limited to 'arduino_sketch')
-rw-r--r--arduino_sketch/fuzzy_alarm_clock_ds1307/fuzzy_alarm_clock_ds1307.pde8
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);
}