You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.4 KiB

  1. /* Copyright 2018 Christon DeWan (xton)
  2. * Copyright 2017 IslandMan93
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. //void promicro_bootloader_jmp(bool program);
  19. #include "quantum.h"
  20. #ifdef USE_I2C
  21. #include <stddef.h>
  22. #ifdef __AVR__
  23. #include <avr/io.h>
  24. #include <avr/interrupt.h>
  25. #endif
  26. #endif
  27. //void promicro_bootloader_jmp(bool program);
  28. #ifndef FLIP_HALF
  29. // Standard Keymap
  30. // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
  31. #define LAYOUT( \
  32. L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
  33. L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
  34. L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
  35. L30, L31, L32, L33, L34, R31, R32, R33, R34, R35 \
  36. ) \
  37. { \
  38. { L00, L01, L02, L03, L04, L05 }, \
  39. { L10, L11, L12, L13, L14, L15 }, \
  40. { L20, L21, L22, L23, L24, L25 }, \
  41. { L30, L31, L32, L33, L34, KC_NO }, \
  42. { R05, R04, R03, R02, R01, R00 }, \
  43. { R15, R14, R13, R12, R11, R10 }, \
  44. { R25, R24, R23, R22, R21, R20 }, \
  45. { R35, R34, R33, R32, R31, KC_NO } \
  46. }
  47. #else
  48. // Keymap with right side flipped
  49. // (TRRS jack on both halves are to the right)
  50. #define LAYOUT( \
  51. L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
  52. L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
  53. L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
  54. L30, L31, L32, L33, L34, R31, R32, R33, R34, R35 \
  55. ) \
  56. { \
  57. { L00, L01, L02, L03, L04, L05 }, \
  58. { L10, L11, L12, L13, L14, L15 }, \
  59. { L20, L21, L22, L23, L24, L25 }, \
  60. { L30, L31, L32, L33, L34, KC_NO }, \
  61. { R00, R01, R02, R03, R04, R05 }, \
  62. { R10, R11, R12, R13, R14, R15 }, \
  63. { R20, R21, R22, R23, R24, R25 }, \
  64. { KC_NO, R31, R32, R33, R34, R35 } \
  65. }
  66. #endif
  67. #define LAYOUT_ortho_4x12_2x2u LAYOUT