You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ _Note: Many variations are possible, depending on your clock's hardware; but thi
57
57
| 22. Last day of work week | 0–6 (Sunday–Saturday) |
58
58
| 23. Work starts at | Time of day. |
59
59
| 24. Work ends at | Time of day. |
60
+
| 25. LED behavior | 0 = always off<br/>1 = always on<br/>2 = on, but follow day-off and night-off if enabled<br/>3 = off, but on when alarm/timer sounds</br>4 = off, but on with switched relay (if equipped – great for radios!)<br/>(Clocks with LED control only, UNDB v5.x+) |
60
61
61
62
To reset the options menu settings to "factory" defaults, hold **Select** while connecting the clock to power.
Copy file name to clipboardExpand all lines: sixtube_lm/sixtube_lm.ino
+57-27Lines changed: 57 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -67,14 +67,21 @@ const word switchDur = 7200; //sec - when alarm triggers switched relay, it's sw
67
67
const word piezoPulse = 500; //ms - used with piezo via tone()
68
68
const word relayPulse = 200; //ms - used with pulsed relay
69
69
70
+
//Soft power switches
70
71
const byte enableSoftAlarmSwitch = 1;
71
72
// 1 = yes. Alarm can be switched on and off when clock is displaying the alarm time (fnIsAlarm).
72
73
// 0 = no. Alarm will be permanently on. Use with switched relay if the appliance has its own switch on this relay circuit.
73
74
const byte enableSoftPowerSwitch = 1; //works with switched relay only
74
75
// 1 = yes. Relay can be switched on and off directly when clock is displaying time of day (fnIsTime). This is useful if connecting an appliance (e.g. radio) that doesn't have its own switch, or if replacing the clock unit in a clock radio where the clock does all the switching (e.g. Telechron).
75
76
// 0 = no. Use if the connected appliance has its own power switch (independent of this relay circuit) or does not need to be manually switched.
76
77
77
-
const byte unoffDur = 10; //when display is dim/off, a press will light the tubes for this many seconds
78
+
//LED circuit control
79
+
constchar ledPin = -1;
80
+
// If running a v5.0 board with constantly powered LEDs, leave this set to -1 (disabled).
81
+
// If running a v5.x board, LED control pin is X. An extra menu option will appear to let end user control LEDs.
82
+
83
+
//When display is dim/off, a press will light the tubes for how long?
84
+
const byte unoffDur = 10; //sec
78
85
79
86
// How long (in ms) are the button hold durations?
80
87
const word btnShortHold = 1000; //for setting the displayed feataure
@@ -118,7 +125,7 @@ Some are skipped when they wouldn't apply to a given clock's hardware config, se
118
125
23 Alarm days
119
126
24 Alarm snooze
120
127
25 Timer interval mode - skipped when no piezo and relay is switch (start=0)
121
-
( 26 is available )
128
+
26 LED circuit behavior
122
129
27 Night-off
123
130
28-29 Night start, mins
124
131
30-31 Night end, mins
@@ -138,11 +145,11 @@ Some are skipped when they wouldn't apply to a given clock's hardware config, se
138
145
//Options menu options' EEPROM locations and default/min/max values.
139
146
//Options' numbers may be changed by reordering these arrays (and changing readme accordingly).
140
147
//Although these arrays are 0-index, the option number displayed (and listed in readme) is 1-index. (search for "fn-fnOpts+1")
0 commit comments