qmk_firmware

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

config.h (969B)


      1 /*
      2 
      3 QMK Firmware for dekuNukem/duckyPad
      4 
      5 Copyright (C) 2020 Max Bridgland <@M4cs>
      6 
      7 This program is free software: you can redistribute it and/or modify
      8 it under the terms of the GNU General Public License as published by
      9 the Free Software Foundation, either version 3 of the License, or
     10 (at your option) any later version.
     11 
     12 This program is distributed in the hope that it will be useful,
     13 but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19 */
     20 
     21 #pragma once
     22 
     23 #define I2C1_SCL_PIN B8
     24 #define I2C1_SDA_PIN B9
     25 
     26 #define I2C1_SCL_PAL_MODE 1
     27 #define I2C1_SDA_PAL_MODE 1
     28 
     29 #define OLED_DISPLAY_ADDRESS 0x3C
     30 #define OLED_DISPLAY_128X64
     31 #define OLED_COM_PINS 0x12
     32 
     33 #define OLED_IC OLED_IC_SH1106
     34 #define OLED_COLUMN_OFFSET 2