aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorRalph Azucena <ralphie02@users.noreply.github.com>2020-12-06 10:11:59 -0800
committerGitHub <noreply@github.com>2020-12-06 10:11:59 -0800
commitdf3a81b31ea608836670e4222ae5ba8507cc147c (patch)
treec6a3753862060a9edc02a9001974baf9a95efa42 /keyboards
parentf1b082320eb5cb5430ce4bcb536a56d9227e2e8a (diff)
downloadqmk_firmware-df3a81b31ea608836670e4222ae5ba8507cc147c.tar.gz
qmk_firmware-df3a81b31ea608836670e4222ae5ba8507cc147c.zip
[Keyboard] Added a dactyl promicro rah (#10889)
* Added a dactyl promicro with a slightly different 6x6 layout * updated keyboard layout * Removed description as per code review * refactored as per code review * removed redundant config.h file * removed and updated a couple of lines in rules.mk * replaced symlink with copy of file * removed lines in readme * Update readme.md Co-authored-by: ralphie02 <ralph.azucena@carbon60.com>
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/handwired/dactyl_rah/config.h78
-rw-r--r--keyboards/handwired/dactyl_rah/dactyl_rah.c16
-rw-r--r--keyboards/handwired/dactyl_rah/dactyl_rah.h44
-rw-r--r--keyboards/handwired/dactyl_rah/info.json83
-rw-r--r--keyboards/handwired/dactyl_rah/keymaps/default/keymap.c47
-rw-r--r--keyboards/handwired/dactyl_rah/keymaps/right/config.h19
-rw-r--r--keyboards/handwired/dactyl_rah/keymaps/right/keymap.c47
-rw-r--r--keyboards/handwired/dactyl_rah/readme.md1
-rw-r--r--keyboards/handwired/dactyl_rah/rules.mk23
9 files changed, 358 insertions, 0 deletions
diff --git a/keyboards/handwired/dactyl_rah/config.h b/keyboards/handwired/dactyl_rah/config.h
new file mode 100644
index 000000000..2ffe4e8a5
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/config.h
@@ -0,0 +1,78 @@
1/*
2Copyright 2020 Ralph Azucena <ralphie02@live.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x3060
25#define DEVICE_VER 0x0001
26#define MANUFACTURER ralphie02
27#define PRODUCT DACTYL_RAH
28
29/* key matrix size */
30// Rows are doubled-up
31#define MATRIX_ROWS 12
32#define MATRIX_COLS 6
33
34// wiring of each half
35#define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 }
36#define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 }
37
38#define DIODE_DIRECTION COL2ROW
39
40/* mouse config */
41#define MOUSEKEY_DELAY 0
42// Lowering MOUSEKEY_INTERVAL raises the cursor speed significantly, you may want to lower MOUSEKEY_MAX_SPEED (default: 10)
43#define MOUSEKEY_INTERVAL 20
44#define MOUSEKEY_MAX_SPEED 7
45#define MOUSEKEY_WHEEL_DELAY 0
46
47/* layer config */
48#define TAPPING_TOGGLE 1
49
50/* serial.c configuration for split keyboard */
51#define SOFT_SERIAL_PIN D0
52
53/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
54#define LOCKING_SUPPORT_ENABLE
55
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59/* Enables This makes it easier for fast typists to use dual-function keys */
60#define PERMISSIVE_HOLD
61
62// Feature disable options
63// These options are also useful to firmware size reduction.
64
65/* disable print */
66// #define NO_DEBUG
67// #define NO_PRINT
68
69/* disable action features */
70//#define NO_ACTION_LAYER
71//#define NO_ACTION_TAPPING
72//#define NO_ACTION_ONESHOT
73
74
75/* disable these deprecated features by default */
76#define NO_ACTION_MACRO
77#define NO_ACTION_FUNCTION
78
diff --git a/keyboards/handwired/dactyl_rah/dactyl_rah.c b/keyboards/handwired/dactyl_rah/dactyl_rah.c
new file mode 100644
index 000000000..0058d8799
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/dactyl_rah.c
@@ -0,0 +1,16 @@
1 /* Copyright 2020 Ralph Azucena <ralphie02@live.com>
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 2 of the License, or
5 * (at your option) any later version.
6 *
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 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16#include "dactyl_rah.h"
diff --git a/keyboards/handwired/dactyl_rah/dactyl_rah.h b/keyboards/handwired/dactyl_rah/dactyl_rah.h
new file mode 100644
index 000000000..27302d3e2
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/dactyl_rah.h
@@ -0,0 +1,44 @@
1 /* Copyright 2020 Ralph Azucena <ralphie02@live.com>
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 2 of the License, or
5 * (at your option) any later version.
6 *
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 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16#pragma once
17
18#include "quantum.h"
19
20#define LAYOUT_6x6(\
21 L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
22 L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
23 L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
24 L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \
25 L40, L41, L42, L43, L44, R41, R42, R43, R44, R45, \
26 L55, L54, R51, R50, \
27 L53, R52, \
28 L50, L51, L52, R53, R54, R55 \
29 )\
30 {\
31 { L00, L01, L02, L03, L04, L05 }, \
32 { L10, L11, L12, L13, L14, L15 }, \
33 { L20, L21, L22, L23, L24, L25 }, \
34 { L30, L31, L32, L33, L34, L35 }, \
35 { L40, L41, L42, L43, L44, KC_NO }, \
36 { L50, L51, L52, L53, L54, L55 }, \
37 \
38 { R00, R01, R02, R03, R04, R05 }, \
39 { R10, R11, R12, R13, R14, R15 }, \
40 { R20, R21, R22, R23, R24, R25 }, \
41 { R30, R31, R32, R33, R34, R35 }, \
42 { KC_NO, R41, R42, R43, R44, R45 }, \
43 { R50, R51, R52, R53, R54, R55 } \
44}
diff --git a/keyboards/handwired/dactyl_rah/info.json b/keyboards/handwired/dactyl_rah/info.json
new file mode 100644
index 000000000..7841988d0
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/info.json
@@ -0,0 +1,83 @@
1{
2 "keyboard_name": "Dactyl RAH",
3 "url": "https://qmk.fm/keyboards/",
4 "maintainer": "ralphie02",
5 "width": 17,
6 "height": 8,
7 "layouts": {
8 "LAYOUT_6x6": {
9 "layout": [
10 {"label":"L00", "x":0, "y":0},
11 {"label":"L01", "x":1, "y":0},
12 {"label":"L02", "x":2, "y":0},
13 {"label":"L03", "x":3, "y":0},
14 {"label":"L04", "x":4, "y":0},
15 {"label":"L05", "x":5, "y":0},
16 {"label":"R00", "x":11, "y":0},
17 {"label":"R01", "x":12, "y":0},
18 {"label":"R02", "x":13, "y":0},
19 {"label":"R03", "x":14, "y":0},
20 {"label":"R04", "x":15, "y":0},
21 {"label":"R05", "x":16, "y":0},
22 {"label":"L10", "x":0, "y":1},
23 {"label":"L11", "x":1, "y":1},
24 {"label":"L12", "x":2, "y":1},
25 {"label":"L13", "x":3, "y":1},
26 {"label":"L14", "x":4, "y":1},
27 {"label":"L15", "x":5, "y":1},
28 {"label":"R10", "x":11, "y":1},
29 {"label":"R11", "x":12, "y":1},
30 {"label":"R12", "x":13, "y":1},
31 {"label":"R13", "x":14, "y":1},
32 {"label":"R14", "x":15, "y":1},
33 {"label":"R15", "x":16, "y":1},
34 {"label":"L20", "x":0, "y":2},
35 {"label":"L21", "x":1, "y":2},
36 {"label":"L22", "x":2, "y":2},
37 {"label":"L23", "x":3, "y":2},
38 {"label":"L24", "x":4, "y":2},
39 {"label":"L25", "x":5, "y":2},
40 {"label":"R20", "x":11, "y":2},
41 {"label":"R21", "x":12, "y":2},
42 {"label":"R22", "x":13, "y":2},
43 {"label":"R23", "x":14, "y":2},
44 {"label":"R24", "x":15, "y":2},
45 {"label":"R25", "x":16, "y":2},
46 {"label":"L30", "x":0, "y":3},
47 {"label":"L31", "x":1, "y":3},
48 {"label":"L32", "x":2, "y":3},
49 {"label":"L33", "x":3, "y":3},
50 {"label":"L34", "x":4, "y":3},
51 {"label":"L35", "x":5, "y":3},
52 {"label":"R30", "x":11, "y":3},
53 {"label":"R31", "x":12, "y":3},
54 {"label":"R32", "x":13, "y":3},
55 {"label":"R33", "x":14, "y":3},
56 {"label":"R34", "x":15, "y":3},
57 {"label":"R35", "x":16, "y":3},
58 {"label":"L40", "x":0, "y":4},
59 {"label":"L41", "x":1, "y":4},
60 {"label":"L42", "x":2, "y":4},
61 {"label":"L43", "x":3, "y":4},
62 {"label":"L44", "x":4, "y":4},
63 {"label":"R41", "x":12, "y":4},
64 {"label":"R42", "x":13, "y":4},
65 {"label":"R43", "x":14, "y":4},
66 {"label":"R44", "x":15, "y":4},
67 {"label":"R45", "x":16, "y":4},
68 {"label":"L55", "x":6, "y":5},
69 {"label":"L54", "x":7, "y":5},
70 {"label":"R51", "x":9, "y":5},
71 {"label":"R50", "x":10, "y":5},
72 {"label":"L53", "x":7, "y":6},
73 {"label":"R52", "x":9, "y":6},
74 {"label":"L50", "x":5, "y":7, "h":2},
75 {"label":"L51", "x":6, "y":7, "h":2},
76 {"label":"L52", "x":7, "y":7},
77 {"label":"R53", "x":9, "y":7},
78 {"label":"R54", "x":10, "y":7, "h":2},
79 {"label":"R55", "x":11, "y":7, "h":2}
80 ]
81 }
82 }
83}
diff --git a/keyboards/handwired/dactyl_rah/keymaps/default/keymap.c b/keyboards/handwired/dactyl_rah/keymaps/default/keymap.c
new file mode 100644
index 000000000..6b07051c4
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/keymaps/default/keymap.c
@@ -0,0 +1,47 @@
1 /* Copyright 2020 Ralph Azucena <ralphie02@live.com>
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 2 of the License, or
5 * (at your option) any later version.
6 *
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 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16#include QMK_KEYBOARD_H
17
18#define BASE 0
19#define NAV 1
20
21#define CTL_ESC LCTL_T(KC_ESC)
22#define CTL_CAP LCTL_T(KC_CAPS)
23#define ALT_BSP LALT_T(KC_BSPC)
24#define LT_SCLN LT(NAV, KC_SCLN)
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 [BASE] = LAYOUT_6x6(
28 KC_GRV , KC_1 ,KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 ,KC_HOME,
29 KC_TAB , KC_Q ,KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P ,KC_BSLS,
30 CTL_CAP, KC_A ,KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L ,LT_SCLN,KC_QUOT,
31 KC_LSFT, KC_Z ,KC_X , KC_C , KC_V , KC_B , KC_N , KC_M ,KC_COMM, KC_DOT,KC_SLSH,KC_RSFT,
32 CTL_ESC,KC_MINS,KC_EQL ,KC_LBRC,KC_RBRC, KC_LEFT,KC_DOWN, KC_UP ,KC_RGHT,KC_END ,
33 TT(NAV),KC_DEL , KC_PGUP,KC_RCTL,
34 KC_LGUI, KC_PGDN,
35 KC_BSPC,CTL_ESC,KC_LALT, KC_RALT,KC_ENT ,KC_SPC
36 ),
37 [NAV] = LAYOUT_6x6(
38 RESET , KC_NO ,KC_MPRV,KC_MPLY,KC_MNXT, KC_NO , KC_BRIU, KC_7 , KC_8 , KC_9 , KC_NO , RESET ,
39 _______,KC_VOLU,KC_WBAK,KC_MS_U,KC_WFWD,KC_WH_U, KC_BRID, KC_4 , KC_5 , KC_6 , KC_NO , KC_F9 ,
40 _______,KC_VOLD,KC_MS_L,KC_MS_D,KC_MS_R,KC_WH_D, KC_PPLS, KC_1 , KC_2 , KC_3 ,KC_PMNS, KC_F10,
41 KC_NO , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_NO , KC_PAST, KC_0 , KC_NO ,_______,KC_PSLS, KC_F11,
42 _______, KC_F5 , KC_F6 , KC_F7 , KC_F8 , _______,_______,_______,_______, KC_F12,
43 _______,_______, KC_HOME,_______,
44 _______, KC_END ,
45 KC_BTN1,KC_BTN2,_______, ALT_BSP,_______,_______
46 )
47};
diff --git a/keyboards/handwired/dactyl_rah/keymaps/right/config.h b/keyboards/handwired/dactyl_rah/keymaps/right/config.h
new file mode 100644
index 000000000..faac5d116
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/keymaps/right/config.h
@@ -0,0 +1,19 @@
1/*
2Copyright 2020 Ralph Azucena <ralphie02@live.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19#define MASTER_RIGHT
diff --git a/keyboards/handwired/dactyl_rah/keymaps/right/keymap.c b/keyboards/handwired/dactyl_rah/keymaps/right/keymap.c
new file mode 100644
index 000000000..6b07051c4
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/keymaps/right/keymap.c
@@ -0,0 +1,47 @@
1 /* Copyright 2020 Ralph Azucena <ralphie02@live.com>
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 2 of the License, or
5 * (at your option) any later version.
6 *
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 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16#include QMK_KEYBOARD_H
17
18#define BASE 0
19#define NAV 1
20
21#define CTL_ESC LCTL_T(KC_ESC)
22#define CTL_CAP LCTL_T(KC_CAPS)
23#define ALT_BSP LALT_T(KC_BSPC)
24#define LT_SCLN LT(NAV, KC_SCLN)
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 [BASE] = LAYOUT_6x6(
28 KC_GRV , KC_1 ,KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 ,KC_HOME,
29 KC_TAB , KC_Q ,KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P ,KC_BSLS,
30 CTL_CAP, KC_A ,KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L ,LT_SCLN,KC_QUOT,
31 KC_LSFT, KC_Z ,KC_X , KC_C , KC_V , KC_B , KC_N , KC_M ,KC_COMM, KC_DOT,KC_SLSH,KC_RSFT,
32 CTL_ESC,KC_MINS,KC_EQL ,KC_LBRC,KC_RBRC, KC_LEFT,KC_DOWN, KC_UP ,KC_RGHT,KC_END ,
33 TT(NAV),KC_DEL , KC_PGUP,KC_RCTL,
34 KC_LGUI, KC_PGDN,
35 KC_BSPC,CTL_ESC,KC_LALT, KC_RALT,KC_ENT ,KC_SPC
36 ),
37 [NAV] = LAYOUT_6x6(
38 RESET , KC_NO ,KC_MPRV,KC_MPLY,KC_MNXT, KC_NO , KC_BRIU, KC_7 , KC_8 , KC_9 , KC_NO , RESET ,
39 _______,KC_VOLU,KC_WBAK,KC_MS_U,KC_WFWD,KC_WH_U, KC_BRID, KC_4 , KC_5 , KC_6 , KC_NO , KC_F9 ,
40 _______,KC_VOLD,KC_MS_L,KC_MS_D,KC_MS_R,KC_WH_D, KC_PPLS, KC_1 , KC_2 , KC_3 ,KC_PMNS, KC_F10,
41 KC_NO , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_NO , KC_PAST, KC_0 , KC_NO ,_______,KC_PSLS, KC_F11,
42 _______, KC_F5 , KC_F6 , KC_F7 , KC_F8 , _______,_______,_______,_______, KC_F12,
43 _______,_______, KC_HOME,_______,
44 _______, KC_END ,
45 KC_BTN1,KC_BTN2,_______, ALT_BSP,_______,_______
46 )
47};
diff --git a/keyboards/handwired/dactyl_rah/readme.md b/keyboards/handwired/dactyl_rah/readme.md
new file mode 100644
index 000000000..5c351de97
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/readme.md
@@ -0,0 +1 @@
For reference, visite dactyl_micro [readme](https://github.com/qmk/qmk_firmware/blob/master/keyboards/handwired/dactyl_promicro/readme.md)
diff --git a/keyboards/handwired/dactyl_rah/rules.mk b/keyboards/handwired/dactyl_rah/rules.mk
new file mode 100644
index 000000000..9a9bf7d69
--- /dev/null
+++ b/keyboards/handwired/dactyl_rah/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
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 = yes # 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
23SPLIT_KEYBOARD = yes