aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul James <paul@peej.co.uk>2021-04-03 02:25:23 +0200
committerGitHub <noreply@github.com>2021-04-02 17:25:23 -0700
commit619885b48432bccb7ba4b65f0f5a3c9f4a8d40e2 (patch)
treebcc4fba63890a042c11bfe2308a5291fb7605f0b
parent6592f83589801263a2db5fa5c97a5def99e9c9ac (diff)
downloadqmk_firmware-619885b48432bccb7ba4b65f0f5a3c9f4a8d40e2.tar.gz
qmk_firmware-619885b48432bccb7ba4b65f0f5a3c9f4a8d40e2.zip
[Keyboard] Add Lumberjack keyboard (#12124)
-rw-r--r--keyboards/peej/lumberjack/config.h41
-rw-r--r--keyboards/peej/lumberjack/info.json73
-rw-r--r--keyboards/peej/lumberjack/keymaps/default/keymap.c70
-rw-r--r--keyboards/peej/lumberjack/keymaps/via/keymap.c50
-rw-r--r--keyboards/peej/lumberjack/keymaps/via/rules.mk1
-rw-r--r--keyboards/peej/lumberjack/lumberjack.c30
-rw-r--r--keyboards/peej/lumberjack/lumberjack.h38
-rw-r--r--keyboards/peej/lumberjack/readme.md16
-rw-r--r--keyboards/peej/lumberjack/rules.mk24
9 files changed, 343 insertions, 0 deletions
diff --git a/keyboards/peej/lumberjack/config.h b/keyboards/peej/lumberjack/config.h
new file mode 100644
index 000000000..ee993e9c9
--- /dev/null
+++ b/keyboards/peej/lumberjack/config.h
@@ -0,0 +1,41 @@
1/* Copyright 2020 Paul James
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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x706A
23#define PRODUCT_ID 0x0002
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Peej
26#define PRODUCT Lumberjack
27
28/* key matrix size */
29#define MATRIX_ROWS 6
30#define MATRIX_COLS 10
31#define MATRIX_ROW_PINS { C0, B5, B4, B3, B2, B1 }
32#define MATRIX_COL_PINS { B0, D7, D6, D5, D4, D1, D0, C1, C2, C3 }
33#define UNUSED_PINS
34
35/* COL2ROW, ROW2COL*/
36#define DIODE_DIRECTION COL2ROW
37
38#define USB_MAX_POWER_CONSUMPTION 100
39
40/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
41#define DEBOUNCE 5
diff --git a/keyboards/peej/lumberjack/info.json b/keyboards/peej/lumberjack/info.json
new file mode 100644
index 000000000..f7d0f703f
--- /dev/null
+++ b/keyboards/peej/lumberjack/info.json
@@ -0,0 +1,73 @@
1{
2 "keyboard_name": "Lumberjack",
3 "url": "https://github.com/peej/lumberjack-keyboard",
4 "maintainer": "Peej",
5 "width": 12,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_ortho_5x12": {
9 "layout": [
10 { "x": 0, "y": 0 },
11 { "x": 1, "y": 0 },
12 { "x": 2, "y": 0 },
13 { "x": 3, "y": 0 },
14 { "x": 4, "y": 0 },
15 { "x": 5, "y": 0 },
16 { "x": 6, "y": 0 },
17 { "x": 7, "y": 0 },
18 { "x": 8, "y": 0 },
19 { "x": 9, "y": 0 },
20 { "x": 10, "y": 0 },
21 { "x": 11, "y": 0 },
22 { "x": 0, "y": 1 },
23 { "x": 1, "y": 1 },
24 { "x": 2, "y": 1 },
25 { "x": 3, "y": 1 },
26 { "x": 4, "y": 1 },
27 { "x": 5, "y": 1 },
28 { "x": 6, "y": 1 },
29 { "x": 7, "y": 1 },
30 { "x": 8, "y": 1 },
31 { "x": 9, "y": 1 },
32 { "x": 10, "y": 1 },
33 { "x": 11, "y": 1 },
34 { "x": 0, "y": 2 },
35 { "x": 1, "y": 2 },
36 { "x": 2, "y": 2 },
37 { "x": 3, "y": 2 },
38 { "x": 4, "y": 2 },
39 { "x": 5, "y": 2 },
40 { "x": 6, "y": 2 },
41 { "x": 7, "y": 2 },
42 { "x": 8, "y": 2 },
43 { "x": 9, "y": 2 },
44 { "x": 10, "y": 2 },
45 { "x": 11, "y": 2 },
46 { "x": 0, "y": 3 },
47 { "x": 1, "y": 3 },
48 { "x": 2, "y": 3 },
49 { "x": 3, "y": 3 },
50 { "x": 4, "y": 3 },
51 { "x": 5, "y": 3 },
52 { "x": 6, "y": 3 },
53 { "x": 7, "y": 3 },
54 { "x": 8, "y": 3 },
55 { "x": 9, "y": 3 },
56 { "x": 10, "y": 3 },
57 { "x": 11, "y": 3 },
58 { "x": 0, "y": 4 },
59 { "x": 1, "y": 4 },
60 { "x": 2, "y": 4 },
61 { "x": 3, "y": 4 },
62 { "x": 4, "y": 4 },
63 { "x": 5, "y": 4 },
64 { "x": 6, "y": 4 },
65 { "x": 7, "y": 4 },
66 { "x": 8, "y": 4 },
67 { "x": 9, "y": 4 },
68 { "x": 10, "y": 4 },
69 { "x": 11, "y": 4 }
70 ]
71 }
72 }
73}
diff --git a/keyboards/peej/lumberjack/keymaps/default/keymap.c b/keyboards/peej/lumberjack/keymaps/default/keymap.c
new file mode 100644
index 000000000..b28332435
--- /dev/null
+++ b/keyboards/peej/lumberjack/keymaps/default/keymap.c
@@ -0,0 +1,70 @@
1/* Copyright 2020 Paul James
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
19enum layers {
20 _QWERTY = 0,
21 _FUNCTION
22};
23
24#define FN MO(_FUNCTION)
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27
28/* Qwerty
29 * ,-----------------------------------------. ,-----------------------------------------.
30 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BkSp |
31 * |------+------+------+------+------+------| |------+------+------+------+------+------|
32 * | Tab | Q | W | E | R | T | | Y | U | I | O | P | Del |
33 * |------+------+------+------+------+------| |------+------+------+------+------+------|
34 * | Esc | A | S | D | F | G | | H | J | K | L | ; | ' |
35 * |------+------+------+------+------+------| |------+------+------+------+------+------|
36 * | Shft | Z | X | C | V | B | | N | M | , | . | / | Entr |
37 * |------+------+------+------+------+------| |------+------+------+------+------+------|
38 * | Ctrl | Fn | Alt | Cmd | Fn | Spac | | Spac | Fn | Left | Down | Up | Rght |
39 * `-----------------------------------------' `-----------------------------------------'
40 */
41[_QWERTY] = LAYOUT_ortho_5x12(
42 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
43 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL,
44 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
45 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
46 KC_LCTL, FN, KC_LALT, KC_LGUI, FN, KC_SPC, KC_SPC, FN, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
47),
48
49/* Function
50* ,------------------------------------------. ,-----------------------------------------.
51 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Bksp |
52 * |------+------+------+------+------+------| |------+------+------+------+------+------|
53 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Del |
54 * |------+------+------+------+------+------| |------+------+------+------+------+------|
55 * | Del | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
56 * |------+------+------+------+------+------| |------+------+------+------+------+------|
57 * | | F7 | F8 | F9 | F10 | F11 | | F12 |ISO # |ISO / | | | |
58 * |------+------+------+------+------+------| |------+------+------+------+------+------|
59 * | | | | | | | | | | Next | Vol- | Vol+ | Play |
60 * `-----------------------------------------' `-----------------------------------------'
61 */
62[_FUNCTION] = LAYOUT_ortho_5x12(
63 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
64 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
65 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
66 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
67 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
68)
69
70};
diff --git a/keyboards/peej/lumberjack/keymaps/via/keymap.c b/keyboards/peej/lumberjack/keymaps/via/keymap.c
new file mode 100644
index 000000000..a1981cd5b
--- /dev/null
+++ b/keyboards/peej/lumberjack/keymaps/via/keymap.c
@@ -0,0 +1,50 @@
1/* Copyright 2020 Paul James
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
21[0] = LAYOUT_ortho_5x12(
22 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
23 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL,
24 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
25 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
26 KC_LCTL, MO(2), KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
27),
28[1] = LAYOUT_ortho_5x12(
29 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
30 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
31 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
32 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
34),
35[2] = LAYOUT_ortho_5x12(
36 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
37 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
38 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
39 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
41),
42[3] = LAYOUT_ortho_5x12(
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
48)
49
50};
diff --git a/keyboards/peej/lumberjack/keymaps/via/rules.mk b/keyboards/peej/lumberjack/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/peej/lumberjack/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/peej/lumberjack/lumberjack.c b/keyboards/peej/lumberjack/lumberjack.c
new file mode 100644
index 000000000..34e5a2848
--- /dev/null
+++ b/keyboards/peej/lumberjack/lumberjack.c
@@ -0,0 +1,30 @@
1/* Copyright 2020 Paul James
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 "lumberjack.h"
18
19bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
20 writePin(LED1, record->event.pressed);
21
22 return process_record_user(keycode, record);
23}
24
25layer_state_t layer_state_set_kb(layer_state_t state) {
26 writePinLow(LED1);
27 writePin(LED2, state);
28
29 return layer_state_set_user(state);
30}
diff --git a/keyboards/peej/lumberjack/lumberjack.h b/keyboards/peej/lumberjack/lumberjack.h
new file mode 100644
index 000000000..785f13a90
--- /dev/null
+++ b/keyboards/peej/lumberjack/lumberjack.h
@@ -0,0 +1,38 @@
1/* Copyright 2020 Paul James
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#pragma once
18
19#include "quantum.h"
20
21#define LAYOUT_ortho_5x12( \
22 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
23 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
24 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
25 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, \
26 k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b \
27) \
28{ \
29 { k00, k01, k02, k03, k04, k0b, k0a, k09, k08, k07 }, \
30 { k10, k11, k12, k13, k05, k1b, k1a, k19, k18, k06 }, \
31 { k20, k21, k22, k14, k15, k2b, k2a, k29, k17, k16 }, \
32 { k30, k31, k23, k24, k25, k3b, k3a, k28, k27, k26 }, \
33 { k40, k32, k33, k34, k35, k4b, k39, k38, k37, k36 }, \
34 { k41, k42, k43, k44, k45, k4a, k49, k48, k47, k46 } \
35}
36
37#define LED1 C5
38#define LED2 C4
diff --git a/keyboards/peej/lumberjack/readme.md b/keyboards/peej/lumberjack/readme.md
new file mode 100644
index 000000000..b350dd1ee
--- /dev/null
+++ b/keyboards/peej/lumberjack/readme.md
@@ -0,0 +1,16 @@
1# Lumberjack ## Through-hole ortholinear 60% keyboard PCB
2
3![lumberjack](https://github.com/peej/lumberjack-keyboard/raw/master/images/pcb.jpg)
4
512x5 ortholinear PCB for 60% tray mount cases with only through hole components.
6
7* Keyboard Maintainer: [Paul James](https://github.com/peej)
8* Hardware Supported: ATMEGA328p with vusb [PCB](https://github.com/peej/lumberjack-keyboard)
9
10Make example for this keyboard (after setting up your build environment):
11
12 make peej/lumberjack:default
13
14## Bootloader
15
16Use usbasploader in [hsgw's repository](https://github.com/hsgw/USBaspLoader/tree/plaid).
diff --git a/keyboards/peej/lumberjack/rules.mk b/keyboards/peej/lumberjack/rules.mk
new file mode 100644
index 000000000..410124b84
--- /dev/null
+++ b/keyboards/peej/lumberjack/rules.mk
@@ -0,0 +1,24 @@
1# MCU name
2MCU = atmega328p
3
4# Bootloader selection
5BOOTLOADER = USBasp
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
24LAYOUTS = ortho_5x12