logo

qmk_firmware

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

keymap.c (1768B)


  1. /* Copyright 2019 Danny Nguyen <danny@keeb.io>
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include QMK_KEYBOARD_H
  17. // Enable test mode, which sets the keys to letters A-I.
  18. //#define TESTMODE
  19. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  20. #ifndef TESTMODE
  21. // MEH - hold down ctrl, alt, shift, and press key
  22. [0] = LAYOUT(
  23. MEH(KC_1), MEH(KC_2), MEH(KC_3),
  24. MEH(KC_4), MEH(KC_5), MEH(KC_6),
  25. MEH(KC_7), MEH(KC_8), LT(1, MEH(KC_9))
  26. ),
  27. #else
  28. [0] = LAYOUT(
  29. KC_A, KC_B, KC_C,
  30. KC_D, KC_E, KC_F,
  31. KC_G, KC_H, KC_I
  32. ),
  33. #endif
  34. /*
  35. * ------------------------------------------------------------------------
  36. * | | Automatic BLE output detection | Reset |
  37. * | Backlight Step | Use USB port for output | |
  38. * | Backlight Tgl | Use Bluetooth for output | (currently pressed) |
  39. * ------------------------------------------------------------------------
  40. */
  41. [1] = LAYOUT(
  42. _______, OU_AUTO, QK_BOOT,
  43. BL_STEP, OU_USB, _______,
  44. BL_TOGG, OU_BT, _______
  45. )
  46. };