logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

bbs.c (537B)


  1. // Copyright 2022 Kyle McCreery (@kylemccreery)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "quantum.h"
  4. #ifdef DIP_SWITCH_ENABLE
  5. bool dip_switch_update_kb(uint8_t index, bool active) {
  6. if (!dip_switch_update_user(index, active)) { return false; }
  7. switch (index) {
  8. case 0:
  9. if(active) { tap_code(KC_CAPS_LOCK); }
  10. break;
  11. break;
  12. }
  13. return true;
  14. }
  15. #endif
  16. void eeconfig_init_kb(void) {
  17. steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
  18. eeconfig_init_user();
  19. }