logo

qmk_firmware

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

giabalanai.h (3268B)


  1. /* Copyright 2020 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. #define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T
  19. #define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G
  20. #define _________________QWERTY_L3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B
  21. #define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P
  22. #define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
  23. #define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH
  24. #define _________________COLEMAK_L1________________ KC_Q, KC_W, KC_F, KC_P, KC_G
  25. #define _________________COLEMAK_L2________________ KC_A, KC_R, KC_S, KC_T, KC_D
  26. #define _________________COLEMAK_L3________________ KC_Z, KC_X, KC_C, KC_V, KC_B
  27. #define _________________COLEMAK_R1________________ KC_J, KC_L, KC_U, KC_Y, KC_SCLN
  28. #define _________________COLEMAK_R2________________ KC_H, KC_N, KC_E, KC_I, KC_O
  29. #define _________________COLEMAK_R3________________ KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH
  30. #define _________________NUMBER_L__________________ KC_1, KC_2, KC_3, KC_4, KC_5
  31. #define _________________NUMBER_R__________________ KC_6, KC_7, KC_8, KC_9, KC_0
  32. #define _________________FUNC__L___________________ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5
  33. #define _________________FUNC__R___________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10
  34. #ifdef RGBLIGHT_ENABLE
  35. extern const uint8_t PROGMEM convert_key_to_led[];
  36. # ifndef GIABARINAIX2
  37. extern const uint8_t PROGMEM convert_key_to_led2[];
  38. # endif
  39. #endif // RGBLIGHT_ENABLE
  40. // #ifdef RGB_MATRIX_ENABLE
  41. // extern const uint8_t PROGMEM convert_led_location2number[];
  42. // #endif
  43. extern MidiDevice midi_device;
  44. void my_process_midi4Bass(uint8_t channel, keyrecord_t *record,
  45. uint8_t *chord_status, uint8_t chord, uint16_t root_note, bool is_single_bass);
  46. void my_process_midi4TriadChords(uint8_t channel, keyrecord_t *record,
  47. uint8_t *chord_status, uint8_t chord, uint16_t root_note,
  48. int8_t offset1, int8_t offset2, int8_t offset3);
  49. void my_process_midi(uint8_t channel, uint16_t keycode, keyrecord_t *record, uint8_t *my_tone_status, int8_t offset, bool melody_unison_suppress);
  50. #ifdef RGBLIGHT_ENABLE
  51. void keylight_manager(keyrecord_t *record, uint8_t hue, uint8_t sat, uint8_t val, uint8_t keylocation);
  52. #endif // RGBLIGHT_ENABLE