Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dactyl_manuform_rp2040 #21538

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions keyboards/handwired/dactyl_manuform_pi_pico/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2023 Gustaw.xyz (@Gustaw.xyz)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 200U
#define SERIAL_USART_FULL_DUPLEX
#define SERIAL_USART_TX_PIN GP9
#define SERIAL_USART_RX_PIN GP8
#define RGB_MATRIX_LED_COUNT 2
#define EE_HANDS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a heads up, ee hands isn't great on ARM based boards, like this. split pin handedness is better, if you have the spare gpio. Also, split matrix handedness can also work (just needs matrix masking to be enabled so it doesn't keep it on)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pointer. I don't think I've noticed any issues using the keyboard for last month or two. Although pi pico has plenty GPIO. What would be the symtomps of this? Bacause I'm not sure if it's worth resoldering

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly, user experience. If it's working fine, that that's okay.

127 changes: 127 additions & 0 deletions keyboards/handwired/dactyl_manuform_pi_pico/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"manufacturer": "GustawXYZ",
"keyboard_name": "dactyl_manuform_pi_pico",
"maintainer": "GustawXYZ",
"bootloader": "rp2040",
"processor": "RP2040",
"url": "https://github.com/GustawXYZ/dactyl_manuform_rp2040",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"split": {
"enabled": true
},
"diode_direction": "COL2ROW",
"matrix_pins": {
"cols": ["GP10", "GP11", "GP12", "GP13", "GP14", "GP15"],
"rows": ["GP21", "GP20", "GP19", "GP18", "GP17", "GP16"]
},
"rgb_matrix": {
"driver": "WS2812",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"driver": "WS2812",
"driver": "ws2812",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! I was going to look into that in some spare time

"split_count": [1, 1],
"layout": [
{"x": 0, "y": 0.375},
{"x": 16.5, "y": 0.38}
]
},
"ws2812": {
"pin": "GP22",
"driver": "vendor"
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [0, 4], "x": 4, "y": 0},
{"matrix": [0, 5], "x": 5, "y": 0},

{"matrix": [6, 0], "x": 11, "y": 0},
{"matrix": [6, 1], "x": 12, "y": 0},
{"matrix": [6, 2], "x": 13, "y": 0},
{"matrix": [6, 3], "x": 14, "y": 0},
{"matrix": [6, 4], "x": 15, "y": 0},
{"matrix": [6, 5], "x": 16, "y": 0},

{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1},
{"matrix": [1, 4], "x": 4, "y": 1},
{"matrix": [1, 5], "x": 5, "y": 1},

{"matrix": [7, 0], "x": 11, "y": 1},
{"matrix": [7, 1], "x": 12, "y": 1},
{"matrix": [7, 2], "x": 13, "y": 1},
{"matrix": [7, 3], "x": 14, "y": 1},
{"matrix": [7, 4], "x": 15, "y": 1},
{"matrix": [7, 5], "x": 16, "y": 1},

{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "y": 2},
{"matrix": [2, 4], "x": 4, "y": 2},
{"matrix": [2, 5], "x": 5, "y": 2},

{"matrix": [8, 0], "x": 11, "y": 2},
{"matrix": [8, 1], "x": 12, "y": 2},
{"matrix": [8, 2], "x": 13, "y": 2},
{"matrix": [8, 3], "x": 14, "y": 2},
{"matrix": [8, 4], "x": 15, "y": 2},
{"matrix": [8, 5], "x": 16, "y": 2},

{"matrix": [3, 0], "x": 0, "y": 3},
{"matrix": [3, 1], "x": 1, "y": 3},
{"matrix": [3, 2], "x": 2, "y": 3},
{"matrix": [3, 3], "x": 3, "y": 3},
{"matrix": [3, 4], "x": 4, "y": 3},
{"matrix": [3, 5], "x": 5, "y": 3},

{"matrix": [9, 0], "x": 11, "y": 3},
{"matrix": [9, 1], "x": 12, "y": 3},
{"matrix": [9, 2], "x": 13, "y": 3},
{"matrix": [9, 3], "x": 14, "y": 3},
{"matrix": [9, 4], "x": 15, "y": 3},
{"matrix": [9, 5], "x": 16, "y": 3},

{"matrix": [4, 2], "x": 2, "y": 4},
{"matrix": [4, 3], "x": 3, "y": 4},

{"matrix": [10, 2], "x": 13, "y": 4},
{"matrix": [10, 3], "x": 14, "y": 4},

{"matrix": [4, 4], "x": 4, "y": 5},
{"matrix": [4, 5], "x": 5, "y": 5},

{"matrix": [10, 0], "x": 11, "y": 5},
{"matrix": [10, 1], "x": 12, "y": 5},

{"matrix": [5, 4], "x": 6, "y": 6},
{"matrix": [5, 5], "x": 7, "y": 6},

{"matrix": [11, 0], "x": 9, "y": 6},
{"matrix": [11, 1], "x": 10, "y": 6},

{"matrix": [5, 2], "x": 6, "y": 7},
{"matrix": [5, 3], "x": 7, "y": 7},

{"matrix": [11, 2], "x": 9, "y": 7},
{"matrix": [11, 3], "x": 10, "y": 7}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

enum layers {
_QWERTY,
_NUMPAD,
_ARROWS,
_MOUSE,
_GAMING,
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
C_S_T(KC_LEFT), SGUI_T(KC_RGHT), KC_LBRC, KC_RBRC,
KC_SPC, KC_ENT, TT(2), KC_BSPC,
KC_LCTL, KC_LGUI, KC_BSLS, KC_RALT,
KC_LALT, TT(_NUMPAD), KC_DEL, TO(_GAMING)),

[_NUMPAD] = LAYOUT(
KC_PWR, SGUI(KC_1), SGUI(KC_2), SGUI(KC_3), SGUI(KC_4), SGUI(KC_5), KC_HOME, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, KC_LPRN,
KC_SLEP, KC_TRNS, KC_TRNS, KC_CAPS, KC_LBRC, KC_RBRC, KC_END, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_RPRN,
KC_BRIU, KC_HOME, KC_PGDN, KC_PGUP, KC_END, SGUI(KC_E), KC_LT, KC_P4, KC_P5, KC_P6, KC_PENT, KC_PEQL,
KC_BRID, LCTL(KC_Z), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), LCTL(KC_F), KC_GT, KC_P1, KC_P2, KC_P3, KC_PCMM, KC_CALC,
TO(_MOUSE), KC_PSCR, KC_P0, KC_PDOT,
KC_TRNS, KC_TRNS, KC_TRNS, LCTL(KC_BSPC),
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, TO(_QWERTY), KC_TRNS, KC_TRNS),

[_ARROWS] = LAYOUT(
KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
KC_NUM, KC_TRNS, KC_LPRN, KC_RPRN, KC_TRNS, KC_TRNS, LCTL(KC_LEFT), LCTL(KC_DOWN), LCTL(KC_UP), LCTL(KC_RGHT), KC_CAPS, KC_NUM,
KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_GRV, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_END, KC_SCRL,
KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_TILD, KC_HOME, KC_MPLY, KC_MPRV, KC_MNXT, KC_MUTE, KC_INS,
KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU,
LALT(KC_SPC), LGUI(KC_ENT), TO(_QWERTY), KC_TRNS,
KC_TRNS, LGUI(KC_SPC), KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),

[_MOUSE] = LAYOUT(
KC_ACL0, KC_NO, KC_BTN4, KC_BTN3, KC_BTN5, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT,
KC_ACL1, KC_NO, KC_BTN1, KC_MS_U, KC_BTN2, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_ACL2, KC_NO, KC_MS_L, KC_MS_D, KC_MS_R, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_NO, KC_NO, KC_WH_L, KC_WH_U, KC_WH_D, KC_WH_R, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_NO, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, TO(_QWERTY), KC_TRNS, TO(_QWERTY)),

[_GAMING] = LAYOUT(
KC_6, KC_1, KC_2, KC_3, KC_4, KC_5, KC_HOME, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, KC_LPRN,
KC_7, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_END, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_RPRN,
KC_ESC, KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_LT, KC_P4, KC_P5, KC_P6, KC_PENT, KC_PEQL,
KC_8, KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_GT, KC_P1, KC_P2, KC_P3, KC_PCMM, KC_CALC,
KC_9, KC_0, KC_P0, KC_PDOT,
KC_SPC, KC_ENT, KC_TRNS, KC_TRNS,
KC_G, KC_M, KC_TRNS, KC_TRNS,
KC_LALT, TO(_QWERTY), KC_TRNS, TO(_QWERTY))
};
32 changes: 32 additions & 0 deletions keyboards/handwired/dactyl_manuform_pi_pico/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# dactyl_manuform_pi_pico

![dactyl_manuform_pi_pico](https://github.com/GustawXYZ/dactyl_manuform_rp2040/blob/main/images/overview.jpg?raw=true)

This is a dactyl_manuform 5x6 running Rasrberry Pi Pico.
It's based on alcor_dactyl but with more reasonable GPIO layout for Pi Pico
and clasic dactyl_manuform layout (pinkies have only 4 rows).

Build instructions[WIP]: https://github.com/GustawXYZ/dactyl_manuform_rp2040/

* Keyboard Maintainer: [Gustaw.xyz](https://github.com/Gustaw.xyz)
* Hardware Supported: Raspberry Pi Pico and other RP2040
* Hardware Availability: https://www.raspberrypi.com/products/raspberry-pi-pico/
* 3D Print model: https://github.com/abstracthat/dactyl-manuform

Make example for this keyboard (after setting up your build environment):

make dactyl_manuform_pi_pico:default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
make dactyl_manuform_pi_pico:default
make handwired/dactyl_manuform_pi_pico:default


Flashing example for this keyboard:

make dactyl_manuform_pi_pico:default:flash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
make dactyl_manuform_pi_pico:default:flash
make handwired/dactyl_manuform_pi_pico:default:flash


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).

## Bootloader

Enter the bootloader in 3 ways:

* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
1 change: 1 addition & 0 deletions keyboards/handwired/dactyl_manuform_pi_pico/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SERIAL_DRIVER = vendor