[Keyboard] Add phrygian design ph100 (#13738)

Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
master
phrygiandesign 2021-09-24 17:25:33 +10:00 committed by GitHub
parent c242693ec7
commit c6f92e37aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 387 additions and 0 deletions

View File

@ -0,0 +1,61 @@
/* Copyright 2020 QMK
*
* 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/>.
*/
/*
* This file was auto-generated by:
* `qmk chibios-confmigrate -i keyboards/phrygian/ph100/chconf.h -r platforms/chibios/common/configs/chconf.h`
*/
#pragma once
#define CH_CFG_ST_FREQUENCY 10000
#define CH_CFG_USE_REGISTRY TRUE
#define CH_CFG_USE_WAITEXIT TRUE
#define CH_CFG_USE_CONDVARS TRUE
#define CH_CFG_USE_MESSAGES TRUE
#define CH_CFG_USE_MAILBOXES TRUE
#define CH_CFG_USE_HEAP TRUE
#define CH_CFG_USE_MEMPOOLS TRUE
#define CH_CFG_USE_OBJ_FIFOS TRUE
#define CH_CFG_USE_PIPES TRUE
#define CH_CFG_USE_DYNAMIC TRUE
#define CH_CFG_USE_FACTORY TRUE
#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE
#define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE
#define CH_CFG_FACTORY_SEMAPHORES TRUE
#define CH_CFG_FACTORY_MAILBOXES TRUE
#define CH_CFG_FACTORY_OBJ_FIFOS TRUE
#define CH_CFG_FACTORY_PIPES TRUE
#include_next <chconf.h>

View File

@ -0,0 +1,43 @@
/* Copyright 2021 Phrygian Design
*
* 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 0x0C61
#define DEVICE_VER 0x0100
#define MANUFACTURER PhrygianDesign
#define PRODUCT ph100
/* key matrix size */
#define MATRIX_ROWS 10
#define MATRIX_COLS 10
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7, B8, B9 }
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, A8, A9 }
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* Define capslock and numlock */
#define LED_NUM_LOCK_PIN B14
#define LED_CAPS_LOCK_PIN B15
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 10

View File

@ -0,0 +1,37 @@
/* Copyright 2020 QMK
*
* 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/>.
*/
/*
* This file was auto-generated by:
* `qmk chibios-confmigrate -i keyboards/phrygian/ph100/halconf.h -r platforms/chibios/common/configs/halconf.h`
*/
#pragma once
#define HAL_USE_SERIAL_USB TRUE
#define ADC_USE_WAIT FALSE
#define ADC_USE_MUTUAL_EXCLUSION FALSE
#define SERIAL_USB_BUFFERS_SIZE 256
#define SPI_USE_WAIT FALSE
#define SPI_USE_MUTUAL_EXCLUSION FALSE
#include_next <halconf.h>

View File

@ -0,0 +1,111 @@
{
"keyboard_name": "ph100",
"url": "https://phrygiandesign.com/products/ph100-mechanical-keyboard",
"maintainer": "phrygiandesign",
"layouts": {
"LAYOUT": {
"layout": [
{"label":"ESCAPE", "x":0, "y":0},
{"label":"F1", "x":2, "y":0},
{"label":"F2", "x":3, "y":0},
{"label":"F3", "x":4, "y":0},
{"label":"F4", "x":5, "y":0},
{"label":"F5", "x":6.5, "y":0},
{"label":"F6", "x":7.5, "y":0},
{"label":"F7", "x":8.5, "y":0},
{"label":"F8", "x":9.5, "y":0},
{"label":"F9", "x":11, "y":0},
{"label":"F10", "x":12, "y":0},
{"label":"F11", "x":13, "y":0},
{"label":"F12", "x":14, "y":0},
{"label":"HOME", "x":15.25, "y":0},
{"label":"PRINT SCREEN", "x":16.25, "y":0},
{"label":"BACKTICK", "x":0, "y":1},
{"label":"1", "x":1, "y":1},
{"label":"2", "x":2, "y":1},
{"label":"3", "x":3, "y":1},
{"label":"4", "x":4, "y":1},
{"label":"5", "x":5, "y":1},
{"label":"6", "x":6, "y":1},
{"label":"7", "x":7, "y":1},
{"label":"8", "x":8, "y":1},
{"label":"9", "x":9, "y":1},
{"label":"0", "x":10, "y":1},
{"label":"MINUS", "x":11, "y":1},
{"label":"EQUALS", "x":12, "y":1},
{"label":"BACKSPACE", "x":13, "y":1, "w":2},
{"label":"END", "x":15.25, "y":1},
{"label":"PAGE UP", "x":16.25, "y":1},
{"label":"NUM LOCK", "x":17.5, "y":1},
{"label":"/", "x":18.5, "y":1},
{"label":"*", "x":19.5, "y":1},
{"label":"-", "x":20.5, "y":1},
{"label":"TAB", "x":0, "y":2, "w":1.5},
{"label":"Q", "x":1.5, "y":2},
{"label":"W", "x":2.5, "y":2},
{"label":"E", "x":3.5, "y":2},
{"label":"R", "x":4.5, "y":2},
{"label":"T", "x":5.5, "y":2},
{"label":"Y", "x":6.5, "y":2},
{"label":"U", "x":7.5, "y":2},
{"label":"I", "x":8.5, "y":2},
{"label":"O", "x":9.5, "y":2},
{"label":"P", "x":10.5, "y":2},
{"label":"LEFT BRACKET", "x":11.5, "y":2},
{"label":"RIGHT BRACKET", "x":12.5, "y":2},
{"label":"BACK SLASH", "x":13.5, "y":2, "w":1.5},
{"label":"DELETE", "x":15.25, "y":2},
{"label":"PAGE DOWN", "x":16.25, "y":2},
{"label":"7", "x":17.5, "y":2},
{"label":"8", "x":18.5, "y":2},
{"label":"9", "x":19.5, "y":2},
{"label":"+", "x":20.5, "y":2, "h":2},
{"label":"CAPS LOCK", "x":0, "y":3, "w":1.75},
{"label":"A", "x":1.75, "y":3},
{"label":"S", "x":2.75, "y":3},
{"label":"D", "x":3.75, "y":3},
{"label":"F", "x":4.75, "y":3},
{"label":"G", "x":5.75, "y":3},
{"label":"H", "x":6.75, "y":3},
{"label":"J", "x":7.75, "y":3},
{"label":"K", "x":8.75, "y":3},
{"label":"L", "x":9.75, "y":3},
{"label":"SEMICOLON", "x":10.75, "y":3},
{"label":"SINGLE TICK", "x":11.75, "y":3},
{"label":"ENTER", "x":12.75, "y":3, "w":2.25},
{"label":"4", "x":17.5, "y":3},
{"label":"5", "x":18.5, "y":3},
{"label":"6", "x":19.5, "y":3},
{"label":"LEFT SHIFT", "x":0, "y":4, "w":2.25},
{"label":"Z", "x":2.25, "y":4},
{"label":"X", "x":3.25, "y":4},
{"label":"C", "x":4.25, "y":4},
{"label":"V", "x":5.25, "y":4},
{"label":"B", "x":6.25, "y":4},
{"label":"N", "x":7.25, "y":4},
{"label":"M", "x":8.25, "y":4},
{"label":"COMMA", "x":9.25, "y":4},
{"label":"PERIOD", "x":10.25, "y":4},
{"label":"FORWARD SLASH", "x":11.25, "y":4},
{"label":"RIGHT SHIFT", "x":12.25, "y":4, "w":2.25},
{"label":"UP ARROW", "x":15.25, "y":4},
{"label":"1", "x":17.5, "y":4},
{"label":"2", "x":18.5, "y":4},
{"label":"3", "x":19.5, "y":4},
{"label":"ENTER", "x":20.5, "y":4, "h":2},
{"label":"LEFT CTRL", "x":0, "y":5, "w":1.25},
{"label":"LEFT WIN", "x":1.25, "y":5, "w":1.25},
{"label":"LEFT ALT", "x":2.5, "y":5, "w":1.25},
{"label":"SPACEBAR", "x":3.75, "y":5, "w":6.25},
{"label":"RIGHT ALT", "x":10, "y":5, "w":1.25},
{"label":"RIGHT CTRL", "x":11.25, "y":5, "w":1.25},
{"label":"FN", "x":12.5, "y":5},
{"label":"LEFT ARROW", "x":14.25, "y":5},
{"label":"DOWN ARROW", "x":15.25, "y":5},
{"label":"RIGHT ARROW", "x":16.25, "y":5},
{"label":"0", "x":17.5, "y":5, "w":2},
{"label":".", "x":19.5, "y":5}
]
}
}
}

View File

@ -0,0 +1,27 @@
/* Copyright 2021 Phrygian Design
*
* 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] = {
[0] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_PGUP,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, KC_PGDN, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_HOME, KC_END, KC_P7, KC_P8, KC_P9,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_APP, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT)
};

View File

@ -0,0 +1,19 @@
/* Copyright 2021 Phrygian Design
*
* 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 "ph100.h"
//Put software here

View File

@ -0,0 +1,44 @@
/* Copyright 2021 Phrygian Design
*
* 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
#define XXX KC_NO
#include "quantum.h"
// This a shortcut to help you visually see your layout.
#define LAYOUT(\
K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K61, K62, K63, K64, K65, \
K11, K12, K13, K14, K15, K16, K17, K18, K19, K20, K71, K72, K73, K74, K75, K76, K66, K67, K68, K69, \
K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, K81, K82, K83, K84, K85, K86, K77, K78, K79, \
K31, K32, K33, K34, K35, K36, K37, K38, K39, K40, K91, K93, K95, K87, K88, K80, K70, \
K41, K42, K43, K44, K45, K46, K47, K48, K49, K50, K92, K94, K96, K97, K89, K90, \
K51, K52, K53, K54, K55, K56, K57, K58, K59, K60, K98, K99, K100\
){ \
{ K01, K02, K03, K04, K05, K06, K07, K08, K09, K10 }, \
{ K11, K12, K13, K14, K15, K16, K17, K18, K19, K20 }, \
{ K21, K22, K23, K24, K25, K26, K27, K28, K29, K30 }, \
{ K31, K32, K33, K34, K35, K36, K37, K38, K39, K40 }, \
{ K41, K42, K43, K44, K45, K46, K47, K48, K49, K50 }, \
{ K51, K52, K53, K54, K55, K56, K57, K58, K59, K60 }, \
{ K61, K62, K63, K64, K65, K66, K67, K68, K69, K70 }, \
{ K71, K72, K73, K74, K75, K76, K77, K78, K79, K80 }, \
{ K81, K82, K83, K84, K85, K86, K87, K88, K89, K90 }, \
{ K91, K92, K93, K94, K95, K96, K97, K98, K99, K100 }, \
}

View File

@ -0,0 +1,20 @@
## Phrygian Design ph100
![ph100](https://cdn.shopify.com/s/files/1/0470/8814/0443/products/DSCF0064_1080x.png)
The ph100 is a 100-key modular keyboard from Phrygian Design.
* Keyboard Maintainer: https://github.com/phrygiandesign
* Hardware Supported: ph100 PCB
* Hardware Availability: https://phrygiandesign.com/products/ph100-mechanical-keyboard
* Keyboard support: contact@phrygiandesign.com
Make example for this keyboard:
make phrygian/ph100:default
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).
#### Note: Booting into the STM32 USB Bootloader
The STM32F042 range of microcontrollers have problems with entering into the USB bootloader with QMK's bootloader key sequence.
To boot into the bootloader, apply power to the keyboard while holding down "SW0" on the bottom of PCB near the USB port.

View File

@ -0,0 +1,25 @@
# MCU name
MCU = STM32F042
# Bootloader selection
BOOTLOADER = stm32-dfu
# 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 = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
# Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE