forked from mirrors/qmk_firmware
e4236278b5
* added to handwired pill60 * Update keyboards/handwired/pill60/config.h and all other PR suggested changes Deleted DESCRIPTION Co-authored-by: Drashna Jaelre <drashna@live.com> Update keyboards/handwired/pill60/readme.md Smaller image in readme Co-authored-by: Drashna Jaelre <drashna@live.com> Update keyboards/handwired/pill60/info.json Deleted key_count Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/keymaps/default/keymap.c Deleted backslash on keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/pill60.h Deleted led.h Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/blackpill_f401/rules.mk Update stm32f401 rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/blackpill_f411/rules.mk Update stm32f411 rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/bluepill/rules.mk Update bluepill rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> Update keyboards/handwired/pill60/rules.mk Added comment on rules.mk to help ] Co-authored-by: Ryan <fauxpark@gmail.com> deleted bootloader_defs.h added GPL2 + compatible license header updated keymap readme updated those that don't need common_config.h and deleted some unnecessary spaces in f411/rules.mk updated default folder in rules.mk * fix and simplify build files according to onekey example * Added GPL2+ Compatible license header
53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
/* Copyright 2020 Imam Rafii
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#pragma once
|
|
|
|
#include "config_common.h"
|
|
|
|
#define VENDOR_ID 0x4454
|
|
#define PRODUCT_ID 0x5444
|
|
#define DEVICE_VER 0x0001
|
|
|
|
#define MANUFACTURER "IktaS"
|
|
#define PRODUCT "Pill60"
|
|
|
|
#define MATRIX_ROWS 5
|
|
#define MATRIX_COLS 14
|
|
#define DIODE_DIRECTION COL2ROW
|
|
|
|
/* Set 0 if debouncing isn't needed */
|
|
#define DEBOUNCE 1
|
|
|
|
/* Backlighting include */
|
|
#define BACKLIGHT_PIN B14
|
|
#define BACKLIGHT_PWM_DRIVER PWMD5
|
|
#define BACKLIGHT_PWM_CHANNEL 1
|
|
#define BACKLIGHT_LEVELS 5
|
|
#define BREATHING_PERIOD 6
|
|
|
|
/* Encoder */
|
|
#define ENCODERS_PAD_A \
|
|
{ B9 }
|
|
#define ENCODERS_PAD_B \
|
|
{ B8 }
|
|
#define ENCODER_RESOLUTION 2
|
|
|
|
/* OLED */
|
|
#define I2C_DRIVER I2CD1
|
|
#define I2C1_SCL_BANK GPIOB
|
|
#define I2C1_SDA_BANK GPIOB
|
|
#define I2C1_SCL 6
|
|
#define I2C1_SDA 7
|