qmk_firmware

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

config.h (1437B)


      1 /* Copyright 2021 Colin Lam (Ploopy Corporation)
      2  * Copyright 2020 Christopher Courtney, aka Drashna Jael're  (@drashna) <drashna@live.com>
      3  * Copyright 2019 Sunjun Kim
      4  * Copyright 2019 Hiroyuki Okada
      5  *
      6  * This program is free software: you can redistribute it and/or modify
      7  * it under the terms of the GNU General Public License as published by
      8  * the Free Software Foundation, either version 2 of the License, or
      9  * (at your option) any later version.
     10  *
     11  * This program is distributed in the hope that it will be useful,
     12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14  * GNU General Public License for more details.
     15  *
     16  * You should have received a copy of the GNU General Public License
     17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     18  */
     19 
     20 #pragma once
     21 
     22 /* disable action features */
     23 //#define NO_ACTION_LAYER
     24 //#define NO_ACTION_TAPPING
     25 //#define NO_ACTION_ONESHOT
     26 
     27 // If board has a debug LED, you can enable it by defining this
     28 // #define DEBUG_LED_PIN F7
     29 
     30 #define ADNS5050_SCLK_PIN         B7
     31 #define ADNS5050_SDIO_PIN         C6
     32 #define ADNS5050_CS_PIN           B4
     33 
     34 #define POINTING_DEVICE_ROTATION_270
     35 
     36 #define ENCODER_BUTTON_COL 1
     37 #define ENCODER_BUTTON_ROW 0
     38 /* Custom encoder needs to specify just how many encoders we have */
     39 #define NUM_ENCODERS 1
     40 
     41 #define ENCODER_A_PINS { F0 }
     42 #define ENCODER_B_PINS { F4 }