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.

111 lines
4.6 KiB

[Keymap] crkbd/kidbrazil adding layer dependent RGB & better idle timeout. (#7901) * Added KidBrazil custom keymap for CRKBD -Custom Font -Custom OLED output * Added missing readme * Oled Timeout Update for KidBrazil Keymap (#1) * Setup Oled timeout based on simple timer * Cleaned up comments and added timeout for LEDs * Fixed some small errors * Updated oled timout with matrix scan * Updated oled timout with matrix scan * Update withou eeprom * Update timer code * Use process user instead of keymap * Added ifdef to protect oledtimer * Updated with half timeout state for logo * Removed middle tier timer * Final cleanup of unused files * Updated code as per suggestions & requests * Second round of revisions * Updated keymap to better handle LED timeout - Added boolean to hold LED state - Added init function to set rgb to known state - Modified RGB_TOG to work with noeeprom commands * Finished adding the timeout for OLED and testing on CRKBD * Updated documentation * fixed the timeout logic so it works as intended * Added initial limits to color settings * Added layer reset as part of the iddle timeout process * Split Keymap into more manageable files * Finalizing RGB Layer status on CRKBD - Refactored OLED timeout to deal only with oled - If user remains iddle on game layer for too long it will switch to default - LED / OLED iddle working - Minor changes to _SYM layer - Removed some rgb controls from keyboard due to layer dependent RGB colors * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Used suggestion from Drashna to replace EEPROM_RESET with shorter version. Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Implemented drashna's comment Co-authored-by: Drashna Jaelre <drashna@live.com>
4 years ago
[Keymap] crkbd/kidbrazil adding layer dependent RGB & better idle timeout. (#7901) * Added KidBrazil custom keymap for CRKBD -Custom Font -Custom OLED output * Added missing readme * Oled Timeout Update for KidBrazil Keymap (#1) * Setup Oled timeout based on simple timer * Cleaned up comments and added timeout for LEDs * Fixed some small errors * Updated oled timout with matrix scan * Updated oled timout with matrix scan * Update withou eeprom * Update timer code * Use process user instead of keymap * Added ifdef to protect oledtimer * Updated with half timeout state for logo * Removed middle tier timer * Final cleanup of unused files * Updated code as per suggestions & requests * Second round of revisions * Updated keymap to better handle LED timeout - Added boolean to hold LED state - Added init function to set rgb to known state - Modified RGB_TOG to work with noeeprom commands * Finished adding the timeout for OLED and testing on CRKBD * Updated documentation * fixed the timeout logic so it works as intended * Added initial limits to color settings * Added layer reset as part of the iddle timeout process * Split Keymap into more manageable files * Finalizing RGB Layer status on CRKBD - Refactored OLED timeout to deal only with oled - If user remains iddle on game layer for too long it will switch to default - LED / OLED iddle working - Minor changes to _SYM layer - Removed some rgb controls from keyboard due to layer dependent RGB colors * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Used suggestion from Drashna to replace EEPROM_RESET with shorter version. Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Implemented drashna's comment Co-authored-by: Drashna Jaelre <drashna@live.com>
4 years ago
[Keymap] crkbd/kidbrazil adding layer dependent RGB & better idle timeout. (#7901) * Added KidBrazil custom keymap for CRKBD -Custom Font -Custom OLED output * Added missing readme * Oled Timeout Update for KidBrazil Keymap (#1) * Setup Oled timeout based on simple timer * Cleaned up comments and added timeout for LEDs * Fixed some small errors * Updated oled timout with matrix scan * Updated oled timout with matrix scan * Update withou eeprom * Update timer code * Use process user instead of keymap * Added ifdef to protect oledtimer * Updated with half timeout state for logo * Removed middle tier timer * Final cleanup of unused files * Updated code as per suggestions & requests * Second round of revisions * Updated keymap to better handle LED timeout - Added boolean to hold LED state - Added init function to set rgb to known state - Modified RGB_TOG to work with noeeprom commands * Finished adding the timeout for OLED and testing on CRKBD * Updated documentation * fixed the timeout logic so it works as intended * Added initial limits to color settings * Added layer reset as part of the iddle timeout process * Split Keymap into more manageable files * Finalizing RGB Layer status on CRKBD - Refactored OLED timeout to deal only with oled - If user remains iddle on game layer for too long it will switch to default - LED / OLED iddle working - Minor changes to _SYM layer - Removed some rgb controls from keyboard due to layer dependent RGB colors * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Used suggestion from Drashna to replace EEPROM_RESET with shorter version. Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Implemented drashna's comment Co-authored-by: Drashna Jaelre <drashna@live.com>
4 years ago
[Keymap] crkbd/kidbrazil adding layer dependent RGB & better idle timeout. (#7901) * Added KidBrazil custom keymap for CRKBD -Custom Font -Custom OLED output * Added missing readme * Oled Timeout Update for KidBrazil Keymap (#1) * Setup Oled timeout based on simple timer * Cleaned up comments and added timeout for LEDs * Fixed some small errors * Updated oled timout with matrix scan * Updated oled timout with matrix scan * Update withou eeprom * Update timer code * Use process user instead of keymap * Added ifdef to protect oledtimer * Updated with half timeout state for logo * Removed middle tier timer * Final cleanup of unused files * Updated code as per suggestions & requests * Second round of revisions * Updated keymap to better handle LED timeout - Added boolean to hold LED state - Added init function to set rgb to known state - Modified RGB_TOG to work with noeeprom commands * Finished adding the timeout for OLED and testing on CRKBD * Updated documentation * fixed the timeout logic so it works as intended * Added initial limits to color settings * Added layer reset as part of the iddle timeout process * Split Keymap into more manageable files * Finalizing RGB Layer status on CRKBD - Refactored OLED timeout to deal only with oled - If user remains iddle on game layer for too long it will switch to default - LED / OLED iddle working - Minor changes to _SYM layer - Removed some rgb controls from keyboard due to layer dependent RGB colors * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Used suggestion from Drashna to replace EEPROM_RESET with shorter version. Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Implemented drashna's comment Co-authored-by: Drashna Jaelre <drashna@live.com>
4 years ago
[Keymap] crkbd/kidbrazil adding layer dependent RGB & better idle timeout. (#7901) * Added KidBrazil custom keymap for CRKBD -Custom Font -Custom OLED output * Added missing readme * Oled Timeout Update for KidBrazil Keymap (#1) * Setup Oled timeout based on simple timer * Cleaned up comments and added timeout for LEDs * Fixed some small errors * Updated oled timout with matrix scan * Updated oled timout with matrix scan * Update withou eeprom * Update timer code * Use process user instead of keymap * Added ifdef to protect oledtimer * Updated with half timeout state for logo * Removed middle tier timer * Final cleanup of unused files * Updated code as per suggestions & requests * Second round of revisions * Updated keymap to better handle LED timeout - Added boolean to hold LED state - Added init function to set rgb to known state - Modified RGB_TOG to work with noeeprom commands * Finished adding the timeout for OLED and testing on CRKBD * Updated documentation * fixed the timeout logic so it works as intended * Added initial limits to color settings * Added layer reset as part of the iddle timeout process * Split Keymap into more manageable files * Finalizing RGB Layer status on CRKBD - Refactored OLED timeout to deal only with oled - If user remains iddle on game layer for too long it will switch to default - LED / OLED iddle working - Minor changes to _SYM layer - Removed some rgb controls from keyboard due to layer dependent RGB colors * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Used suggestion from Drashna to replace EEPROM_RESET with shorter version. Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/crkbd/keymaps/kidbrazil/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Implemented drashna's comment Co-authored-by: Drashna Jaelre <drashna@live.com>
4 years ago
  1. /*
  2. This is the c configuration file for the keymap
  3. Copyright 2012 Jun Wako <wakojun@gmail.com>
  4. Copyright 2015 Jack Humbert
  5. Copyright 2019 Lucas Moreira
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  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. //#define USE_MATRIX_I2C
  19. /* Select hand configuration */
  20. #define MASTER_LEFT
  21. // #define MASTER_RIGHT
  22. // #define EE_HANDS
  23. #define TAPPING_FORCE_HOLD
  24. #define TAPPING_TERM 150
  25. #undef PRODUCT
  26. #define PRODUCT "CRKBD Loose Transistor Ed."
  27. #ifdef RGBLIGHT_ENABLE
  28. //#undef RGBLED_NUM
  29. //#define RGBLIGHT_ANIMATIONS
  30. #define RGBLIGHT_EFFECT_BREATHING
  31. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  32. #define RGBLIGHT_EFFECT_KNIGHT
  33. //#define RGBLED_NUM 27
  34. #define RGBLIGHT_LIMIT_VAL 120
  35. #define RGBLIGHT_HUE_STEP 10
  36. #define RGBLIGHT_SAT_STEP 17
  37. #define RGBLIGHT_VAL_STEP 17
  38. #endif
  39. #ifdef RGB_MATRIX_ENABLE
  40. //# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  41. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  42. // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  43. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  44. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  45. // # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
  46. // # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
  47. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  48. #define RGB_MATRIX_HUE_STEP 4
  49. #define RGB_MATRIX_SAT_STEP 4
  50. #define RGB_MATRIX_VAL_STEP 4
  51. #define RGB_MATRIX_SPD_STEP 10
  52. /* Disable the animations you don&#39;t want/need. You will need to disable a good number of these *
  53. * because they take up a lot of space. Disable until you can successfully compile your firmware. */
  54. # undef ENABLE_RGB_MATRIX_ALPHAS_MODS
  55. # undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  56. # undef ENABLE_RGB_MATRIX_BREATHING
  57. # undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  58. # undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  59. # undef ENABLE_RGB_MATRIX_BAND_SAT
  60. # undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  61. # undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  62. # undef ENABLE_RGB_MATRIX_BAND_VAL
  63. # undef ENABLE_RGB_MATRIX_CYCLE_ALL
  64. # undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  65. # undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  66. # undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  67. # undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  68. # undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  69. # undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  70. # undef ENABLE_RGB_MATRIX_DUAL_BEACON
  71. # undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  72. # undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  73. # undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  74. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
  75. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  76. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  77. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  78. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  79. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  80. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  81. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  82. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  83. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  84. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  85. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  86. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  87. # undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  88. # undef ENABLE_RGB_MATRIX_SOLID_SPLASH
  89. # undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  90. # undef ENABLE_RGB_MATRIX_SOLID_SPLASH
  91. # undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  92. # undef ENABLE_RGB_MATRIX_SPLASH
  93. # undef ENABLE_RGB_MATRIX_MULTISPLASH
  94. # undef ENABLE_RGB_MATRIX_SPLASH
  95. # undef ENABLE_RGB_MATRIX_MULTISPLASH
  96. #endif
  97. // Custom Font path
  98. #define OLED_FONT_H "keyboards/crkbd/keymaps/kidbrazil/glcdfont.c"
  99. #define OLED_DISABLE_TIMEOUT