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.

190 lines
5.9 KiB

Add VIA support to Noxary 220 and Update Noxary 280 for readability (#9348) * Update noxary 220 readme.md * Update Noxary 280 readme.md add heading and spelling * Update spelling of Noxary 280 keymap copyright * Update Noxary 280 config.h change product ID and product name, remove commented code * Change MCU name and disable Mousekey * Update Noxary 220 config.h Change vendor ID, Product ID, Product name and desc, remove commented code * Update 220.h change LAYOUT_ortho_6x4 to LAYOUT, change copyrght to Rozakiin * Change LED indicator function update copyright to Rozakiin * Add via keymap * Update Noxary 220 default keymap for readability and numpad codes * Update all Noxary 220 readme.md to conform to QMK templates * Update Noxary 280 readme.md to conform to QMK template * Disable console and command, and enable link time optimisation for VIA * Update Noxary 280 keymaps for better readability * Update keyboards/noxary/220/keymaps/default/keymap.c * Update keyboards/noxary/220/220.h * Update keyboards/noxary/220/keymaps/default/keymap.c * Update keyboards/noxary/220/keymaps/default/keymap.c * Update keyboards/noxary/220/keymaps/via/rules.mk * Update keyboards/noxary/280/keymaps/default/keymap.c * Update keyboards/noxary/280/keymaps/via/rules.mk * Update keyboards/noxary/220/rules.mk * Update keyboards/noxary/280/keymaps/via/keymap.c * Update keyboards/noxary/220/keymaps/default/keymap.c * Update keyboards/noxary/220/keymaps/default/keymap.c * Update keyboards/noxary/220/keymaps/via/keymap.c * Update keyboards/noxary/220/keymaps/via/keymap.c * Update keyboards/noxary/220/keymaps/via/keymap.c * Update keyboards/noxary/220/keymaps/via/keymap.c * Update keyboards/noxary/220/keymaps/via/keymap.c * Update keyboards/noxary/280/config.h * Update keyboards/noxary/220/rules.mk * Update keyboards/noxary/220/config.h * Update keyboards/noxary/280/readme.md Change layout links to ones with background removed
4 years ago
  1. /*
  2. Copyright 2019 MechMerlin
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #include "config_common.h"
  16. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0x4E58 //"NX"
  18. #define PRODUCT_ID 0x0AF1 //2801
  19. #define DEVICE_VER 0x0001
  20. #define MANUFACTURER Noxary
  21. #define PRODUCT 280
  22. /* key matrix size */
  23. #define MATRIX_ROWS 12
  24. #define MATRIX_COLS 9
  25. /*
  26. * Keyboard Matrix Assignments
  27. *
  28. * Change this to how you wired your keyboard
  29. * COLS: AVR pins used for columns, left to right
  30. * ROWS: AVR pins used for rows, top to bottom
  31. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  32. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  33. *
  34. */
  35. #define MATRIX_ROW_PINS { F0, E6, D6, D4, F6, F5, F4, F1, B2, D3, D2, D1}
  36. #define MATRIX_COL_PINS { F7, C7, C6, B6, B5, B4, D7, B0, B3}
  37. #define UNUSED_PINS
  38. /* COL2ROW, ROW2COL*/
  39. #define DIODE_DIRECTION COL2ROW
  40. /*
  41. * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
  42. */
  43. #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
  44. #define BACKLIGHT_PIN B7
  45. #define BACKLIGHT_BREATHING
  46. #define BACKLIGHT_LEVELS 3
  47. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  48. #define DEBOUNCE 5
  49. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  50. //#define MATRIX_HAS_GHOST
  51. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  52. #define LOCKING_SUPPORT_ENABLE
  53. /* Locking resynchronize hack */
  54. #define LOCKING_RESYNC_ENABLE
  55. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  56. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  57. */
  58. // #define GRAVE_ESC_CTRL_OVERRIDE
  59. /*
  60. * Force NKRO
  61. *
  62. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  63. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  64. * makefile for this to work.)
  65. *
  66. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  67. * until the next keyboard reset.
  68. *
  69. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  70. * fully operational during normal computer usage.
  71. *
  72. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  73. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  74. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  75. * power-up.
  76. *
  77. */
  78. //#define FORCE_NKRO
  79. /*
  80. * Magic Key Options
  81. *
  82. * Magic keys are hotkey commands that allow control over firmware functions of
  83. * the keyboard. They are best used in combination with the HID Listen program,
  84. * found here: https://www.pjrc.com/teensy/hid_listen.html
  85. *
  86. * The options below allow the magic key functionality to be changed. This is
  87. * useful if your keyboard/keypad is missing keys and you want magic key support.
  88. *
  89. */
  90. /* key combination for magic key command */
  91. /* defined by default; to change, uncomment and set to the combination you want */
  92. // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
  93. /* control how magic key switches layers */
  94. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  95. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  96. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  97. /* override magic key keymap */
  98. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
  99. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
  100. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
  101. //#define MAGIC_KEY_HELP H
  102. //#define MAGIC_KEY_HELP_ALT SLASH
  103. //#define MAGIC_KEY_DEBUG D
  104. //#define MAGIC_KEY_DEBUG_MATRIX X
  105. //#define MAGIC_KEY_DEBUG_KBD K
  106. //#define MAGIC_KEY_DEBUG_MOUSE M
  107. //#define MAGIC_KEY_VERSION V
  108. //#define MAGIC_KEY_STATUS S
  109. //#define MAGIC_KEY_CONSOLE C
  110. //#define MAGIC_KEY_LAYER0 0
  111. //#define MAGIC_KEY_LAYER0_ALT GRAVE
  112. //#define MAGIC_KEY_LAYER1 1
  113. //#define MAGIC_KEY_LAYER2 2
  114. //#define MAGIC_KEY_LAYER3 3
  115. //#define MAGIC_KEY_LAYER4 4
  116. //#define MAGIC_KEY_LAYER5 5
  117. //#define MAGIC_KEY_LAYER6 6
  118. //#define MAGIC_KEY_LAYER7 7
  119. //#define MAGIC_KEY_LAYER8 8
  120. //#define MAGIC_KEY_LAYER9 9
  121. //#define MAGIC_KEY_BOOTLOADER B
  122. //#define MAGIC_KEY_BOOTLOADER_ALT ESC
  123. //#define MAGIC_KEY_LOCK CAPS
  124. //#define MAGIC_KEY_EEPROM E
  125. //#define MAGIC_KEY_EEPROM_CLEAR BSPACE
  126. //#define MAGIC_KEY_NKRO N
  127. //#define MAGIC_KEY_SLEEP_LED Z
  128. /*
  129. * Feature disable options
  130. * These options are also useful to firmware size reduction.
  131. */
  132. /* disable debug print */
  133. //#define NO_DEBUG
  134. /* disable print */
  135. //#define NO_PRINT
  136. /* disable action features */
  137. //#define NO_ACTION_LAYER
  138. //#define NO_ACTION_TAPPING
  139. //#define NO_ACTION_ONESHOT
  140. //#define NO_ACTION_MACRO
  141. //#define NO_ACTION_FUNCTION
  142. /*
  143. * MIDI options
  144. */
  145. /* enable basic MIDI features:
  146. - MIDI notes can be sent when in Music mode is on
  147. */
  148. //#define MIDI_BASIC
  149. /* enable advanced MIDI features:
  150. - MIDI notes can be added to the keymap
  151. - Octave shift and transpose
  152. - Virtual sustain, portamento, and modulation wheel
  153. - etc.
  154. */
  155. //#define MIDI_ADVANCED
  156. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  157. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  158. /* Bootmagic Lite key configuration */
  159. // #define BOOTMAGIC_LITE_ROW 0
  160. // #define BOOTMAGIC_LITE_COLUMN 0