forked from mirrors/qmk_userspace
[Feature] Add support for multiple switchs/solenoids to Haptic Feedback engine (#15657)
This commit is contained in:
parent
4d107feca9
commit
f090881aeb
7 changed files with 164 additions and 70 deletions
|
@ -31,3 +31,7 @@
|
|||
#define RGB_DI_PIN A1
|
||||
|
||||
#define ADC_PIN A0
|
||||
|
||||
#define SOLENOID_PIN B12
|
||||
#define SOLENOID_PINS { B12, B13, B14, B15 }
|
||||
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
|
||||
|
|
11
keyboards/handwired/onekey/keymaps/haptic/keymap.c
Normal file
11
keyboards/handwired/onekey/keymaps/haptic/keymap.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
LAYOUT_ortho_1x1(KC_A)
|
||||
};
|
||||
|
||||
void haptic_enable(void);
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
haptic_enable();
|
||||
}
|
2
keyboards/handwired/onekey/keymaps/haptic/rules.mk
Normal file
2
keyboards/handwired/onekey/keymaps/haptic/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
HAPTIC_ENABLE = yes
|
||||
HAPTIC_DRIVER = SOLENOID
|
Loading…
Add table
Add a link
Reference in a new issue