diff options
author | pabile <1162412+pabile@users.noreply.github.com> | 2020-09-20 08:42:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 17:42:56 -0700 |
commit | 741856dd57735dcd143987eb954ecc4a5ca2fc96 (patch) | |
tree | 73fbb30771ea59f8a5a3bad546d673cd744d6490 /keyboards/pabile | |
parent | 3abb60934886289725a18c7ea96b246e70f7af3a (diff) | |
download | qmk_firmware-741856dd57735dcd143987eb954ecc4a5ca2fc96.tar.gz qmk_firmware-741856dd57735dcd143987eb954ecc4a5ca2fc96.zip |
[Keyboard] add P40 Ortho, P42, and P20 ver2 by pabile (#9980)
* Add files via upload
* removed
* Add files via upload
* Rename pabile40.c to p40.c
* Rename pabile40.h to p40.h
* Add files via upload
* Update p40.c
* Update p40.h
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Updated readme file
* Updated readme file
* Add files via upload
* modified: keyboards/pabile/p18/config.h
modified: keyboards/pabile/p18/keymaps/default/keymap.c
modified: keyboards/pabile/p18/p18.h
modified: keyboards/pabile/p18/rules.mk
modified: keyboards/pabile/p40/config.h
modified: keyboards/pabile/p40/keymaps/default/keymap.c
* config update
* Delete README.md.save
* Delete keymap.c.save
* Delete keymaps.c
* modified: keyboards/pabile/p18/keymaps/default/keymap.c
* Update p18.h
* testing layout config
* Create info.json
* Create info.json
* Create readme.md
* Update readme.md
* Updated description
* Updated description
* Update config.h
updated vendor ID to 0000
* Update keymap.c
removed unnecessary comments
* Update keyboards/pabile/p18/p18.h
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p18/p18.h
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update p18.h
removed unnecessary comments
* Update keyboards/pabile/p18/rules.mk
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p18/rules.mk
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update config.h
updated vendor id and removed unnecessary comments
* Update keyboards/pabile/p40/info.json
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p40/keymaps/default/keymap.c
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p40/p40.h
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p40/p40.h
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p40/p40.h
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p40/rules.mk
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Update keyboards/pabile/p40/rules.mk
Co-Authored-By: ridingqwerty <george.g.koenig@gmail.com>
* Added p20 macropad
* Update README.md
* Updated VID and PID
* Updated VID and PID
* Update rules.mk
* Update config.h
* Update config.h
* Update config.h
* Update keymap.c
* Replaced blank keys with KC_NO
* Update keyboards/pabile/p18/keymaps/default/keymap.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p18/p18.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p18/rules.mk
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p20/keymaps/default/keymap.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keymap.c
* Update keymap.c
* Update keyboards/pabile/p20/rules.mk
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p40/info.json
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p20/p20.h
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Updated product ID
* Updated product ID
* Update keyboards/pabile/p20/config.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/p20.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/p20.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p18/readme.md
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/README.md
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40/README.md
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p18/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p18/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40/config.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40/config.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p18/readme.md
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Changed to lowercase filename
* Rename README.md to readme.md
* Update keyboards/pabile/p18/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Add files via upload
* typo
* New keyboard
* Updated image link
* Updated default ortho keymap
* Update keymap.c
* Update readme.md
* Update keymap.c
* Update keymap.c
* default firmware
* Delete pabile_p40_ortho.hex
* Update keymap.c
added KC_SPC to make keymap compatible with both grid and MIT. keymap is designed for MIT.
* Update keymap.c
* Update info.json
added MIT layout
* Update p40.h
added MIT layout option
* Added support for version 2 PCB
New/corrected pin locations. (Backlight) LED pin now on B6. Up to 3 rotary encoder support.
* Update readme.md
update for PCB v2
* Update readme.md
updated link
* Update readme.md
* Update readme.md
* Update readme.md
* Update config.h
removed backlight pins
* Update keymap.c
added encoder. simplified layout.
* Update keymap.c
* Update p42.h
* Update keymap.c
simplified
* Update keymap.c
* Update readme.md
replaced photo
* Added new keyboard
Initially placed under p40. separated as a new keyboard following an advise from gh.
* start rename
* removed old folder
* reverted to last merge
* revert to last merge
* Update p40.h
reverted to last merge
* Update keymap.c
* Update keymap.c
removed encoder support
* Update config.h
removed encoder support
* Update config.h
removed encoder support
* Update keymap.c
removed encoder support
* Update readme.md
removed encoder support
* Update info.json
* Update keymap.c
* Update keymap.c
* Update keyboards/pabile/p20/rules.mk
added numpad option
Co-authored-by: Drashna Jaelre <drashna@live.com>
* added numpad option
* Update keyboards/pabile/p40/keymaps/ortho/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p18/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p20/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* moved to p40_ortho keyboard rather than a keymap
* moved to p40_ortho keyboard rather than a keymap
* moved to p40_ortho keyboard rather than a keymap
* Update config.h
Added copyright details.
* Update keyboards/pabile/p20/p20.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p20/p20.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keymap.c
alignment
* Update keyboards/pabile/p42/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/config.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/info.json
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/p42.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/p40_ortho.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/p40_ortho.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/info.json
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/config.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p40_ortho/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p20/keymaps/ver2/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update config.h
Added copyright statement
* Update config.h
Added copyright statement
* Update config.h
Added license header
* Update keymap.c
Added license header
* Update p20.h
Added license header
* Update p40_ortho.c
Added license header
* Update p40_ortho.h
Added license header
* Update keymap.c
Added license header
* Update keyboards/pabile/p42/rules.mk
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keymap.c
Updated LAYOUT to LAYOUT_default in response to Run failed: PR Lint keyboards - master (0f278a2)
* Update p42.h
Updated LAYOUT to LAYOUT_default in response to Run failed: PR Lint keyboards - master (0f278a2)
* Update p42.h
Added license header
* Update keyboards/pabile/p42/p42.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/pabile/p42/keymaps/default/keymap.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* add pabile/p20/ver2
* add missing license header
* Update keyboards/pabile/p20/ver2/keymaps/default/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/pabile/p20/ver1/ver1.c
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: root <root@HP8200.localdomain>
Co-authored-by: ridingqwerty <george.g.koenig@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'keyboards/pabile')
32 files changed, 774 insertions, 104 deletions
diff --git a/keyboards/pabile/p18/config.h b/keyboards/pabile/p18/config.h index f7c258a56..d8d5a95f2 100644 --- a/keyboards/pabile/p18/config.h +++ b/keyboards/pabile/p18/config.h | |||
@@ -1,3 +1,21 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | |||
1 | #pragma once | 19 | #pragma once |
2 | 20 | ||
3 | #include "config_common.h" | 21 | #include "config_common.h" |
diff --git a/keyboards/pabile/p20/config.h b/keyboards/pabile/p20/config.h deleted file mode 100644 index 8a52c1bf1..000000000 --- a/keyboards/pabile/p20/config.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | /* USB Device descriptor parameter */ | ||
6 | #define VENDOR_ID 0x6666 | ||
7 | #define PRODUCT_ID 0x6667 | ||
8 | #define DEVICE_VER 0x0001 | ||
9 | #define MANUFACTURER Pabile | ||
10 | #define PRODUCT P20 | ||
11 | #define DESCRIPTION 5x4 Macropad | ||
12 | |||
13 | /* key matrix size */ | ||
14 | #define MATRIX_ROWS 5 | ||
15 | #define MATRIX_COLS 4 | ||
16 | |||
17 | /* pin-out */ | ||
18 | #define MATRIX_ROW_PINS { B3, B4, B5, D7, E6 } | ||
19 | #define MATRIX_COL_PINS { D0, B2, D4, B6 } | ||
20 | #define UNUSED_PINS | ||
21 | |||
22 | #define ENCODERS_PAD_A { F5, F7 } | ||
23 | #define ENCODERS_PAD_B { F6, B1 } | ||
24 | |||
25 | /* COL2ROW or ROW2COL */ | ||
26 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/pabile/p20/p20.c b/keyboards/pabile/p20/p20.c deleted file mode 100644 index c17efac9b..000000000 --- a/keyboards/pabile/p20/p20.c +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | #include "p20.h" | ||
diff --git a/keyboards/pabile/p20/p20.h b/keyboards/pabile/p20/p20.h deleted file mode 100644 index b7467dc15..000000000 --- a/keyboards/pabile/p20/p20.h +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | #define LAYOUT_ortho_5x4( \ | ||
6 | k00, k01, k02, k03, \ | ||
7 | k10, k11, k12, k13, \ | ||
8 | k20, k21, k22, k23, \ | ||
9 | k30, k31, k32, k33, \ | ||
10 | k40, k41, k42, k43 \ | ||
11 | ) \ | ||
12 | { \ | ||
13 | {k00, k01, k02, k03}, \ | ||
14 | {k10, k11, k12, k13}, \ | ||
15 | {k20, k21, k22, k23}, \ | ||
16 | {k30, k31, k32, k33}, \ | ||
17 | {k40, k41, k42, k43} \ | ||
18 | } | ||
diff --git a/keyboards/pabile/p20/readme.md b/keyboards/pabile/p20/readme.md index 256a4772e..e94005b0d 100644 --- a/keyboards/pabile/p20/readme.md +++ b/keyboards/pabile/p20/readme.md | |||
@@ -1,16 +1,16 @@ | |||
1 | # P20 | 1 | # P20 |
2 | 2 | ||
3 |  | 3 |  |
4 |  | ||
5 | 4 | ||
6 | A 5x4 grid keyboard with 2 rotary encoders. | 5 | A 5x4 grid macro numeric pad with up to 3 optional rotary encoders. |
7 | 6 | ||
8 | * Keyboard Maintainer: [pabile](https://github.com/pabile) | 7 | * Keyboard Maintainer: [pabile](https://github.com/pabile) |
9 | * Hardware Supported: Pabile P20 PCB, Pro Micro | 8 | * Hardware Supported: Pabile P20 PCB, Pro Micro, Rotary Encoders, Alps/MX Switches |
10 | * Hardware Availability: [Info at pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/pabile20) | 9 | * Hardware Availability: [pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/p20) |
11 | 10 | ||
12 | Make example for this keyboard (after setting up your build environment): | 11 | Make example for this keyboard (after setting up your build environment): |
13 | 12 | ||
14 | make pabile/p20:default | 13 | make pabile/p20/ver1:default # for ver1 |
14 | make pabile/p20/ver2:default # for ver2 | ||
15 | 15 | ||
16 | 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). | 16 | 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). |
diff --git a/keyboards/pabile/p20/ver1/config.h b/keyboards/pabile/p20/ver1/config.h new file mode 100644 index 000000000..94c600106 --- /dev/null +++ b/keyboards/pabile/p20/ver1/config.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0x6666 | ||
24 | #define PRODUCT_ID 0x6667 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Pabile | ||
27 | #define PRODUCT P20 ver1 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 4 | ||
32 | |||
33 | /* pin-out */ | ||
34 | #define MATRIX_ROW_PINS { B3, B4, B5, D7, E6 } | ||
35 | #define MATRIX_COL_PINS { D0, B2, D4, B6 } | ||
36 | #define UNUSED_PINS | ||
37 | |||
38 | #define ENCODERS_PAD_A { F5, F7 } | ||
39 | #define ENCODERS_PAD_B { F6, B1 } | ||
40 | |||
41 | /* COL2ROW or ROW2COL */ | ||
42 | #define DIODE_DIRECTION COL2ROW \ No newline at end of file | ||
diff --git a/keyboards/pabile/p20/keymaps/default/keymap.c b/keyboards/pabile/p20/ver1/keymaps/default/keymap.c index 6b815e72e..6b815e72e 100644 --- a/keyboards/pabile/p20/keymaps/default/keymap.c +++ b/keyboards/pabile/p20/ver1/keymaps/default/keymap.c | |||
diff --git a/keyboards/pabile/p20/rules.mk b/keyboards/pabile/p20/ver1/rules.mk index d4fa25323..d8e01b847 100644 --- a/keyboards/pabile/p20/rules.mk +++ b/keyboards/pabile/p20/ver1/rules.mk | |||
@@ -2,13 +2,6 @@ | |||
2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
3 | 3 | ||
4 | # Bootloader selection | 4 | # Bootloader selection |
5 | # Teensy halfkay | ||
6 | # Pro Micro caterina | ||
7 | # Atmel DFU atmel-dfu | ||
8 | # LUFA DFU lufa-dfu | ||
9 | # QMK DFU qmk-dfu | ||
10 | # ATmega32A bootloadHID | ||
11 | # ATmega328P USBasp | ||
12 | BOOTLOADER = caterina | 5 | BOOTLOADER = caterina |
13 | 6 | ||
14 | # Build Options | 7 | # Build Options |
@@ -25,13 +18,11 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |||
25 | NKRO_ENABLE = no # USB Nkey Rollover | 18 | NKRO_ENABLE = no # USB Nkey Rollover |
26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
27 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
28 | MIDI_ENABLE = no # MIDI support | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 22 | AUDIO_ENABLE = no # Audio output |
30 | AUDIO_ENABLE = no # Audio output on port C6 | 23 | |
31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
33 | UNICODE_ENABLE = yes # Unicode | 24 | UNICODE_ENABLE = yes # Unicode |
34 | IOS_DEVICE_ENABLE = no # connect to IOS Device | 25 | IOS_DEVICE_ENABLE = no # connect to IOS Device |
35 | ENCODER_ENABLE = yes | 26 | ENCODER_ENABLE = yes |
36 | 27 | ||
37 | LAYOUTS = ortho_5x4 | 28 | LAYOUTS = ortho_5x4 numpad_5x4 |
diff --git a/keyboards/pabile/p20/ver1/ver1.c b/keyboards/pabile/p20/ver1/ver1.c new file mode 100644 index 000000000..65e11630b --- /dev/null +++ b/keyboards/pabile/p20/ver1/ver1.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include "ver1.h" | ||
diff --git a/keyboards/pabile/p20/ver1/ver1.h b/keyboards/pabile/p20/ver1/ver1.h new file mode 100644 index 000000000..36ec781fa --- /dev/null +++ b/keyboards/pabile/p20/ver1/ver1.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | #define LAYOUT_ortho_5x4( \ | ||
23 | k00, k01, k02, k03, \ | ||
24 | k10, k11, k12, k13, \ | ||
25 | k20, k21, k22, k23, \ | ||
26 | k30, k31, k32, k33, \ | ||
27 | k40, k41, k42, k43 \ | ||
28 | ) \ | ||
29 | { \ | ||
30 | {k00, k01, k02, k03}, \ | ||
31 | {k10, k11, k12, k13}, \ | ||
32 | {k20, k21, k22, k23}, \ | ||
33 | {k30, k31, k32, k33}, \ | ||
34 | {k40, k41, k42, k43} \ | ||
35 | } | ||
36 | |||
37 | #define LAYOUT_numpad_5x4( \ | ||
38 | k00, k01, k02, k03, \ | ||
39 | k10, k11, k12, \ | ||
40 | k20, k21, k22, k23, \ | ||
41 | k30, k31, k32, \ | ||
42 | k40, k42, k43 \ | ||
43 | ) \ | ||
44 | { \ | ||
45 | {k00, k01, k02, k03}, \ | ||
46 | {k10, k11, k12, KC_NO}, \ | ||
47 | {k20, k21, k22, k23}, \ | ||
48 | {k30, k31, k32, KC_NO}, \ | ||
49 | {k40, KC_NO, k42, k43} \ | ||
50 | } | ||
diff --git a/keyboards/pabile/p20/ver2/config.h b/keyboards/pabile/p20/ver2/config.h new file mode 100644 index 000000000..099700183 --- /dev/null +++ b/keyboards/pabile/p20/ver2/config.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0x6666 | ||
24 | #define PRODUCT_ID 0x6667 | ||
25 | #define DEVICE_VER 0x0002 | ||
26 | #define MANUFACTURER Pabile | ||
27 | #define PRODUCT P20 ver2 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 4 | ||
32 | |||
33 | /* pin-out */ | ||
34 | #define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 } | ||
35 | #define MATRIX_COL_PINS { D1, D0, D4, B2 } | ||
36 | #define UNUSED_PINS | ||
37 | |||
38 | /* COL2ROW or ROW2COL */ | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/pabile/p20/ver2/keymaps/default/keymap.c b/keyboards/pabile/p20/ver2/keymaps/default/keymap.c new file mode 100644 index 000000000..2c2af0da8 --- /dev/null +++ b/keyboards/pabile/p20/ver2/keymaps/default/keymap.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | enum custom_keycodes { | ||
21 | DBLZERO = SAFE_RANGE, | ||
22 | }; | ||
23 | |||
24 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
25 | switch (keycode) { | ||
26 | case DBLZERO: | ||
27 | if (record->event.pressed) { | ||
28 | tap_code(KC_P0); | ||
29 | tap_code(KC_P0); | ||
30 | } | ||
31 | break; | ||
32 | } | ||
33 | return true; | ||
34 | }; | ||
35 | |||
36 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
37 | [0] = LAYOUT_ortho_5x4( | ||
38 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
39 | KC_P7, KC_P8, KC_P9, KC_TAB, | ||
40 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
41 | KC_P1, KC_P2, KC_P3, KC_DEL, | ||
42 | KC_P0, DBLZERO, KC_PDOT, KC_PENT) | ||
43 | }; | ||
diff --git a/keyboards/pabile/p20/ver2/rules.mk b/keyboards/pabile/p20/ver2/rules.mk new file mode 100644 index 000000000..da59201fc --- /dev/null +++ b/keyboards/pabile/p20/ver2/rules.mk | |||
@@ -0,0 +1,28 @@ | |||
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 # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_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 | ||
18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | |||
24 | UNICODE_ENABLE = yes # Unicode | ||
25 | IOS_DEVICE_ENABLE = no # connect to IOS Device | ||
26 | ENCODER_ENABLE = no | ||
27 | |||
28 | LAYOUTS = ortho_5x4 numpad_5x4 | ||
diff --git a/keyboards/pabile/p20/ver2/ver2.c b/keyboards/pabile/p20/ver2/ver2.c new file mode 100644 index 000000000..fa7e1f2e3 --- /dev/null +++ b/keyboards/pabile/p20/ver2/ver2.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include "ver2.h" | ||
diff --git a/keyboards/pabile/p20/ver2/ver2.h b/keyboards/pabile/p20/ver2/ver2.h new file mode 100644 index 000000000..36ec781fa --- /dev/null +++ b/keyboards/pabile/p20/ver2/ver2.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | #define LAYOUT_ortho_5x4( \ | ||
23 | k00, k01, k02, k03, \ | ||
24 | k10, k11, k12, k13, \ | ||
25 | k20, k21, k22, k23, \ | ||
26 | k30, k31, k32, k33, \ | ||
27 | k40, k41, k42, k43 \ | ||
28 | ) \ | ||
29 | { \ | ||
30 | {k00, k01, k02, k03}, \ | ||
31 | {k10, k11, k12, k13}, \ | ||
32 | {k20, k21, k22, k23}, \ | ||
33 | {k30, k31, k32, k33}, \ | ||
34 | {k40, k41, k42, k43} \ | ||
35 | } | ||
36 | |||
37 | #define LAYOUT_numpad_5x4( \ | ||
38 | k00, k01, k02, k03, \ | ||
39 | k10, k11, k12, \ | ||
40 | k20, k21, k22, k23, \ | ||
41 | k30, k31, k32, \ | ||
42 | k40, k42, k43 \ | ||
43 | ) \ | ||
44 | { \ | ||
45 | {k00, k01, k02, k03}, \ | ||
46 | {k10, k11, k12, KC_NO}, \ | ||
47 | {k20, k21, k22, k23}, \ | ||
48 | {k30, k31, k32, KC_NO}, \ | ||
49 | {k40, KC_NO, k42, k43} \ | ||
50 | } | ||
diff --git a/keyboards/pabile/p40/config.h b/keyboards/pabile/p40/config.h index f4252f7ab..02ebb67e6 100644 --- a/keyboards/pabile/p40/config.h +++ b/keyboards/pabile/p40/config.h | |||
@@ -1,3 +1,20 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
1 | #pragma once | 18 | #pragma once |
2 | 19 | ||
3 | #include "config_common.h" | 20 | #include "config_common.h" |
diff --git a/keyboards/pabile/p40/info.json b/keyboards/pabile/p40/info.json index 42f9b4823..d05d77328 100644 --- a/keyboards/pabile/p40/info.json +++ b/keyboards/pabile/p40/info.json | |||
@@ -7,46 +7,46 @@ | |||
7 | "layouts": { | 7 | "layouts": { |
8 | "LAYOUT_ortho_4x10": { | 8 | "LAYOUT_ortho_4x10": { |
9 | "layout": [ | 9 | "layout": [ |
10 | {"x":0, "y":0}, | 10 | {"w":1, "x":0, "y":0}, |
11 | {"x":1, "y":0}, | 11 | {"w":1, "x":1, "y":0}, |
12 | {"x":2, "y":0}, | 12 | {"w":1, "x":2, "y":0}, |
13 | {"x":3, "y":0}, | 13 | {"w":1, "x":3, "y":0}, |
14 | {"x":4, "y":0}, | 14 | {"w":1, "x":4, "y":0}, |
15 | {"x":5, "y":0}, | 15 | {"w":1, "x":5, "y":0}, |
16 | {"x":6, "y":0}, | 16 | {"w":1, "x":6, "y":0}, |
17 | {"x":7, "y":0}, | 17 | {"w":1, "x":7, "y":0}, |
18 | {"x":8, "y":0}, | 18 | {"w":1, "x":8, "y":0}, |
19 | {"x":9, "y":0}, | 19 | {"w":1, "x":9, "y":0}, |
20 | {"x":0.25, "y":1}, | 20 | {"w":1, "x":0.25, "y":1}, |
21 | {"x":1.25, "y":1}, | 21 | {"w":1, "x":1.25, "y":1}, |
22 | {"x":2.25, "y":1}, | 22 | {"w":1, "x":2.25, "y":1}, |
23 | {"x":3.25, "y":1}, | 23 | {"w":1, "x":3.25, "y":1}, |
24 | {"x":4.25, "y":1}, | 24 | {"w":1, "x":4.25, "y":1}, |
25 | {"x":5.25, "y":1}, | 25 | {"w":1, "x":5.25, "y":1}, |
26 | {"x":6.25, "y":1}, | 26 | {"w":1, "x":6.25, "y":1}, |
27 | {"x":7.25, "y":1}, | 27 | {"w":1, "x":7.25, "y":1}, |
28 | {"x":8.25, "y":1}, | 28 | {"w":1, "x":8.25, "y":1}, |
29 | {"x":9.25, "y":1}, | 29 | {"w":1, "x":9.25, "y":1}, |
30 | {"x":0.5, "y":2}, | 30 | {"w":1, "x":0.5, "y":2}, |
31 | {"x":1.5, "y":2}, | 31 | {"w":1, "x":1.5, "y":2}, |
32 | {"x":2.5, "y":2}, | 32 | {"w":1, "x":2.5, "y":2}, |
33 | {"x":3.5, "y":2}, | 33 | {"w":1, "x":3.5, "y":2}, |
34 | {"x":4.5, "y":2}, | 34 | {"w":1, "x":4.5, "y":2}, |
35 | {"x":5.5, "y":2}, | 35 | {"w":1, "x":5.5, "y":2}, |
36 | {"x":6.5, "y":2}, | 36 | {"w":1, "x":6.5, "y":2}, |
37 | {"x":7.5, "y":2}, | 37 | {"w":1, "x":7.5, "y":2}, |
38 | {"x":8.5, "y":2}, | 38 | {"w":1, "x":8.5, "y":2}, |
39 | {"x":9.5, "y":2}, | 39 | {"w":1, "x":9.5, "y":2}, |
40 | {"x":0.75, "y":3}, | 40 | {"w":1, "x":0.75, "y":3}, |
41 | {"x":1.75, "y":3}, | 41 | {"w":1, "x":1.75, "y":3}, |
42 | {"x":2.75, "y":3}, | 42 | {"w":1, "x":2.75, "y":3}, |
43 | {"x":3.75, "y":3}, | 43 | {"w":1, "x":3.75, "y":3}, |
44 | {"x":4.75, "y":3}, | 44 | {"w":1, "x":4.75, "y":3}, |
45 | {"x":5.75, "y":3}, | 45 | {"w":1, "x":5.75, "y":3}, |
46 | {"x":6.75, "y":3}, | 46 | {"w":1, "x":6.75, "y":3}, |
47 | {"x":7.75, "y":3}, | 47 | {"w":1, "x":7.75, "y":3}, |
48 | {"x":8.75, "y":3}, | 48 | {"w":1, "x":8.75, "y":3}, |
49 | {"x":9.75, "y":3}] | 49 | {"w":1, "x":9.75, "y":3}] |
50 | } | 50 | } |
51 | } | 51 | } |
52 | } | 52 | } |
diff --git a/keyboards/pabile/p40/readme.md b/keyboards/pabile/p40/readme.md index 33a657f38..14673d75a 100644 --- a/keyboards/pabile/p40/readme.md +++ b/keyboards/pabile/p40/readme.md | |||
@@ -6,10 +6,11 @@ A compact 4x10 (40%) staggered DIY keyboard kit. | |||
6 | 6 | ||
7 | * Keyboard Maintainer: [pabile](https://github.com/pabile) | 7 | * Keyboard Maintainer: [pabile](https://github.com/pabile) |
8 | * Hardware Supported: Pabile P40 PCB, Pro Micro | 8 | * Hardware Supported: Pabile P40 PCB, Pro Micro |
9 | * Hardware Availability: [Info at pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/pabile40) | 9 | * Hardware Availability: [Info at pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/p40) |
10 | 10 | ||
11 | Make example for this keyboard (after setting up your build environment): | 11 | Make example for this keyboard (after setting up your build environment): |
12 | 12 | ||
13 | make pabile/p40:default | 13 | make pabile/p40:default |
14 | 14 | ||
15 | |||
15 | 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). | 16 | 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). |
diff --git a/keyboards/pabile/p40_ortho/config.h b/keyboards/pabile/p40_ortho/config.h new file mode 100644 index 000000000..4fd8e7a53 --- /dev/null +++ b/keyboards/pabile/p40_ortho/config.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0x6666 | ||
24 | #define PRODUCT_ID 0x6669 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Pabile | ||
27 | #define PRODUCT P40 Ortho Keyboard | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 4 | ||
31 | #define MATRIX_COLS 10 | ||
32 | |||
33 | /* pin-out */ | ||
34 | #define MATRIX_ROW_PINS { D1, D0, F4, F5 } | ||
35 | #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B2, B3, B1, F7, F6 } | ||
36 | |||
37 | #define UNUSED_PINS | ||
38 | |||
39 | /* COL2ROW or ROW2COL */ | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/pabile/p40_ortho/info.json b/keyboards/pabile/p40_ortho/info.json new file mode 100644 index 000000000..a4d757be9 --- /dev/null +++ b/keyboards/pabile/p40_ortho/info.json | |||
@@ -0,0 +1,52 @@ | |||
1 | { | ||
2 | "keyboard_name": "", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "width": 10, | ||
6 | "height": 4, | ||
7 | "layouts": { | ||
8 | "LAYOUT_ortho_4x10": { | ||
9 | "layout": [ | ||
10 | {"label":"Q", "x":0, "y":0}, | ||
11 | {"label":"W", "x":1, "y":0}, | ||
12 | {"label":"E", "x":2, "y":0}, | ||
13 | {"label":"R", "x":3, "y":0}, | ||
14 | {"label":"T", "x":4, "y":0}, | ||
15 | {"label":"Y", "x":5, "y":0}, | ||
16 | {"label":"U", "x":6, "y":0}, | ||
17 | {"label":"I", "x":7, "y":0}, | ||
18 | {"label":"O", "x":8, "y":0}, | ||
19 | {"label":"P", "x":9, "y":0}, | ||
20 | {"label":"A", "x":0, "y":1}, | ||
21 | {"label":"S", "x":1, "y":1}, | ||
22 | {"label":"D", "x":2, "y":1}, | ||
23 | {"label":"F", "x":3, "y":1}, | ||
24 | {"label":"G", "x":4, "y":1}, | ||
25 | {"label":"H", "x":5, "y":1}, | ||
26 | {"label":"J", "x":6, "y":1}, | ||
27 | {"label":"K", "x":7, "y":1}, | ||
28 | {"label":"L", "x":8, "y":1}, | ||
29 | {"label":"-", "x":9, "y":1}, | ||
30 | {"label":"Z", "x":0, "y":2}, | ||
31 | {"label":"X", "x":1, "y":2}, | ||
32 | {"label":"C", "x":2, "y":2}, | ||
33 | {"label":"V", "x":3, "y":2}, | ||
34 | {"label":"B", "x":4, "y":2}, | ||
35 | {"label":"N", "x":5, "y":2}, | ||
36 | {"label":"M", "x":6, "y":2}, | ||
37 | {"label":",", "x":7, "y":2}, | ||
38 | {"label":".", "x":8, "y":2}, | ||
39 | {"label":"?", "x":9, "y":2}, | ||
40 | {"label":"Ctrl", "x":0, "y":3}, | ||
41 | {"label":"Win", "x":1, "y":3}, | ||
42 | {"label":"Alt", "x":2, "y":3}, | ||
43 | {"label":"Shift", "x":3, "y":3}, | ||
44 | {"label":"←", "x":4, "y":3}, | ||
45 | {"x":5, "y":3}, | ||
46 | {"label":"Enter", "x":6, "y":3}, | ||
47 | {"label":"Alt", "x":7, "y":3}, | ||
48 | {"label":"Super", "x":8, "y":3}, | ||
49 | {"label":"Ctrl", "x":9, "y":3}] | ||
50 | } | ||
51 | } | ||
52 | } | ||
diff --git a/keyboards/pabile/p40_ortho/keymaps/default/keymap.c b/keyboards/pabile/p40_ortho/keymaps/default/keymap.c new file mode 100644 index 000000000..ac41acf2d --- /dev/null +++ b/keyboards/pabile/p40_ortho/keymaps/default/keymap.c | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_ortho_4x10( | ||
22 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
23 | KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(3,KC_MINS), | ||
24 | KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, LT(4,KC_SLSH), | ||
25 | KC_LCTL, KC_LGUI, KC_LALT, KC_LSFT, LT(2,KC_BSPC), LT(1,KC_SPC), KC_ENT, KC_APP, KC_DEL, KC_ESC), | ||
26 | [1] = LAYOUT_ortho_4x10( | ||
27 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
28 | KC_TAB, KC_NO, KC_NO, KC_GRV, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, KC_MINS, | ||
29 | KC_NO, KC_NO, KC_NO, KC_NO, KC_EQL, KC_MINS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
31 | [2] = LAYOUT_ortho_4x10( | ||
32 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, | ||
33 | KC_TAB, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
34 | KC_CAPS, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO, KC_NLCK, KC_NO, KC_VOLD, KC_VOLU, KC_MUTE, | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO), | ||
36 | [3] = LAYOUT_ortho_4x10( | ||
37 | KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_INS, KC_PGUP, KC_UP, KC_PGDN, KC_DEL, | ||
38 | KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, | ||
39 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_END, KC_NO, KC_NO, KC_NO, KC_NO, | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO), | ||
41 | [4] = LAYOUT_ortho_4x10( | ||
42 | KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BTN1, KC_MS_U, KC_BTN2, KC_DEL, | ||
43 | KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_WH_U, KC_MS_L, KC_MS_D, KC_MS_R, KC_NO, | ||
44 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_WH_D, KC_NO, KC_NO, KC_NO, KC_NO, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO) | ||
46 | }; | ||
diff --git a/keyboards/pabile/p40_ortho/p40_ortho.c b/keyboards/pabile/p40_ortho/p40_ortho.c new file mode 100644 index 000000000..b6573bd80 --- /dev/null +++ b/keyboards/pabile/p40_ortho/p40_ortho.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include "p40_ortho.h" | ||
diff --git a/keyboards/pabile/p40_ortho/p40_ortho.h b/keyboards/pabile/p40_ortho/p40_ortho.h new file mode 100644 index 000000000..dd2c899da --- /dev/null +++ b/keyboards/pabile/p40_ortho/p40_ortho.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | #define LAYOUT_ortho_4x10( \ | ||
23 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \ | ||
24 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \ | ||
25 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, \ | ||
26 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39 \ | ||
27 | ) \ | ||
28 | { \ | ||
29 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09}, \ | ||
30 | {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19}, \ | ||
31 | {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29}, \ | ||
32 | {k30, k31, k32, k33, k34, k35, k36, k37, k38, k39} \ | ||
33 | } | ||
34 | #define LAYOUT_ortho_4x10_1x2u_c( \ | ||
35 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \ | ||
36 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \ | ||
37 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, \ | ||
38 | k30, k31, k32, k33, k34, k36, k37, k38, k39 \ | ||
39 | ) \ | ||
40 | { \ | ||
41 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09}, \ | ||
42 | {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19}, \ | ||
43 | {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29}, \ | ||
44 | {k30, k31, k32, k33, k34, KC_NO, k36, k37, k38, k39} \ | ||
45 | } | ||
diff --git a/keyboards/pabile/p40_ortho/readme.md b/keyboards/pabile/p40_ortho/readme.md new file mode 100644 index 000000000..736c5b497 --- /dev/null +++ b/keyboards/pabile/p40_ortho/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # P40 Ortho | ||
2 | |||
3 |  | ||
4 | |||
5 | A compact 4x10 (40%) ortho-linear DIY keyboard kit. | ||
6 | |||
7 | * Keyboard Maintainer: [pabile](https://github.com/pabile) | ||
8 | * Hardware Supported: Pabile P40 PCB, Pro Micro, ALPS / MX Switches | ||
9 | * Hardware Availability: [pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/pabile40) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make pabile/p40_ortho:default | ||
14 | |||
15 | 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). | ||
diff --git a/keyboards/pabile/p40_ortho/rules.mk b/keyboards/pabile/p40_ortho/rules.mk new file mode 100644 index 000000000..ba0ad23c8 --- /dev/null +++ b/keyboards/pabile/p40_ortho/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
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 # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_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 | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | UNICODE_ENABLE = yes # Unicode | ||
24 | IOS_DEVICE_ENABLE = no # connect to IOS Device | ||
diff --git a/keyboards/pabile/p42/config.h b/keyboards/pabile/p42/config.h new file mode 100644 index 000000000..2f7c5ce30 --- /dev/null +++ b/keyboards/pabile/p42/config.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0x6666 | ||
24 | #define PRODUCT_ID 0x6670 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Pabile | ||
27 | #define PRODUCT P42 Keyboard | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 4 | ||
31 | #define MATRIX_COLS 11 | ||
32 | |||
33 | /* pin-out for PROMICRO */ | ||
34 | #define MATRIX_ROW_PINS { D1, D0, D4, C6 } | ||
35 | #define MATRIX_COL_PINS { D7, E6, B4, B5, D2, D3, F7, B1, B3, B2, B6 } | ||
36 | |||
37 | /* pin-out for BLUEFRUIT | ||
38 | #define MATRIX_ROW_PINS { F7, F6, F5, F4 } | ||
39 | #define MATRIX_COL_PINS { F1, F0, B1, B2, B3, D2, C7, D6, B7, B6, B5 } | ||
40 | */ | ||
41 | |||
42 | #define UNUSED_PINS | ||
43 | |||
44 | /* COL2ROW or ROW2COL */ | ||
45 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/pabile/p42/info.json b/keyboards/pabile/p42/info.json new file mode 100644 index 000000000..77bce4bab --- /dev/null +++ b/keyboards/pabile/p42/info.json | |||
@@ -0,0 +1,13 @@ | |||
1 | { | ||
2 | "keyboard_name": "P42", | ||
3 | "url": "https://pabileonline.blogspot.com/", | ||
4 | "maintainer": "Pabile", | ||
5 | "width": 11.25, | ||
6 | "height": 4, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [ | ||
10 | {"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"label":",", "x":7, "y":2}, {"label":".", "x":8, "y":2}, {"x":9, "y":2}, {"x":10.25, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10.25, "y":3}] | ||
11 | } | ||
12 | } | ||
13 | } | ||
diff --git a/keyboards/pabile/p42/keymaps/default/keymap.c b/keyboards/pabile/p42/keymaps/default/keymap.c new file mode 100644 index 000000000..39c9e639e --- /dev/null +++ b/keyboards/pabile/p42/keymaps/default/keymap.c | |||
@@ -0,0 +1,29 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | [0] = LAYOUT( | ||
5 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
6 | KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(3,KC_MINS), | ||
7 | KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
8 | KC_LCTL, KC_LGUI, KC_LALT, KC_LSFT, LT(2,KC_BSPC), LT(1,KC_SPC), LT(4,KC_ENT), KC_DEL, KC_RALT, KC_RCTL, KC_ESC), | ||
9 | [1] = LAYOUT( | ||
10 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
11 | KC_TAB, KC_NO, KC_NO, KC_GRV, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, KC_MINS, | ||
12 | KC_NO, KC_NO, KC_NO, KC_NO, KC_EQL, KC_MINS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
13 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
14 | [2] = LAYOUT( | ||
15 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, | ||
16 | KC_TAB, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
17 | KC_CAPS, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO, KC_NLCK, KC_NO, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, | ||
18 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS), | ||
19 | [3] = LAYOUT( | ||
20 | KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_INS, KC_PGUP, KC_UP, KC_PGDN, KC_DEL, | ||
21 | KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, | ||
22 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_END, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, | ||
23 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS), | ||
24 | [4] = LAYOUT( | ||
25 | KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BTN1, KC_MS_U, KC_BTN2, KC_DEL, | ||
26 | KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_WH_U, KC_MS_L, KC_MS_D, KC_MS_R, KC_NO, | ||
27 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_WH_D, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, | ||
28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS) | ||
29 | }; | ||
diff --git a/keyboards/pabile/p42/p42.c b/keyboards/pabile/p42/p42.c new file mode 100644 index 000000000..63bf51bd5 --- /dev/null +++ b/keyboards/pabile/p42/p42.c | |||
@@ -0,0 +1 @@ | |||
#include "p42.h" | |||
diff --git a/keyboards/pabile/p42/p42.h b/keyboards/pabile/p42/p42.h new file mode 100644 index 000000000..41aed042a --- /dev/null +++ b/keyboards/pabile/p42/p42.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | Copyright 2020 Pabile | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | #define LAYOUT( \ | ||
23 | k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, \ | ||
24 | k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, \ | ||
25 | k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210,\ | ||
26 | k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, k310 \ | ||
27 | ) \ | ||
28 | { \ | ||
29 | {k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, KC_NO}, \ | ||
30 | {k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, KC_NO}, \ | ||
31 | {k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210}, \ | ||
32 | {k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, k310} \ | ||
33 | } | ||
diff --git a/keyboards/pabile/p42/readme.md b/keyboards/pabile/p42/readme.md new file mode 100644 index 000000000..5ad0036bf --- /dev/null +++ b/keyboards/pabile/p42/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # P42 | ||
2 | |||
3 |  | ||
4 | |||
5 | 42-key Ortho-linear keyboard | ||
6 | |||
7 | * Keyboard Maintainer: [pabile](https://github.com/pabile) | ||
8 | * Hardware Supported: Pabile P42 PCB, Pro Micro, Bluefruit LE, Hotswap Sockets | ||
9 | * Hardware Availability: [pabileonline.blogspot.com](https://pabileonline.blogspot.com/) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make pabile/p42:default | ||
14 | |||
15 | 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). | ||
diff --git a/keyboards/pabile/p42/rules.mk b/keyboards/pabile/p42/rules.mk new file mode 100644 index 000000000..ba0ad23c8 --- /dev/null +++ b/keyboards/pabile/p42/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
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 # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_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 | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | UNICODE_ENABLE = yes # Unicode | ||
24 | IOS_DEVICE_ENABLE = no # connect to IOS Device | ||