Skip to content

Commit 6e931cc

Browse files
authored
Fix leafcutterlabs/bigknob compiles in configurator (#11531)
* Fix leafcutterlabs/bigknob compiles in configurator * Revert change
1 parent 6368a56 commit 6e931cc

File tree

6 files changed

+67
-69
lines changed

6 files changed

+67
-69
lines changed
+15-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
/* Copyright 2021 Craig Gardner
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-
1+
/* Copyright 2021 Craig Gardner
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+
*/
1716
#include "bigknob.h"

keyboards/leafcutterlabs/bigknob/bigknob.h

+15-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
/* Copyright 2021 Craig Gardner
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-
1+
/* Copyright 2021 Craig Gardner
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+
*/
1716
#pragma once
1817

1918
#include "quantum.h"

keyboards/leafcutterlabs/bigknob/config.h

+16-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
/*
2-
Copyright 2012 Jun Wako <wakojun@gmail.com>
3-
4-
This program is free software: you can redistribute it and/or modify
5-
it under the terms of the GNU General Public License as published by
6-
the Free Software Foundation, either version 2 of the License, or
7-
(at your option) any later version.
8-
9-
This program is distributed in the hope that it will be useful,
10-
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
GNU General Public License for more details.
13-
14-
You should have received a copy of the GNU General Public License
15-
along with this program. If not, see <http://www.gnu.org/licenses/>.
16-
*/
17-
1+
/* Copyright 2021 Craig Gardner
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+
*/
1816
#pragma once
1917

2018
#include "config_common.h"
@@ -25,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2523
#define DEVICE_VER 0x0001
2624
#define MANUFACTURER leafcutterlabs
2725
#define PRODUCT bigKNOB
26+
2827
/* key matrix size */
2928
#define MATRIX_ROWS 1
3029
#define MATRIX_COLS 5

keyboards/leafcutterlabs/bigknob/keymaps/default/keymap.c

+20-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
/* Copyright 2021 Craig Gardner
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-
1+
/* Copyright 2021 Craig Gardner
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+
*/
1716
#include QMK_KEYBOARD_H
1817

19-
#define _MAIN 0
18+
// Defines names for use in layer keycodes and the keymap
19+
enum layer_names {
20+
_BASE
21+
};
2022

2123
void encoder_update_user(uint8_t index, bool clockwise) {
2224
if (index == 0) {
@@ -47,9 +49,8 @@ qk_tap_dance_action_t tap_dance_actions[] = {
4749
[TD_RGB] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_rgb_finished, NULL)
4850
};
4951

50-
//
5152
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //buttion closest to usb is first
52-
[_MAIN] = LAYOUT(
53+
[_BASE] = LAYOUT(
5354
KC_MUTE, KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_STOP, TD(TD_RGB)
5455
)
5556
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TAP_DANCE_ENABLE = yes

keyboards/leafcutterlabs/bigknob/rules.mk

-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
2121
BLUETOOTH_ENABLE = no # Enable Bluetooth
2222
AUDIO_ENABLE = no # Audio output
2323
ENCODER_ENABLE = yes # Enable rotary encoders
24-
TAP_DANCE_ENABLE = yes

0 commit comments

Comments
 (0)