qmk_firmware

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

white.c (3148B)


      1 /* Copyright 2022 @ Keychron (https://www.keychron.com)
      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 #include "quantum.h"
     18 
     19 #ifdef LED_MATRIX_ENABLE
     20 
     21 // clang-format off
     22 
     23 const snled27351_led_t PROGMEM g_snled27351_leds[SNLED27351_LED_COUNT] = {
     24 /* Refer to SNLED27351 manual for these locations
     25  *   driver
     26  *   |  LED address
     27  *   |  |   */
     28     {0, CB6_CA1},  // esc
     29     {0, CB6_CA2},  // f1
     30     {0, CB6_CA3},  // f2
     31     {0, CB6_CA4},  // f3
     32     {0, CB6_CA5},  // f4
     33     {0, CB6_CA6},  // f4
     34     {0, CB6_CA7},  // f6
     35     {0, CB6_CA8},  // f7
     36     {0, CB6_CA9},  // f8
     37     {0, CB6_CA10}, // f9
     38     {0, CB6_CA11}, // f10
     39     {0, CB6_CA12}, // f11
     40     {0, CB6_CA13}, // f12
     41     {0, CB6_CA14}, // print
     42     {0, CB6_CA15}, // del
     43     {0, CB6_CA16}, // light
     44 
     45     {0, CB5_CA1},  // ~
     46     {0, CB5_CA2},  // 1!
     47     {0, CB5_CA3},  // 2@
     48     {0, CB5_CA4},  // 3#
     49     {0, CB5_CA5},  // 4$
     50     {0, CB5_CA6},  // 5%
     51     {0, CB5_CA7},  // 6^
     52     {0, CB5_CA8},  // 7&
     53     {0, CB5_CA9},  // 8*
     54     {0, CB5_CA10}, // 9(
     55     {0, CB5_CA11}, // 0)
     56     {0, CB5_CA12}, // -_
     57     {0, CB5_CA13}, // =+
     58     {0, CB5_CA14}, // back space
     59     {0, CB5_CA16}, // page up
     60 
     61     {0, CB4_CA1},  // tab
     62     {0, CB4_CA2},  // q
     63     {0, CB4_CA3},  // w
     64     {0, CB4_CA4},  // e
     65     {0, CB4_CA5},  // r
     66     {0, CB4_CA6},  // t
     67     {0, CB4_CA7},  // y
     68     {0, CB4_CA8},  // u
     69     {0, CB4_CA9},  // i
     70     {0, CB4_CA10}, // o
     71     {0, CB4_CA11}, // p
     72     {0, CB4_CA12}, // [{
     73     {0, CB4_CA13}, // ]}
     74     {0, CB4_CA14}, // |
     75     {0, CB4_CA16}, // page down
     76 
     77     {0, CB3_CA1},  // caps lock
     78     {0, CB3_CA2},  // a
     79     {0, CB3_CA3},  // s
     80     {0, CB3_CA4},  // d
     81     {0, CB3_CA5},  // f
     82     {0, CB3_CA6},  // g
     83     {0, CB3_CA7},  // h
     84     {0, CB3_CA8},  // j
     85     {0, CB3_CA9},  // k
     86     {0, CB3_CA10}, // l
     87     {0, CB3_CA11}, // ;:
     88     {0, CB3_CA12}, // '"
     89     {0, CB3_CA14}, // enter
     90     {0, CB3_CA16}, // home
     91 
     92     {0, CB2_CA1},  // left shift
     93     {0, CB2_CA3},  // z
     94     {0, CB2_CA4},  // x
     95     {0, CB2_CA5},  // c
     96     {0, CB2_CA6},  // v
     97     {0, CB2_CA7},  // b
     98     {0, CB2_CA8},  // b
     99     {0, CB2_CA9},  // n
    100     {0, CB2_CA10}, // m
    101     {0, CB2_CA11}, // ,<
    102     {0, CB2_CA12}, // .>
    103     {0, CB2_CA13}, // right shift
    104     {0, CB2_CA14}, // up
    105     {0, CB2_CA16}, // end
    106 
    107     {0, CB1_CA1},  // left
    108     {0, CB1_CA2},  // left command
    109     {0, CB1_CA3},  // left optin
    110     {0, CB1_CA7},  // space
    111     {0, CB1_CA10}, // right command
    112     {0, CB1_CA11}, // fn
    113     {0, CB1_CA12}, // right ctrl
    114     {0, CB1_CA13}, // left
    115     {0, CB1_CA14}, // down
    116     {0, CB1_CA16}, // right
    117 };
    118 #endif