2022-07-13 23:26:13 -07:00
|
|
|
// Copyright 2022 Kyle McCreery (@kylemccreery)
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-04-11 20:42:51 -07:00
|
|
|
#include "quantum.h"
|
2022-07-13 23:26:13 -07:00
|
|
|
|
|
|
|
#ifdef DIP_SWITCH_ENABLE
|
|
|
|
bool dip_switch_update_kb(uint8_t index, bool active) {
|
|
|
|
if (!dip_switch_update_user(index, active)) { return false; }
|
|
|
|
switch (index) {
|
|
|
|
case 0:
|
2022-10-10 12:06:26 -07:00
|
|
|
if(active) { tap_code(KC_CAPS_LOCK); }
|
2022-07-13 23:26:13 -07:00
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2023-01-20 08:21:17 -08:00
|
|
|
void eeconfig_init_kb(void) {
|
2022-07-13 23:26:13 -07:00
|
|
|
steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
|
|
|
|
eeconfig_init_user();
|
|
|
|
}
|