144
144
static uint8_t modes[TOTAL_MODES] = { // high enough to handle all
145
145
MODE_MOON, MODE_LOW, MODE_MED, MODE_HIGH, MODE_HIGHER, // regular solid modes
146
146
0, 1, 2, // dual beacon modes (grab brightness from modes[modes[mode_idx]]
148
147
99, 41, 15, // constant-speed strobe modes (10 Hz, 24 Hz, 60 Hz)
149
148
MODE_HIGHER, MODE_HIGHER, // variable-speed strobe modes
151
151
volatile uint8_t mode_idx = 0;
152
152
// 1 or -1. Do we increase or decrease the idx when moving up to a higher mode?