diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/aplyard/aplx6/rev1 |
Diffstat (limited to 'keyboards/aplyard/aplx6/rev1')
-rw-r--r-- | keyboards/aplyard/aplx6/rev1/config.h | 47 | ||||
-rw-r--r-- | keyboards/aplyard/aplx6/rev1/keymaps/default/keymap.c | 38 | ||||
-rw-r--r-- | keyboards/aplyard/aplx6/rev1/readme.md | 41 | ||||
-rw-r--r-- | keyboards/aplyard/aplx6/rev1/rev1.c | 19 | ||||
-rw-r--r-- | keyboards/aplyard/aplx6/rev1/rev1.h | 12 | ||||
-rw-r--r-- | keyboards/aplyard/aplx6/rev1/rules.mk | 19 |
6 files changed, 176 insertions, 0 deletions
diff --git a/keyboards/aplyard/aplx6/rev1/config.h b/keyboards/aplyard/aplx6/rev1/config.h new file mode 100644 index 000000000..98a7381cc --- /dev/null +++ b/keyboards/aplyard/aplx6/rev1/config.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | Copyright 2020 April Aplyard <[email protected]> | ||
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 0xE0E0 | ||
24 | #define PRODUCT_ID 0x0030 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Aplyard | ||
27 | #define PRODUCT Aplx6 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 2 | ||
31 | #define MATRIX_COLS 3 | ||
32 | |||
33 | /* pin-out */ | ||
34 | #define MATRIX_ROW_PINS { E6, B3 } | ||
35 | #define MATRIX_COL_PINS { F7, B6, F4 } | ||
36 | #define UNUSED_PINS | ||
37 | |||
38 | |||
39 | /* ws2812 RGB LED */ | ||
40 | //#define RGB_DI_PIN X | ||
41 | |||
42 | //#define RGBLIGHT_ANIMATIONS | ||
43 | //#define RGBLED_NUM X // Number of LEDs | ||
44 | |||
45 | |||
46 | /* COL2ROW or ROW2COL */ | ||
47 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/aplyard/aplx6/rev1/keymaps/default/keymap.c b/keyboards/aplyard/aplx6/rev1/keymaps/default/keymap.c new file mode 100644 index 000000000..91ed943f3 --- /dev/null +++ b/keyboards/aplyard/aplx6/rev1/keymaps/default/keymap.c | |||
@@ -0,0 +1,38 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | #define _MAIN 0 | ||
4 | #define _FN 1 | ||
5 | |||
6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
7 | /* Keymap __MAIN: Default Layer | ||
8 | * ,--------------------------------. | ||
9 | * | .------. |-----|-----|-----| | | ||
10 | * | | | |Play |VolUp| Fn | | | ||
11 | * | | Pro | |-----|-----|-----| | | ||
12 | * | | Micro| --------------------| | ||
13 | * | | | |-----|-----|-----| | | ||
14 | * | '------' |Prev |VolD |Next | | | ||
15 | * | |||||| |-----|-----|-----| | | ||
16 | * '--------------------------------' | ||
17 | */ | ||
18 | [_MAIN] = LAYOUT( | ||
19 | KC_MPLY, KC_VOLU, MO(1), | ||
20 | KC_MPRV, KC_VOLD, KC_MNXT | ||
21 | ), | ||
22 | /* Keymap __FN: Second Layer | ||
23 | * ,--------------------------------. | ||
24 | * | .------. |-----|-----|-----| | | ||
25 | * | | | |Calc |PgUp |TRANS| | | ||
26 | * | | Pro | |-----|-----|-----| | | ||
27 | * | | Micro| --------------------| | ||
28 | * | | | |-----|-----|-----| | | ||
29 | * | '------' |MyPC | PgD |RESET| | | ||
30 | * | |||||| |-----|-----|-----| | | ||
31 | * '--------------------------------' | ||
32 | */ | ||
33 | |||
34 | [_FN] = LAYOUT( | ||
35 | KC_CALC, KC_PGUP, _______, | ||
36 | KC_MYCM, KC_PGDN, RESET | ||
37 | ) | ||
38 | }; | ||
diff --git a/keyboards/aplyard/aplx6/rev1/readme.md b/keyboards/aplyard/aplx6/rev1/readme.md new file mode 100644 index 000000000..7369cbfd4 --- /dev/null +++ b/keyboards/aplyard/aplx6/rev1/readme.md | |||
@@ -0,0 +1,41 @@ | |||
1 | # Aplx6 | ||
2 | |||
3 |  | ||
4 |  | ||
5 | |||
6 | A stylish (2x3) 6-key MediaPad for your music and browser shortcuts. Designed to be assembled as a sandwich with a blank PCB, using M2.5 screws and spacers, your choice of MX- or Alps-compatible switches, and 1N4148 diodes. | ||
7 | |||
8 | |||
9 | ## RGB Underglow (WS2812) | ||
10 | |||
11 | Just wire them to any of the unused ProMicro pins. Don't forget to edit-uncomment the `config.h` and the `rules.mk` for RGB underglow support, or even add your own functions and modes. Used pins can be found in `config.h` or in the [KiCad Schematic](https://github.com/Aplyard/Aplx6/blob/master/kiCad/xd6.sch). All ProMicro pins can be found [here](https://golem.hu/article/pro-micro-pinout/) along with the +2 pins mod. | ||
12 | |||
13 | * Keyboard Maintainer: [Aplyard](https://github.com/Aplyard) | ||
14 | * Hardware Supported: Aplx6 PCB, Pro Micro (ATmega32U4) | ||
15 | * Hardware Availability: [GitHub](https://github.com/Aplyard/aplx6/tree/master/rev1) | ||
16 | |||
17 | Make example for this keyboard (after setting up your build environment): | ||
18 | |||
19 | make aplyard/aplx6/rev1:default | ||
20 | |||
21 | 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). | ||
22 | |||
23 | --- | ||
24 | ****Designed in**:** | ||
25 | [KiCad](https://github.com/KiCad) | ||
26 | |||
27 | **Components Footprints & Libraries :** | ||
28 | [keebs.pretty](https://github.com/egladman/keebs.pretty) | ||
29 | [keyboard_parts.pretty | ||
30 | ](https://github.com/tmk/keyboard_parts.pretty) | ||
31 | [ProMicro KiCad](https://github.com/Biacco42/ProMicroKiCad) | ||
32 | |||
33 | **Usefull Links:** | ||
34 | [Qmk Online Configurator](https://config.qmk.fm/#) | ||
35 | |||
36 | **Alternatives of qmk that worked for me:** | ||
37 | [Keyboard Layout Editor](http://www.keyboard-layout-editor.com/#/) | ||
38 | [Keyboard Plate & Case Builder](http://builder.swillkb.com/) | ||
39 | [Firmware Builder](https://kbfirmware.com/) | ||
40 | |||
41 | --- | ||
diff --git a/keyboards/aplyard/aplx6/rev1/rev1.c b/keyboards/aplyard/aplx6/rev1/rev1.c new file mode 100644 index 000000000..7f6f8a322 --- /dev/null +++ b/keyboards/aplyard/aplx6/rev1/rev1.c | |||
@@ -0,0 +1,19 @@ | |||
1 | /* | ||
2 | Copyright 2020 April Aplyard <[email protected]> | ||
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 "rev1.h" | ||
19 | |||
diff --git a/keyboards/aplyard/aplx6/rev1/rev1.h b/keyboards/aplyard/aplx6/rev1/rev1.h new file mode 100644 index 000000000..6990d388e --- /dev/null +++ b/keyboards/aplyard/aplx6/rev1/rev1.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #pragma once | ||
2 | #include "quantum.h" | ||
3 | |||
4 | #define LAYOUT( \ | ||
5 | k000, k001, k002, \ | ||
6 | k100, k101, k102 \ | ||
7 | ) \ | ||
8 | { \ | ||
9 | { k000, k001, k002 }, \ | ||
10 | { k100, k101, k102 } \ | ||
11 | } | ||
12 | |||
diff --git a/keyboards/aplyard/aplx6/rev1/rules.mk b/keyboards/aplyard/aplx6/rev1/rules.mk new file mode 100644 index 000000000..2f485606c --- /dev/null +++ b/keyboards/aplyard/aplx6/rev1/rules.mk | |||
@@ -0,0 +1,19 @@ | |||
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 # Enable Bootmagic Lite | ||
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 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||
19 | UNICODE_ENABLE = yes # Unicode | ||