qmk_firmware

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

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