qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

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