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
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ _Note: Many variations are possible, depending on your clock's hardware; but thi
22
22
|**Alarm**|`_7 00 1_`| Shows alarm time (always in 24hr format) and on/off status on 5th tube (1=on, 0=off) and by display brightness (bright=on, dim=off). Use **Adjust** to switch on/off. Hold **Select** to set time (same way as **Time**). When alarm sounds, press **Select** to snooze, or hold for 1sec (followed by a short beep) to silence the alarm for the day. Options menu lets you restrict the alarm to your workweek or weekend only. In a power outage, the alarm will remain set, but it will not sound if power is disconnected at alarm time. |
23
23
|**Timer**|`__ __ _0`| A countdown timer, in hours, minutes, and seconds; or `0` when stopped. Can be set to the minute, up to 18 hours. Begins running as soon as you set it, and will continue to run in the background if you change to a different function. To cancel while running, hold **Select**. When timer runs out, press **Select** to silence. If power is lost, the timer will reset to `0`. Can be configured to work as an interval timer in the options menu (10), or as an appliance timer instead ([relay in switched mode](#hardware-configuration)). |
24
24
|**Day counter**|`_1 23 __`| Shows the number of days until/since a date you specify. Set the same way as **Date.**|
25
-
|**Temperature**|`__ 38 25`|(Disabled by default.) Shows the temperature of the onboard DS3231 chip (e.g. 38.25°C – I think). May not be very useful as it tends to read higher than ambient temperature and its tolerance is low. |
25
+
|**Temperature**|`__ 38 25`| Shows the temperature of the onboard DS3231 chip (e.g. 38.25°C – I think). May not be very useful as it tends to read higher than ambient temperature and its tolerance is low. Negative temperatures indicated with leading zeroes. |
26
26
|**Tube tester**|`88 88 88`| (Disabled by default.) Cycles through all the digits on all the tubes. |
27
27
28
28
### Options Menu
@@ -58,6 +58,7 @@ _Note: Many variations are possible, depending on your clock's hardware; but thi
58
58
| 23. Work starts at | Time of day. |
59
59
| 24. Work ends at | Time of day. |
60
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+) |
61
+
| 26. Temperature format | 0 = Celsius<br/>1 = Fahrenheit<br/>(Clocks with temperature function enabled only) |
61
62
62
63
To reset the options menu settings to "factory" defaults, hold **Select** while connecting the clock to power.
// To control which of these display persistently vs. switch back to Time after a few seconds, search "Temporary-display mode timeout"
28
29
29
30
// These are the RLB board connections to Arduino analog input pins.
30
31
// S1/PL13 = Reset
@@ -58,7 +59,7 @@ const char piezoPin = 10;
58
59
constchar relayPin = 127;
59
60
// If running a v5.0 board with only a piezo output, leave these set to 10 and -1 (disabled) respectively - unless removing the piezo to drive a relay instead, in which case, reverse them.
60
61
// If running a v5.x board with both piezo and relay, piezo is 10, relay is X. Extra menu options will appear to let end user decide which functions control which outputs.
61
-
//Relay toggles are written to the serial console for testing. To test without relay present, set relayPin to 127.
62
+
// To test without relay/load present, set relayPin to 127 to have relay commands written to console instead.
62
63
const byte relayMode = 0; //If relay is equipped, what does it do?
63
64
// 0 = switched mode: the relay will be switched to control an appliance like a radio or light fixture. If used with timer, it will switch on while timer is running (like a "sleep" function). If used with alarm, it will switch on when alarm trips; specify duration of this in switchDur.
64
65
// 1 = pulsed mode: the relay will be pulsed, like the beeper is, to control an intermittent signaling device like a solenoid or indicator lamp. Specify pulse duration in relayPulse.
@@ -76,9 +77,10 @@ const byte enableSoftPowerSwitch = 1; //works with switched relay only
76
77
// 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.
77
78
78
79
//LED circuit control
79
-
constchar ledPin = -1;
80
+
constchar ledPin = 127;
80
81
// If running a v5.0 board with constantly powered LEDs, leave this set to -1 (disabled).
81
82
// If running a v5.x board, LED control pin is X. An extra menu option will appear to let end user control LEDs.
83
+
// To test without LED circuit present, set relayPin to 127 to have LED switch commands written to console instead.
82
84
83
85
//When display is dim/off, a press will light the tubes for how long?
84
86
const byte unoffDur = 10; //sec
@@ -125,7 +127,7 @@ Some are skipped when they wouldn't apply to a given clock's hardware config, se
125
127
23 Alarm days
126
128
24 Alarm snooze
127
129
25 Timer interval mode - skipped when no piezo and relay is switch (start=0)
128
-
26 LED circuit behavior
130
+
26 LED circuit behavior - skipped when no led pin
129
131
27 Night-off
130
132
28-29 Night start, mins
131
133
30-31 Night end, mins
@@ -140,16 +142,17 @@ Some are skipped when they wouldn't apply to a given clock's hardware config, se
140
142
42 Alarm signal, 0=beeper, 1=relay - skipped when no relay (start=0) or no piezo (start=0)
141
143
43 Timer signal - skipped when no relay (start=0) or no piezo (start=1)
142
144
44 Strike signal - skipped when no pulse relay (start=0) or no piezo (start=1)
145
+
45 Temperature format - skipped when fnIsTemp is not in fnsEnabled
143
146
*/
144
147
145
148
//Options menu options' EEPROM locations and default/min/max values.
146
149
//Options' numbers may be changed by reordering these arrays (and changing readme accordingly).
147
150
//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