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

[Keyboard] add P40 Ortho, P42, and P20 ver2 by pabile #9980

Merged
merged 190 commits into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
cf03b12
Add files via upload
pabile Mar 29, 2020
d83accb
removed
Mar 29, 2020
2592e8e
Add files via upload
pabile Mar 29, 2020
6bf643e
Rename pabile40.c to p40.c
pabile Mar 29, 2020
2ea9637
Rename pabile40.h to p40.h
pabile Mar 29, 2020
93347d6
Add files via upload
pabile Mar 29, 2020
0656efb
Update p40.c
pabile Mar 29, 2020
c44c3ca
Update p40.h
pabile Mar 29, 2020
2631429
Update README.md
pabile Mar 29, 2020
f87534f
Update README.md
pabile Mar 29, 2020
af144a5
Update README.md
pabile Mar 29, 2020
e9f92f9
Update README.md
pabile Mar 29, 2020
6de82e1
Updated readme file
Mar 29, 2020
92e6545
Updated readme file
pabile Mar 29, 2020
8fea504
Updated readme file
pabile Mar 29, 2020
ec015aa
Add files via upload
pabile Apr 6, 2020
88d8e2e
modified: keyboards/pabile/p18/config.h
pabile Apr 7, 2020
1254c55
config update
pabile Apr 7, 2020
4ec9057
Delete README.md.save
pabile Apr 7, 2020
b3f7ad7
Delete keymap.c.save
pabile Apr 7, 2020
3c0e022
Delete keymaps.c
pabile Apr 7, 2020
a81a7fd
modified: keyboards/pabile/p18/keymaps/default/keymap.c
pabile Apr 7, 2020
902aa96
Update p18.h
pabile Apr 9, 2020
be6b4b6
testing layout config
pabile Apr 9, 2020
c51a0f9
Create info.json
pabile Apr 11, 2020
322bd15
Create info.json
pabile Apr 11, 2020
3e07e0e
Create readme.md
pabile Apr 11, 2020
3bdbc99
Update readme.md
pabile Apr 11, 2020
ac4df5c
Updated description
pabile Apr 11, 2020
789b824
Updated description
pabile Apr 11, 2020
795454b
Update config.h
pabile Apr 12, 2020
90eef93
Update keymap.c
pabile Apr 12, 2020
ae0578a
Update keyboards/pabile/p18/p18.h
pabile Apr 12, 2020
5b35ac2
Update keyboards/pabile/p18/p18.h
pabile Apr 12, 2020
fea7137
Update p18.h
pabile Apr 12, 2020
d39a28f
Update keyboards/pabile/p18/rules.mk
pabile Apr 12, 2020
94439e6
Update keyboards/pabile/p18/rules.mk
pabile Apr 12, 2020
7488f5b
Update config.h
pabile Apr 12, 2020
79e79df
Update keyboards/pabile/p40/info.json
pabile Apr 12, 2020
c1692de
Update keyboards/pabile/p40/keymaps/default/keymap.c
pabile Apr 12, 2020
1e7c789
Update keyboards/pabile/p40/p40.h
pabile Apr 12, 2020
4de8aaa
Update keyboards/pabile/p40/p40.h
pabile Apr 12, 2020
f7c9546
Update keyboards/pabile/p40/p40.h
pabile Apr 12, 2020
3cea706
Update keyboards/pabile/p40/rules.mk
pabile Apr 12, 2020
3cf0e5b
Update keyboards/pabile/p40/rules.mk
pabile Apr 12, 2020
5131eb7
Added p20 macropad
pabile Apr 17, 2020
0770df2
Update README.md
pabile Apr 17, 2020
89dd382
Updated VID and PID
pabile Apr 19, 2020
090c12f
Updated VID and PID
pabile Apr 19, 2020
e9c460a
Update rules.mk
pabile Apr 19, 2020
7a3414c
Update config.h
pabile Apr 19, 2020
32531f2
Update config.h
pabile Apr 19, 2020
a7c93ed
Update config.h
pabile Apr 19, 2020
25cc7e4
Update keymap.c
pabile Apr 19, 2020
640c7ce
Replaced blank keys with KC_NO
pabile Apr 19, 2020
39e33f0
Update keyboards/pabile/p18/keymaps/default/keymap.c
pabile Apr 28, 2020
86c71fd
Update keyboards/pabile/p18/p18.h
pabile Apr 28, 2020
1620ee1
Update keyboards/pabile/p18/rules.mk
pabile Apr 29, 2020
e663760
Update keyboards/pabile/p20/keymaps/default/keymap.c
pabile Apr 29, 2020
6988c22
Update keymap.c
pabile Apr 29, 2020
d13b105
Update keymap.c
pabile Apr 29, 2020
4b5a2b8
Update keyboards/pabile/p20/rules.mk
pabile Apr 29, 2020
f32fd3b
Update keyboards/pabile/p40/info.json
pabile Apr 29, 2020
cd7d04e
Update keyboards/pabile/p20/p20.h
pabile Apr 29, 2020
09fc73b
Updated product ID
pabile Apr 29, 2020
b8bdc16
Updated product ID
pabile Apr 29, 2020
7f73bbe
Update keyboards/pabile/p20/config.h
pabile May 8, 2020
15a2f25
Update keyboards/pabile/p20/p20.h
pabile May 8, 2020
5901edf
Update keyboards/pabile/p20/p20.h
pabile May 8, 2020
aa0379e
Update keyboards/pabile/p20/keymaps/default/keymap.c
pabile May 8, 2020
d0923b7
Update keyboards/pabile/p18/readme.md
pabile May 8, 2020
31b09eb
Update keyboards/pabile/p20/README.md
pabile May 8, 2020
9027d0e
Update keyboards/pabile/p20/rules.mk
pabile May 8, 2020
4b1df3c
Update keyboards/pabile/p20/rules.mk
pabile May 8, 2020
41e543f
Update keyboards/pabile/p20/rules.mk
pabile May 8, 2020
60df6ec
Update keyboards/pabile/p20/rules.mk
pabile May 8, 2020
76e22c7
Update keyboards/pabile/p40/README.md
pabile May 8, 2020
6d8f710
Update keyboards/pabile/p40/rules.mk
pabile May 8, 2020
1578fd9
Update keyboards/pabile/p40/rules.mk
pabile May 8, 2020
1f1d756
Update keyboards/pabile/p18/rules.mk
pabile May 8, 2020
b67565a
Update keyboards/pabile/p18/rules.mk
pabile May 8, 2020
62b1105
Update keyboards/pabile/p40/config.h
pabile May 8, 2020
bbc5d97
Update keyboards/pabile/p40/config.h
pabile May 8, 2020
4f474cc
Update keyboards/pabile/p18/readme.md
pabile May 9, 2020
1b7474d
Changed to lowercase filename
pabile May 9, 2020
fbe17ab
Rename README.md to readme.md
pabile May 9, 2020
aace41c
Update keyboards/pabile/p18/rules.mk
pabile May 10, 2020
460bd9e
Add files via upload
pabile May 30, 2020
9590f00
typo
pabile Jun 7, 2020
30080fd
New keyboard
pabile Jun 11, 2020
f44ed40
Updated image link
pabile Jun 11, 2020
e5dbbaa
Updated default ortho keymap
pabile Jun 14, 2020
246691d
Update keymap.c
pabile Jun 14, 2020
64665d9
Update readme.md
pabile Jun 14, 2020
9232794
Update keymap.c
pabile Jun 14, 2020
f1bc64a
Update keymap.c
pabile Jun 14, 2020
ae3c734
default firmware
pabile Jun 14, 2020
2a6000d
Delete pabile_p40_ortho.hex
pabile Jun 17, 2020
f3088b4
Update keymap.c
pabile Jun 17, 2020
41dec27
Update keymap.c
pabile Jun 17, 2020
9379f6e
Update info.json
pabile Jun 22, 2020
efe2118
Update p40.h
pabile Jun 22, 2020
8623287
Added support for version 2 PCB
pabile Jun 30, 2020
0383ab6
Update readme.md
pabile Jun 30, 2020
f6b09cd
Update readme.md
pabile Jun 30, 2020
2d4100a
Update readme.md
pabile Jun 30, 2020
8396c1a
Update readme.md
pabile Jun 30, 2020
0c9078f
Update readme.md
pabile Jun 30, 2020
5e7c625
Update config.h
pabile Jun 30, 2020
b5f5462
Update keymap.c
pabile Jun 30, 2020
ab669d5
Update keymap.c
pabile Jun 30, 2020
fd3d57f
Update p42.h
pabile Jul 2, 2020
a504960
Update keymap.c
pabile Jul 2, 2020
aab2e55
Update keymap.c
pabile Jul 2, 2020
fac2de1
Update readme.md
pabile Jul 3, 2020
58b0af4
Added new keyboard
pabile Jul 3, 2020
d9a7da2
start rename
pabile Jul 3, 2020
2df0c9c
removed old folder
pabile Jul 3, 2020
157ef57
reverted to last merge
pabile Jul 3, 2020
a667a6b
revert to last merge
pabile Jul 3, 2020
056f233
Update p40.h
pabile Jul 3, 2020
7699232
Update keymap.c
pabile Jul 7, 2020
77b46c8
Update keymap.c
pabile Jul 7, 2020
7f3780f
Update config.h
pabile Jul 7, 2020
b089d6b
Update config.h
pabile Jul 7, 2020
d812b4e
Update keymap.c
pabile Jul 7, 2020
3153de5
Update readme.md
pabile Jul 7, 2020
38344b7
Update info.json
pabile Jul 7, 2020
bb139e5
Update keymap.c
pabile Jul 19, 2020
7e5694c
Update keymap.c
pabile Aug 9, 2020
cdcedd9
Update keyboards/pabile/p20/rules.mk
pabile Aug 21, 2020
5ad62e1
added numpad option
pabile Aug 21, 2020
d03f66f
Update keyboards/pabile/p40/keymaps/ortho/config.h
pabile Aug 21, 2020
5597654
Update keyboards/pabile/p18/config.h
pabile Aug 21, 2020
d5b649b
Update keyboards/pabile/p20/config.h
pabile Aug 21, 2020
c20deee
moved to p40_ortho keyboard rather than a keymap
pabile Aug 21, 2020
9be37ee
moved to p40_ortho keyboard rather than a keymap
pabile Aug 21, 2020
d9b3421
moved to p40_ortho keyboard rather than a keymap
pabile Aug 21, 2020
719d61d
Merge branch 'master' into master
pabile Aug 23, 2020
e1ad51d
Update config.h
pabile Aug 23, 2020
2f64b6a
Update keyboards/pabile/p20/p20.h
pabile Aug 24, 2020
de6c562
Update keyboards/pabile/p20/p20.h
pabile Aug 25, 2020
80ff906
Update keymap.c
pabile Aug 26, 2020
1a5a855
Add files for P40 Ortho and P42 Keyboards
pabile Aug 26, 2020
d87e0f9
Update keyboards/pabile/p42/rules.mk
pabile Aug 27, 2020
f232d8d
Update keyboards/pabile/p42/rules.mk
pabile Aug 27, 2020
756c151
Update keyboards/pabile/p40_ortho/config.h
pabile Aug 27, 2020
e53bd91
Update keyboards/pabile/p40_ortho/info.json
pabile Aug 27, 2020
58f2ee6
Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
pabile Aug 27, 2020
89dee19
Update keyboards/pabile/p42/p42.h
pabile Aug 27, 2020
6b91da9
Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
pabile Aug 27, 2020
01b8aa7
Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
pabile Aug 27, 2020
458abf7
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Aug 27, 2020
278537f
Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
pabile Aug 27, 2020
961c1bf
Update keyboards/pabile/p40_ortho/keymaps/default/keymap.c
pabile Aug 27, 2020
2af9974
Update keyboards/pabile/p40_ortho/p40_ortho.h
pabile Aug 27, 2020
be35fae
Update keyboards/pabile/p40_ortho/p40_ortho.h
pabile Aug 27, 2020
65b18f4
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Aug 27, 2020
d76639e
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Aug 27, 2020
fd9b0b5
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Aug 27, 2020
0a51345
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Aug 27, 2020
3f396ab
Update keyboards/pabile/p42/info.json
pabile Aug 27, 2020
c452d09
Update keyboards/pabile/p42/config.h
pabile Aug 27, 2020
74a462b
Update keyboards/pabile/p40_ortho/rules.mk
pabile Aug 27, 2020
b55ea76
Update keyboards/pabile/p40_ortho/rules.mk
pabile Aug 27, 2020
82bfa3f
Update keyboards/pabile/p40_ortho/rules.mk
pabile Aug 27, 2020
f443468
Update keyboards/pabile/p20/keymaps/ver2/config.h
pabile Aug 29, 2020
317e93e
Update config.h
pabile Sep 1, 2020
47d2a28
Update config.h
pabile Sep 1, 2020
aba3bac
Update config.h
pabile Sep 3, 2020
71e6b25
Update keymap.c
pabile Sep 3, 2020
a5772b6
Update p20.h
pabile Sep 3, 2020
8864d18
Update p40_ortho.c
pabile Sep 3, 2020
47ace4f
Update p40_ortho.h
pabile Sep 3, 2020
0f278a2
Update keymap.c
pabile Sep 3, 2020
e49933e
Update keyboards/pabile/p42/rules.mk
pabile Sep 3, 2020
372688c
Update keymap.c
pabile Sep 3, 2020
88b9d80
Update p42.h
pabile Sep 3, 2020
e145dd7
Update p42.h
pabile Sep 3, 2020
fdf9dac
Update keyboards/pabile/p42/p42.h
pabile Sep 4, 2020
541c891
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Sep 4, 2020
43a02a4
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Sep 4, 2020
e954175
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Sep 4, 2020
3c29df6
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Sep 4, 2020
4d36931
Update keyboards/pabile/p42/keymaps/default/keymap.c
pabile Sep 4, 2020
f11f964
add pabile/p20/ver2
noroadsleft Sep 4, 2020
9a3f11b
add missing license header
noroadsleft Sep 4, 2020
15729aa
Merge pull request #2 from noroadsleft/pr/9980n
pabile Sep 6, 2020
90a4ec8
Update keyboards/pabile/p20/ver2/keymaps/default/keymap.c
pabile Sep 7, 2020
8b84cb5
Update keyboards/pabile/p20/ver1/ver1.c
pabile Sep 8, 2020
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
18 changes: 18 additions & 0 deletions keyboards/pabile/p18/config.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
Copyright 2020 Pabile

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


#pragma once

#include "config_common.h"
Expand Down
26 changes: 0 additions & 26 deletions keyboards/pabile/p20/config.h

This file was deleted.

1 change: 0 additions & 1 deletion keyboards/pabile/p20/p20.c

This file was deleted.

18 changes: 0 additions & 18 deletions keyboards/pabile/p20/p20.h

This file was deleted.

10 changes: 5 additions & 5 deletions keyboards/pabile/p20/readme.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# P20

![Linear grid](https://github.com/pabile/Pabile20/blob/master/_bak/layout-grid.jpg)
![Numeric pad](https://github.com/pabile/Pabile20/blob/master/_bak/layout-numpad.jpg)

A 5x4 grid keyboard with 2 rotary encoders.
A 5x4 grid macro numeric pad with up to 3 optional rotary encoders.

* Keyboard Maintainer: [pabile](https://github.com/pabile)
* Hardware Supported: Pabile P20 PCB, Pro Micro
* Hardware Availability: [Info at pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/pabile20)
* Hardware Supported: Pabile P20 PCB, Pro Micro, Rotary Encoders, Alps/MX Switches
* Hardware Availability: [pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/p20)

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

make pabile/p20:default
make pabile/p20/ver1:default # for ver1
make pabile/p20/ver2:default # for ver2

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).
42 changes: 42 additions & 0 deletions keyboards/pabile/p20/ver1/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
Copyright 2020 Pabile

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x6666
#define PRODUCT_ID 0x6667
#define DEVICE_VER 0x0001
#define MANUFACTURER Pabile
#define PRODUCT P20 ver1

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 4

/* pin-out */
#define MATRIX_ROW_PINS { B3, B4, B5, D7, E6 }
#define MATRIX_COL_PINS { D0, B2, D4, B6 }
#define UNUSED_PINS

#define ENCODERS_PAD_A { F5, F7 }
#define ENCODERS_PAD_B { F6, B1 }

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
MCU = atmega32u4

# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = caterina

# Build Options
Expand All @@ -25,13 +18,11 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
NKRO_ENABLE = no # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
MIDI_ENABLE = no # MIDI support
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE = no # Audio output on port C6
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output

UNICODE_ENABLE = yes # Unicode
IOS_DEVICE_ENABLE = no # connect to IOS Device
ENCODER_ENABLE = yes

LAYOUTS = ortho_5x4
LAYOUTS = ortho_5x4 numpad_5x4
18 changes: 18 additions & 0 deletions keyboards/pabile/p20/ver1/ver1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Copyright 2020 Pabile

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "ver1.h"
pabile marked this conversation as resolved.
Show resolved Hide resolved
50 changes: 50 additions & 0 deletions keyboards/pabile/p20/ver1/ver1.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
Copyright 2020 Pabile

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

#define LAYOUT_ortho_5x4( \
k00, k01, k02, k03, \
k10, k11, k12, k13, \
k20, k21, k22, k23, \
k30, k31, k32, k33, \
k40, k41, k42, k43 \
) \
{ \
{k00, k01, k02, k03}, \
{k10, k11, k12, k13}, \
{k20, k21, k22, k23}, \
{k30, k31, k32, k33}, \
{k40, k41, k42, k43} \
}

#define LAYOUT_numpad_5x4( \
k00, k01, k02, k03, \
k10, k11, k12, \
k20, k21, k22, k23, \
k30, k31, k32, \
k40, k42, k43 \
) \
{ \
{k00, k01, k02, k03}, \
{k10, k11, k12, KC_NO}, \
{k20, k21, k22, k23}, \
{k30, k31, k32, KC_NO}, \
{k40, KC_NO, k42, k43} \
}
39 changes: 39 additions & 0 deletions keyboards/pabile/p20/ver2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
Copyright 2020 Pabile

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x6666
#define PRODUCT_ID 0x6667
#define DEVICE_VER 0x0002
#define MANUFACTURER Pabile
#define PRODUCT P20 ver2

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 4

/* pin-out */
#define MATRIX_ROW_PINS { C6, D7, E6, B4, B5 }
#define MATRIX_COL_PINS { D1, D0, D4, B2 }
#define UNUSED_PINS

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
43 changes: 43 additions & 0 deletions keyboards/pabile/p20/ver2/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
Copyright 2020 Pabile

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include QMK_KEYBOARD_H

enum custom_keycodes {
DBLZERO = SAFE_RANGE,
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case DBLZERO:
if (record->event.pressed) {
tap_code(KC_P0);
tap_code(KC_P0);
}
break;
}
return true;
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_5x4(
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_TAB,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_DEL,
KC_P0, DBLZERO, KC_PDOT, KC_PENT)
};
28 changes: 28 additions & 0 deletions keyboards/pabile/p20/ver2/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
BOOTLOADER = caterina

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = no # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
AUDIO_ENABLE = no # Audio output

UNICODE_ENABLE = yes # Unicode
IOS_DEVICE_ENABLE = no # connect to IOS Device
ENCODER_ENABLE = no

LAYOUTS = ortho_5x4 numpad_5x4
18 changes: 18 additions & 0 deletions keyboards/pabile/p20/ver2/ver2.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Copyright 2020 Pabile

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "ver2.h"
Loading