Skip to content

Commit b9269bf

Browse files
medoixzvecrdrashnafauxpark
authored
[Keyboard] Dumbpad v1x_oled (#17058)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
1 parent 964ce93 commit b9269bf

File tree

9 files changed

+407
-1
lines changed

9 files changed

+407
-1
lines changed

keyboards/dumbpad/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
#include "config_common.h"
2020

2121
/* USB Device descriptor parameter */
22-
#define VENDOR_ID 0xFEED
22+
#define VENDOR_ID 0xDEAF
2323
#define PRODUCT_ID 0x0913
2424
#define MANUFACTURER imchipwood
2525
#define PRODUCT dumbpad

keyboards/dumbpad/v1x_oled/config.h

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
Copyright 2020 imchipwood
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+
This program is distributed in the hope that it will be useful,
8+
but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
GNU General Public License for more details.
11+
You should have received a copy of the GNU General Public License
12+
along with this program. If not, see <http://www.gnu.org/licenses/>.
13+
*/
14+
#pragma once
15+
16+
#include "config_common.h"
17+
18+
/* USB Device descriptor parameter */
19+
#define DEVICE_VER 0x0001
20+
#define MANUFACTURER imchipwood
21+
#define PRODUCT dumbpad
22+
23+
/* Column/Row IO definitions */
24+
#define MATRIX_ROWS 4
25+
#define MATRIX_COLS 5
26+
27+
#define MATRIX_ROW_PINS { F4, F5, F6, F7 }
28+
#define MATRIX_COL_PINS { C6, B1, B3, B2, B6 }
29+
#define UNUSED_PINS
30+
31+
/* Dual rotary encoders */
32+
#define ENCODERS_PAD_A { B4, E6 }
33+
#define ENCODERS_PAD_B { B5, D7 }
34+
35+
/* Column/Row IO definitions */
36+
#define DIODE_DIRECTION COL2ROW
37+
38+
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
39+
#define DEBOUNCE 5
40+
41+
/* Reduce tapdance required taps from 5 to 2 */
42+
#define TAPPING_TOGGLE 2

keyboards/dumbpad/v1x_oled/info.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"keyboard_name": "dumbpad",
3+
"keyboard_folder": "dumbpad",
4+
"url": "https://www.github.com/keebd/dumbpad",
5+
"maintainer": "keebd",
6+
"layouts": {
7+
"LAYOUT": {
8+
"layout": [
9+
{"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0},
10+
{"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1},
11+
{"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2},
12+
{"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}
13+
]
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/* Copyright 2020 imchipwood
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+
#include QMK_KEYBOARD_H
17+
18+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19+
/*
20+
BASE LAYER
21+
/-----------------------------------------------------`
22+
| | 7 | 8 | 9 | Bkspc |
23+
| |---------|---------|---------|---------|
24+
| | 4 | 5 | 6 | Esc |
25+
| |---------|---------|---------|---------|
26+
| | 1 | 2 | 3 | Tab |
27+
|-------------|---------|---------|---------|---------|
28+
| Play Pause | TT(1) | 0 | . | Enter |
29+
\-----------------------------------------------------'
30+
*/
31+
[0] = LAYOUT(
32+
KC_7, KC_8, KC_9, KC_BSPC,
33+
KC_4, KC_5, KC_6, KC_ESC,
34+
KC_1, KC_2, KC_3, KC_TAB,
35+
KC_MUTE, TT(1), KC_0, LSFT_T(KC_DOT), KC_ENTER
36+
),
37+
/*
38+
SUB LAYER
39+
/-----------------------------------------------------`
40+
| | | | | Reset |
41+
| |---------|---------|---------|---------|
42+
| | | | | + |
43+
| |---------|---------|---------|---------|
44+
| | | | | - |
45+
|-------------|---------|---------|---------|---------|
46+
| LOCK | | | | = |
47+
\-----------------------------------------------------'
48+
*/
49+
[1] = LAYOUT(
50+
_______, _______, _______, RESET,
51+
_______, _______, _______, KC_KP_PLUS,
52+
_______, _______, _______, KC_KP_MINUS,
53+
KC_LOCK, _______, _______, _______, KC_EQL
54+
),
55+
56+
[2] = LAYOUT(
57+
_______, _______, _______, _______,
58+
_______, _______, _______, _______,
59+
_______, _______, _______, _______,
60+
_______, _______, _______, _______, _______
61+
),
62+
63+
[3] = LAYOUT(
64+
_______, _______, _______, _______,
65+
_______, _______, _______, _______,
66+
_______, _______, _______, _______,
67+
_______, _______, _______, _______, _______
68+
)
69+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/* Copyright 2020 imchipwood
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+
#include QMK_KEYBOARD_H
17+
18+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19+
/*
20+
BASE LAYER
21+
/-----------------------------------------------------`
22+
| | 7 | 8 | 9 | Bkspc |
23+
| |---------|---------|---------|---------|
24+
| | 4 | 5 | 6 | Esc |
25+
| |---------|---------|---------|---------|
26+
| | 1 | 2 | 3 | Tab |
27+
|-------------|---------|---------|---------|---------|
28+
| Play Pause | TT(1) | 0 | . | Enter |
29+
\-----------------------------------------------------'
30+
*/
31+
[0] = LAYOUT(
32+
KC_7, KC_8, KC_9, KC_BSPC,
33+
KC_4, KC_5, KC_6, KC_ESC,
34+
KC_1, KC_2, KC_3, KC_TAB,
35+
KC_MUTE, TT(1), KC_0, LSFT_T(KC_DOT), KC_ENTER
36+
),
37+
/*
38+
SUB LAYER
39+
/-----------------------------------------------------`
40+
| | | | | Reset |
41+
| |---------|---------|---------|---------|
42+
| | | | | + |
43+
| |---------|---------|---------|---------|
44+
| | | | | - |
45+
|-------------|---------|---------|---------|---------|
46+
| LOCK | | | | = |
47+
\-----------------------------------------------------'
48+
*/
49+
[1] = LAYOUT(
50+
_______, _______, _______, RESET,
51+
_______, _______, _______, KC_KP_PLUS,
52+
_______, _______, _______, KC_KP_MINUS,
53+
KC_LOCK, _______, _______, _______, KC_EQL
54+
),
55+
56+
[2] = LAYOUT(
57+
_______, _______, _______, _______,
58+
_______, _______, _______, _______,
59+
_______, _______, _______, _______,
60+
_______, _______, _______, _______, _______
61+
),
62+
63+
[3] = LAYOUT(
64+
_______, _______, _______, _______,
65+
_______, _______, _______, _______,
66+
_______, _______, _______, _______,
67+
_______, _______, _______, _______, _______
68+
)
69+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VIA_ENABLE = yes
2+
LTO_ENABLE = yes

keyboards/dumbpad/v1x_oled/rules.mk

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# MCU name
2+
MCU = atmega32u4
3+
4+
# Bootloader selection
5+
BOOTLOADER = caterina
6+
7+
# Build Options
8+
# change yes to no to disable
9+
#
10+
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
11+
MOUSEKEY_ENABLE = no # Mouse keys
12+
EXTRAKEY_ENABLE = yes # Audio control and System control
13+
CONSOLE_ENABLE = no # Console for debug
14+
COMMAND_ENABLE = no # Commands for debug and configuration
15+
NKRO_ENABLE = no # Enable N-Key Rollover
16+
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17+
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18+
AUDIO_ENABLE = no # Audio output
19+
20+
ENCODER_ENABLE = yes
21+
OLED_ENABLE = yes
22+
OLED_DRIVER = SSD1306
23+
WPM_ENABLE = yes

0 commit comments

Comments
 (0)