logo

qmk_firmware

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

chromatonemini.h (2408B)


  1. /* Copyright 2021 3araht
  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 "quantum.h"
  18. #ifdef RGB_MATRIX_ENABLE
  19. extern led_config_t g_led_config;
  20. extern const uint8_t led_scale_indicator[12][12];
  21. extern const uint8_t led_single_col_indicator[37][3];
  22. // default base layer color
  23. # define BASE_LAYER_COLOR RGB_DARKGOLDENROD
  24. // border color
  25. # define FLIP_BORDER_COLOR RGB_DARKRED
  26. // flip entirely
  27. # define FLIPB_LAYER_COLOR RGB_DARKYELLOW
  28. // channel separation group
  29. # define SEPALEFT_LAYER_COLOR RGB_DARKGREEN
  30. # define SEPAHALF_LAYER_COLOR RGB_DARKGREEN
  31. # define SEPARIGHT_LAYER_COLOR RGB_DARKGREEN
  32. // Trans group
  33. # define TRANS_LAYER_COLOR RGB_DARKORANGE
  34. # define SEPALEFT_T_LAYER_COLOR RGB_DARKORANGE
  35. # define SEPAHALF_T_LAYER_COLOR RGB_DARKORANGE
  36. # define SEPARIGHT_T_LAYER_COLOR RGB_DARKORANGE
  37. # define FLIPT_LAYER_COLOR RGB_DARKORANGE
  38. #endif // RGB_MATRIX_ENABLE
  39. // Defines names for use in _FN layer to specify which column to be used to turn on the LEDs.
  40. // use this with led_single_col_indicator[37][3], ex. led_single_col_indicator[_FN_C2][0].
  41. enum my_key_names {
  42. _KEY01= 0,
  43. _KEY02,
  44. _KEY03,
  45. _KEY04,
  46. _KEY05,
  47. _KEY06,
  48. _KEY07,
  49. _KEY08,
  50. _KEY09,
  51. _KEY10,
  52. _KEY11,
  53. _KEY12,
  54. _KEY13,
  55. _KEY14,
  56. _KEY15,
  57. _KEY16,
  58. _KEY17,
  59. _KEY18,
  60. _KEY19,
  61. _KEY20,
  62. _KEY21,
  63. _KEY22,
  64. _KEY23,
  65. _KEY24,
  66. _KEY25,
  67. _KEY26,
  68. _KEY27,
  69. _KEY28,
  70. _KEY29,
  71. _KEY30,
  72. _KEY31,
  73. _KEY32,
  74. _KEY33,
  75. _KEY34,
  76. _KEY35,
  77. _KEY36,
  78. _KEY37,
  79. };
  80. #ifdef MIDI_ENABLE
  81. extern MidiDevice midi_device;
  82. #endif // MIDI_ENABLE
  83. uint8_t shift_led_indicator_left(uint8_t scale_indicator_col);
  84. uint8_t shift_led_indicator_right(uint8_t scale_indicator_col);