Blacktyl: media and mouse keys

Also magic boot++
This commit is contained in:
Thomas Haukland
2022-05-13 20:16:44 +02:00
parent 6aa20ba32d
commit a716b3b7b1
4 changed files with 23 additions and 7 deletions

View File

@@ -24,6 +24,8 @@
#define DIODE_DIRECTION ROW2COL
// #define DEBUG_MATRIX_SCAN_RATE
//
/* RGB CONFIG - WS2812 DRIVER
#define RGB_DI_PIN A1
@@ -69,3 +71,10 @@
/* PMW3360 DRIVER */
//#define PMW3360_CS_PIN B14
//
/* Top left key on left half */
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
/* Top right key on right half */
#define BOOTMAGIC_LITE_ROW_RIGHT 4
#define BOOTMAGIC_LITE_COLUMN_RIGHT 4

View File

@@ -1,10 +1,11 @@
#pragma once
//#define HAL_USE_SPI TRUE
//#define HAL_USE_PWM TRUE
#define HAL_USE_PWM TRUE
#define HAL_USE_SERIAL TRUE
// #define PAL_USE_CALLBACKS TRUE
// #define PAL_USE_WAIT TRUE
//#define HAL_USE_I2C TRUE
#define HAL_USE_SPI TRUE
#define SPI_USE_WAIT TRUE
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
#define HAL_USE_GPT TRUE
#include_next <halconf.h>

View File

@@ -8,11 +8,15 @@
#undef STM32_ST_USE_TIMER
#define STM32_ST_USE_TIMER 5
//#undef STM32_PWM_USE_TIM2
//#define STM32_PWM_USE_TIM2 TRUE
#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE
#undef STM32_SPI_USE_SPI1
#define STM32_SPI_USE_SPI1 TRUE
#undef STM32_SERIAL_USE_USART1
#define STM32_SERIAL_USE_USART1 TRUE
#undef STM32_GPT_USE_TIM3
#define STM32_GPT_USE_TIM3 TRUE

View File

@@ -22,3 +22,5 @@ SERIAL_DRIVER = usart
SPLIT_KEYBOARD = yes
# VIA_ENABLE = no
# WS2812_DRIVER = pwm
MOUSEKEY_ENABLE = yes
EXTRAKEY_ENABLE = yes