forked from mirrors/qmk_userspace
Asymmetric encoders, encoder tests. (#16068)
This commit is contained in:
parent
2218690d0b
commit
2f6751e48a
27 changed files with 931 additions and 148 deletions
22
quantum/encoder/tests/config_mock.h
Normal file
22
quantum/encoder/tests/config_mock.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2022 Nick Brassel (@tzarc)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#pragma once
|
||||
|
||||
#define MATRIX_ROWS 1
|
||||
#define MATRIX_COLS 1
|
||||
|
||||
/* Here, "pins" from 0 to 31 are allowed. */
|
||||
#define ENCODERS_PAD_A \
|
||||
{ 0 }
|
||||
#define ENCODERS_PAD_B \
|
||||
{ 1 }
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "mock.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue