Skip to content

Commit 2805586

Browse files
committed
Retire mainSelFn, mainAdjFn, altSelFn. Their functions are baked-in now.
1 parent f9037e6 commit 2805586

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

sixtube_lm/configs/v8b-6tube-relayswitch-pwm-top.h

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,15 @@ const byte fnsEnabled[] = {fnIsTime, fnIsDate, fnIsAlarm, fnIsTimer, fnIsDayCoun
2525
// A6-A7 are analog-only pins that aren't quite as responsive and require a physical pullup resistor (1K to +5V), and can't be used with rotary encoders because they don't support pin change interrupts.
2626

2727
// What input is associated with each control?
28-
const byte mainSel = A7; //main select button - must be equipped
29-
const byte mainAdjUp = A0; //main up/down buttons or rotary encoder - must be equipped
28+
const byte mainSel = A7;
29+
const byte mainAdjUp = A0;
3030
const byte mainAdjDn = A1;
31-
const byte altSel = A6; //alt select button - if unequipped, set to 0
31+
const byte altSel = A6; //if not equipped, set to 0
3232

3333
// What type of adj controls are equipped?
3434
// 1 = momentary buttons. 2 = quadrature rotary encoder.
3535
const byte mainAdjType = 1;
3636

37-
// In normal running mode, what do the controls do?
38-
// -1 = nothing/switch, -2 = cycle through functions, fn in fnsEnabled[] = go to that function
39-
// If using soft alarm/power switch per below, the control(s) set to -1 will do the switching.
40-
const char mainSelFn = -2;
41-
const char mainAdjFn = -1;
42-
const byte altSelFn = fnIsAlarm; //go straight to alarm
43-
4437
//What are the signal pin(s) connected to?
4538
const char piezoPin = 10;
4639
const char relayPin = A3;

0 commit comments

Comments
 (0)