aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/anavi/macropad2/keymaps/binary/keymap.c30
-rw-r--r--keyboards/anavi/macropad2/keymaps/binary/rules.mk1
2 files changed, 31 insertions, 0 deletions
diff --git a/keyboards/anavi/macropad2/keymaps/binary/keymap.c b/keyboards/anavi/macropad2/keymaps/binary/keymap.c
new file mode 100644
index 000000000..366fcb186
--- /dev/null
+++ b/keyboards/anavi/macropad2/keymaps/binary/keymap.c
@@ -0,0 +1,30 @@
1/* Copyright 2021 Leon Anavi <leon@anavi.org>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT(
21 KC_0, KC_1
22 )
23};
24
25const uint16_t PROGMEM test_combo[] = {KC_0, KC_1, COMBO_END};
26combo_t key_combos[COMBO_COUNT] = {COMBO_ACTION(test_combo)};
27
28void process_combo_event(uint16_t combo_index, bool pressed) {
29 backlight_step();
30}
diff --git a/keyboards/anavi/macropad2/keymaps/binary/rules.mk b/keyboards/anavi/macropad2/keymaps/binary/rules.mk
new file mode 100644
index 000000000..ab1e43818
--- /dev/null
+++ b/keyboards/anavi/macropad2/keymaps/binary/rules.mk
@@ -0,0 +1 @@
COMBO_ENABLE = yes