mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-24 02:05:01 +06:00
[Keyboard] Add 40percent.club's 'polypad' PCB (#15158)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Sergey Vlasov <sigprof@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
99ec5e39cf
commit
99c6829bf0
90
keyboards/40percentclub/polyandry/config.h
Normal file
90
keyboards/40percentclub/polyandry/config.h
Normal file
@ -0,0 +1,90 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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 0xFEED
|
||||
#define PRODUCT_ID 0x6060
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER di0ib
|
||||
#define PRODUCT Polypad
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
//more detailed config options start below:
|
||||
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* number of backlight levels */
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||
*/
|
||||
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
/*
|
||||
* Force NKRO
|
||||
*
|
||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||
* makefile for this to work.)
|
||||
*
|
||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||
* until the next keyboard reset.
|
||||
*
|
||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||
* fully operational during normal computer usage.
|
||||
*
|
||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||
* power-up.
|
||||
*
|
||||
*/
|
||||
//#define FORCE_NKRO
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
*/
|
||||
|
||||
/* disable debug print */
|
||||
//#define NO_DEBUG
|
||||
|
||||
/* disable print */
|
||||
//#define NO_PRINT
|
||||
|
||||
/* disable action features */
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
//#define NO_ACTION_MACRO
|
||||
//#define NO_ACTION_FUNCTION
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
// #define BOOTMAGIC_LITE_ROW 0
|
||||
// #define BOOTMAGIC_LITE_COLUMN 0
|
27
keyboards/40percentclub/polyandry/info.json
Normal file
27
keyboards/40percentclub/polyandry/info.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"keyboard_name": "Polyandry",
|
||||
"url": "",
|
||||
"maintainer": "QMK",
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"label": "k000", "x": 0, "y": 0},
|
||||
{"label": "k001", "x": 1, "y": 0},
|
||||
{"label": "k002", "x": 2, "y": 0},
|
||||
|
||||
{"label": "k003", "x": 0, "y": 1},
|
||||
{"label": "k004", "x": 1, "y": 1},
|
||||
{"label": "k005", "x": 2, "y": 1},
|
||||
|
||||
{"label": "k006", "x": 0, "y": 2},
|
||||
{"label": "k007", "x": 1, "y": 2},
|
||||
{"label": "k008", "x": 2, "y": 2},
|
||||
|
||||
{"label": "k009", "x": 0, "y": 3},
|
||||
{"label": "k010", "x": 1, "y": 3},
|
||||
{"label": "k011", "x": 2, "y": 3}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
30
keyboards/40percentclub/polyandry/keymaps/default/keymap.c
Normal file
30
keyboards/40percentclub/polyandry/keymaps/default/keymap.c
Normal file
@ -0,0 +1,30 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
LAYOUT(
|
||||
KC_1, KC_2, KC_3,
|
||||
KC_4, KC_5, KC_6,
|
||||
KC_7, KC_8, KC_9,
|
||||
KC_0, KC_A, KC_B
|
||||
),
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
16
keyboards/40percentclub/polyandry/polyandry.c
Normal file
16
keyboards/40percentclub/polyandry/polyandry.c
Normal file
@ -0,0 +1,16 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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 "polyandry.h"
|
24
keyboards/40percentclub/polyandry/polyandry.h
Normal file
24
keyboards/40percentclub/polyandry/polyandry.h
Normal file
@ -0,0 +1,24 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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"
|
||||
|
||||
#ifdef KEYBOARD_40percentclub_polyandry_promicro
|
||||
#include "promicro.h"
|
||||
#elif KEYBOARD_40percentclub_polyandry_teensy2
|
||||
#include "teensy2.h"
|
||||
#endif
|
34
keyboards/40percentclub/polyandry/promicro/config.h
Normal file
34
keyboards/40percentclub/polyandry/promicro/config.h
Normal file
@ -0,0 +1,34 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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"
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 1
|
||||
#define MATRIX_COLS 12
|
||||
|
||||
/* key matrix pins
|
||||
* Direct pins is not used because there is not a shared ground position
|
||||
* between all compatible microcontrollers.
|
||||
*/
|
||||
#define MATRIX_ROW_PINS { D7 }
|
||||
#define MATRIX_COL_PINS { D1, D0, D4, C6, E6, B4, F4, F5, F6, F7, B3, B2 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* doesn't really matter lol */
|
||||
#define DIODE_DIRECTION COL2ROW
|
16
keyboards/40percentclub/polyandry/promicro/promicro.c
Normal file
16
keyboards/40percentclub/polyandry/promicro/promicro.c
Normal file
@ -0,0 +1,16 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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 "promicro.h"
|
27
keyboards/40percentclub/polyandry/promicro/promicro.h
Normal file
27
keyboards/40percentclub/polyandry/promicro/promicro.h
Normal file
@ -0,0 +1,27 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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 "polyandry.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
K000, K001, K002, \
|
||||
K003, K004, K005, \
|
||||
K006, K007, K008, \
|
||||
K009, K010, K011 \
|
||||
) { \
|
||||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 } \
|
||||
}
|
5
keyboards/40percentclub/polyandry/promicro/rules.mk
Normal file
5
keyboards/40percentclub/polyandry/promicro/rules.mk
Normal file
@ -0,0 +1,5 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = caterina
|
53
keyboards/40percentclub/polyandry/readme.md
Normal file
53
keyboards/40percentclub/polyandry/readme.md
Normal file
@ -0,0 +1,53 @@
|
||||
# Polyandry/polypad
|
||||
|
||||
![Polyandry](https://1.bp.blogspot.com/-97uoICZvZec/XSdpvCVFFlI/AAAAAAACVZY/BlCRjxjDqDAxOZa6C5ddQr0OsFQ9VZv5wCLcBGAs/s1600/d1.jpg)
|
||||
===
|
||||
|
||||
3x4/4x3 grid layout, multiple controllers supported
|
||||
- Pro Micro
|
||||
- PJRC Teensy 2.0
|
||||
|
||||
(**The below are not currently ported:**)
|
||||
|
||||
- PJRC Teensy LC/3.2
|
||||
- PJRC Teensy 3.5/3.6
|
||||
- Adafruit ItsyBitsy ATMega32u4
|
||||
- Adafruit ItsyBitsy M0
|
||||
- Adafruit ItsyBitsy M4
|
||||
|
||||
The matrix is electrically 1x12 with no diodes, with a thirteenth pin used for the column rather than a ground in order to be compatible with all the listed microcontrollers..
|
||||
|
||||
The default keymap is a testing keymap that is intended to make sure all of the keys on the matrix are working and properly assigned.
|
||||
|
||||
[The original (minimal arduino sketch) firmware, with support for some unsupported controllers](https://git.40percent.club/di0ib/Misc/src/branch/master/polyandry)
|
||||
|
||||
Keyboard Maintainer: QMK Community
|
||||
Hardware Supported: Polyandry PCB
|
||||
Hardware Availability: [Polyandry gerbers are on 40percent.club](https://www.40percent.club/2019/07/polyandry.html)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make 40percentclub/polyandry:default
|
||||
or
|
||||
qmk compile -kb 40percentclub/polyandry -km default
|
||||
|
||||
Default firmware is for an Arduino Pro Micro knockoff.
|
||||
|
||||
If you would like to specify a controller:
|
||||
|
||||
make 40percentclub/polyandry/promicro:default
|
||||
or
|
||||
qmk compile -kb 40percentclub/polyandry/promicro -km default
|
||||
make 40percentclub/polyandry/teensy2:default
|
||||
or
|
||||
qmk compile -kb 40percentclub/polyandry/teensy2 -km default
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the top left key of the keyboard (top right or bottom left in horizontal configuration)
|
||||
* **Physical reset**: Briefly press the button on the bottom of the microcontroller or, if not present short the pin marked RST to a GND.
|
||||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
|
||||
|
||||
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).
|
17
keyboards/40percentclub/polyandry/rules.mk
Normal file
17
keyboards/40percentclub/polyandry/rules.mk
Normal file
@ -0,0 +1,17 @@
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
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
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
DEFAULT_FOLDER = 40percentclub/polyandry/promicro
|
36
keyboards/40percentclub/polyandry/teensy2/config.h
Normal file
36
keyboards/40percentclub/polyandry/teensy2/config.h
Normal file
@ -0,0 +1,36 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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"
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 1
|
||||
#define MATRIX_COLS 12
|
||||
|
||||
/* key matrix pins */
|
||||
|
||||
// Note from original contributor (ryjelsum):
|
||||
// Untested - don't have teensy2. if some keys do not function or are in wrong place,
|
||||
// please check the pin definitions. I may have screwed up. :)
|
||||
|
||||
#define MATRIX_ROW_PINS { D3 }
|
||||
#define MATRIX_COL_PINS { B7, D0, D1, D2, C6, C7, F6, F7, B6, B5, D7, D6 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
5
keyboards/40percentclub/polyandry/teensy2/rules.mk
Normal file
5
keyboards/40percentclub/polyandry/teensy2/rules.mk
Normal file
@ -0,0 +1,5 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = halfkay
|
16
keyboards/40percentclub/polyandry/teensy2/teensy2.c
Normal file
16
keyboards/40percentclub/polyandry/teensy2/teensy2.c
Normal file
@ -0,0 +1,16 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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 "teensy2.h"
|
32
keyboards/40percentclub/polyandry/teensy2/teensy2.h
Normal file
32
keyboards/40percentclub/polyandry/teensy2/teensy2.h
Normal file
@ -0,0 +1,32 @@
|
||||
/* Copyright 2021
|
||||
*
|
||||
* 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
|
||||
|
||||
//NOTE TO FUTURE FROM RYJELSUM (original contributor):
|
||||
//This has been unchanged from the promicro.h file.
|
||||
//I DO NOT HAVE A TEENSY 2.0 TO TEST WITH.
|
||||
//I believe this should still work - but it's not a sure thing.
|
||||
|
||||
#include "polyandry.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
K000, K001, K002, \
|
||||
K003, K004, K005, \
|
||||
K006, K007, K008, \
|
||||
K009, K010, K011 \
|
||||
) { \
|
||||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 } \
|
||||
}
|
Loading…
Reference in New Issue
Block a user