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.

125 lines
3.9 KiB

[Keyboard] Latin47ble bluetooth keyboard (#11023) * Create rules.mk * Create glcdfonr.c * Create keymap.c * Create keymap.c * Create rules.mk * Add files via upload * Update readme.md * Update readme.md * Update readme.md * Update config.h * Update 10bleoledhub.h * Update 10bleoledhub.c * Update info.json * Update keymap.c * Update keymap.c * Rename glcdfonr.c to glcdfont.c * Update config.h * Update config.h * Update config.h * Update rules.mk * Update 10bleoledhub.c * Update 10bleoledhub.h * Update info.json * Update config.h * Update rules.mk * Update keymap.c * Update keymap.c * Update glcdfont.c * Update keyboards/10bleoledhub/rules.mk * Update keyboards/10bleoledhub/keymaps/via/keymap.c * Update keyboards/10bleoledhub/keymaps/default/keymap.c * Update keyboards/10bleoledhub/config.h * Update keyboards/10bleoledhub/config.h * Update keyboards/10bleoledhub/10bleoledhub.h * Create readme.md * Create rules.mk * Create latin47ble.h * Create latin47ble.c * Create info.json * Create config.h * Create keymap.c * Create rules.mk * Create keymap.c * Update keymap.c * Update keyboards/latin47ble/keymaps/default/keymap.c * Update keymap.c * Update keyboards/latin47ble/keymaps/via/keymap.c * Update keyboards/latin47ble/rules.mk * Update keyboards/latin47ble/rules.mk * Update keyboards/latin47ble/rules.mk * Update latin47ble.h * Update latin47ble.c * Update latin47ble.h * Update latin47ble.c * Update keymap.c * Update keymap.c * Update config.h * Update keyboards/latin47ble/config.h * Update keyboards/latin47ble/config.h * Update keyboards/latin47ble/config.h * Update keyboards/latin47ble/config.h * Update keyboards/latin47ble/keymaps/via/keymap.c * Update keyboards/latin47ble/rules.mk * Delete info.json * Update readme.md * Update keymap.c * Update keymap.c * Update keyboards/latin47ble/config.h * Update keyboards/latin47ble/config.h * Update keyboards/latin47ble/keymaps/default/keymap.c * Update keyboards/latin47ble/latin47ble.c * Update keyboards/latin47ble/latin47ble.h * Update keyboards/latin47ble/keymaps/via/keymap.c * Update keymap.c * Update keymap.c * Update latin47ble.h * Update keymap.c * Update keymap.c * Update keymap.c * Update keymap.c * Update keyboards/latin47ble/keymaps/default/keymap.c * Update keyboards/latin47ble/keymaps/default/keymap.c * Update keyboards/latin47ble/latin47ble.h * Update keyboards/latin47ble/keymaps/default/keymap.c * Update keyboards/latin47ble/keymaps/via/keymap.c * Update keyboards/latin47ble/rules.mk
3 years ago
  1. /* Copyright 2020 haierwangwei2005
  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. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0x6C63 // "lc" = latincompass
  20. #define PRODUCT_ID 0x6C62 // "lb" = latin47BLE
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER latincompass
  23. #define PRODUCT Latin47BLE
  24. /* key matrix size */
  25. #define MATRIX_ROWS 4
  26. #define MATRIX_COLS 12
  27. /*
  28. * Keyboard Matrix Assignments
  29. *
  30. * Change this to how you wired your keyboard
  31. * COLS: AVR pins used for columns, left to right
  32. * ROWS: AVR pins used for rows, top to bottom
  33. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  34. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  35. *
  36. */
  37. #define MATRIX_ROW_PINS { D0, D1, D2, D3 }
  38. #define MATRIX_COL_PINS { D6, D7, B5, B6 ,C6, C7, F7, F6, F5, F4, F1, F0 }
  39. #define UNUSED_PINS
  40. /* COL2ROW or ROW2COL */
  41. #define DIODE_DIRECTION COL2ROW
  42. #define RGB_DI_PIN B7
  43. #ifdef RGB_DI_PIN
  44. #define RGBLED_NUM 3
  45. #define RGBLIGHT_HUE_STEP 8
  46. #define RGBLIGHT_SAT_STEP 8
  47. #define RGBLIGHT_VAL_STEP 8
  48. // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  49. // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  50. // /*== all animations enable ==*/
  51. #define RGBLIGHT_ANIMATIONS
  52. // /*== or choose animations ==*/
  53. // #define RGBLIGHT_EFFECT_BREATHING
  54. // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  55. // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  56. // #define RGBLIGHT_EFFECT_SNAKE
  57. // #define RGBLIGHT_EFFECT_KNIGHT
  58. // #define RGBLIGHT_EFFECT_CHRISTMAS
  59. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  60. // #define RGBLIGHT_EFFECT_RGB_TEST
  61. // #define RGBLIGHT_EFFECT_ALTERNATING
  62. #endif
  63. #define TAPPING_TERM 250
  64. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  65. #define DEBOUNCE 5
  66. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  67. //#define MATRIX_HAS_GHOST
  68. /* number of backlight levels */
  69. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  70. #define LOCKING_SUPPORT_ENABLE
  71. /* Locking resynchronize hack */
  72. #define LOCKING_RESYNC_ENABLE
  73. /*
  74. * Force NKRO
  75. *
  76. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  77. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  78. * makefile for this to work.)
  79. *
  80. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  81. * until the next keyboard reset.
  82. *
  83. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  84. * fully operational during normal computer usage.
  85. *
  86. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  87. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  88. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  89. * power-up.
  90. *
  91. */
  92. //#define FORCE_NKRO
  93. /*
  94. * Feature disable options
  95. * These options are also useful to firmware size reduction.
  96. */
  97. /* disable debug print */
  98. //#define NO_DEBUG
  99. /* disable print */
  100. //#define NO_PRINT
  101. /* disable action features */
  102. //#define NO_ACTION_LAYER
  103. //#define NO_ACTION_TAPPING
  104. //#define NO_ACTION_ONESHOT
  105. //#define NO_ACTION_MACRO
  106. //#define NO_ACTION_FUNCTION
  107. #define VIA_HAS_BROKEN_KEYCODES