Skip to content

Commit 6684fcf

Browse files
authored
Merge pull request #590 from danieliscrazy/main
dldpad
2 parents cd8ec32 + b08a9e0 commit 6684fcf

File tree

14 files changed

+63755
-0
lines changed

14 files changed

+63755
-0
lines changed

hackpads/dldpad/CAD/dldpad.step

Lines changed: 60484 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright 2023 QMK
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
5+
#define ENCODER_A_PINS { GP0 }
6+
#define ENCODER_B_PINS { GP1 }
7+
8+
#define I2C_DRIVER I2CD1
9+
#define I2C1_SDA_PIN GP6
10+
#define I2C1_SCL_PIN GP7
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"manufacturer": "Daniel Davidson",
3+
"keyboard_name": "dldpad",
4+
"maintainer": "danieliscrazy",
5+
"bootloader": "rp2040",
6+
"diode_direction": "COL2ROW",
7+
"features": {
8+
"bootmagic": true,
9+
"command": false,
10+
"console": false,
11+
"extrakey": true,
12+
"mousekey": true,
13+
"nkro": true
14+
},
15+
"matrix_pins": {
16+
"direct": [
17+
["GP3", "GP4", "GP2", "GP26"],
18+
["GP27", "GP28", "GP29", "NO_PIN"]
19+
]
20+
},
21+
"processor": "RP2040",
22+
"url": "",
23+
"usb": {
24+
"device_version": "1.0.0",
25+
"pid": "0x0010",
26+
"vid": "0x0F63"
27+
},
28+
"layouts": {
29+
"LAYOUT": {
30+
"layout": [
31+
{"matrix": [0, 0], "x": 0, "y": 0},
32+
{"matrix": [0, 1], "x": 1, "y": 0},
33+
{"matrix": [0, 2], "x": 2, "y": 0},
34+
{"matrix": [0, 3], "x": 3, "y": 0},
35+
{"matrix": [1, 0], "x": 0, "y": 1},
36+
{"matrix": [1, 1], "x": 1, "y": 1},
37+
{"matrix": [1, 2], "x": 2, "y": 1}
38+
]
39+
}
40+
}
41+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2023 QMK
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
enum layer_names {
7+
_LAYERER,
8+
};
9+
10+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11+
// i don't have a diagram here sorry
12+
[_LAYERER] = LAYOUT(
13+
KC_F13, KC_F14, KC_F15, KC_MUTE,
14+
KC_F16, KC_F17, KC_F18
15+
)
16+
};
17+
18+
const uint16_t PROGMEM encoder_map[][1][2] = {
19+
[0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
20+
};
21+
22+
23+
#ifdef OLED_ENABLE
24+
bool oled_task_user(void) {
25+
// Host Keyboard Layer Status
26+
oled_write_P(PSTR("Layer: "), false);
27+
28+
switch (get_highest_layer(layer_state)) {
29+
case _LAYERER:
30+
oled_write_P(PSTR("ducks are cool\n"), false);
31+
break;
32+
default:
33+
// Or use the write_ln shortcut over adding '\n' to the end of your string
34+
oled_write_ln_P(PSTR("where are the ducks"), false);
35+
}
36+
37+
// Host Keyboard LED Status
38+
led_t led_state = host_keyboard_led_state();
39+
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
40+
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
41+
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
42+
43+
return false;
44+
}
45+
#endif

hackpads/dldpad/Firmware/dldpad/keymaps/default/qmk

Whitespace-only changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# dldpad
2+
3+
![dldpad](imgur.com image replace me!)
4+
5+
*A short description of the keyboard/project*
6+
7+
* Keyboard Maintainer: [Daniel Davidson](https://github.com/danieliscrazy)
8+
* Hardware Supported: *The PCBs, controllers supported*
9+
* Hardware Availability: *Links to where you can find this hardware*
10+
11+
Make example for this keyboard (after setting up your build environment):
12+
13+
make dldpad:default
14+
15+
Flashing example for this keyboard:
16+
17+
make dldpad:default:flash
18+
19+
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
20+
21+
## Bootloader
22+
23+
Enter the bootloader in 3 ways:
24+
25+
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
26+
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
27+
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
OLED_ENABLE = yes
2+
OLED_TRANSPORT = i2c
3+
OLED_DRIVER = ssd1306
4+
5+
ENCODER_ENABLE = yes
6+
ENCODER_MAP_ENABLE = yes
7+
# required for rp2040
8+
LTO_ENABLE = yes

hackpads/dldpad/PCB/dldpad_pcb.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

hackpads/dldpad/PCB/dldpad_schematic.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)