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: sixtube_lm/sixtube_lm.ino
+18-13Lines changed: 18 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ Some are skipped when they wouldn't apply to a given clock's hardware config, se
134
134
39 Alarm beeper pitch - skipped when no piezo
135
135
40 Timer beeper pitch - skipped when no piezo
136
136
41 Strike beeper pitch - skipped when no piezo
137
-
42 Alarm signal - skipped when no relay (start=0) or no piezo (start=0)
137
+
42 Alarm signal, 0=beeper, 1=relay - skipped when no relay (start=0) or no piezo (start=0)
138
138
43 Timer signal - skipped when no relay (start=0) or no piezo (start=1)
139
139
44 Strike signal - skipped when no pulse relay (start=0) or no piezo (start=1)
140
140
*/
@@ -175,7 +175,6 @@ word signalRemain = 0; //alarm/timer signal timeout counter, seconds
175
175
word snoozeRemain = 0; //snooze timeout counter, seconds
176
176
word timerInitial = 0; //timer original setting, seconds - up to 18 hours (64,800 seconds - fits just inside a word)
177
177
word timerRemain = 0; //timer actual counter
178
-
word signalPitch = 440; //current signal pitch - set by what started the signal going
179
178
unsignedlong signalPulseStopTime = 0; //to stop beeps after a time
180
179
word unoffRemain = 0; //un-off (briefly turn on tubes during full night-off or day-off) timeout counter, seconds
181
180
byte displayNext[6] = {15,15,15,15,15,15}; //Internal representation of display. Blank to start. Change this to change tubes.
@@ -1157,7 +1156,6 @@ void signalStart(byte sigFn, byte sigDur, word pulseDur){ //make some noise! or
1157
1156
//If doing a single beep, pulseDur is the number of ms it should last, or 0 for signal source's chosen output's pulse length (which will be used anyway if pulsed relay)
1158
1157
signalStop();
1159
1158
signalSource = sigFn;
1160
-
signalPitch = getHz(readEEPROM((sigFn==fnIsTime?41:(sigFn==fnIsTimer?40:39)),false)); //use pitch for time, timer, or (default) alarm
@@ -1179,21 +1177,28 @@ void signalStop(){ //stop current signal and clear out signal timer if applicabl
1179
1177
}
1180
1178
//beep start and stop should only be called by signalStart/signalStop and checkRTC
1181
1179
voidsignalPulseStart(word pulseDur){
1182
-
//Stopping point: This function needs to know which pin to pulse, per the settings of the current signaling thing. That comes from eeprom so it needs to go into a var like signalPitch, or convert both to read from eeprom every time per signalSource.
0 commit comments