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

add synthesis60 #15864

Merged
merged 9 commits into from
Jan 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
add synthesis60
  • Loading branch information
dayatz committed Jan 13, 2022
commit e08c43cd5175d03dcdb7ee437bf87545b92c1678
37 changes: 37 additions & 0 deletions keyboards/dyz/synthesis60/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
Copyright 2022 dayatz

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 <https://www.gnu.org/licenses/>.
*/

#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define MANUFACTURER dyz
#define PRODUCT Synthesis60 v2.1

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* Bootmagic Lite key configuration */
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0

#define LED_CAPS_LOCK_PIN D5
#define LED_NUM_LOCK_PIN C7
#define LED_PIN_ON_STATE 0

#define DYNAMIC_KEYMAP_LAYER_COUNT 3
122 changes: 122 additions & 0 deletions keyboards/dyz/synthesis60/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
dayatz marked this conversation as resolved.
Show resolved Hide resolved
"keyboard_name": "synthesis60",
"url": "https://github.com/dayatz/mechanical-keyboards/tree/master/synthesis60",
"maintainer": "dayatz",
"diode_direction": "COL2ROW",
"matrix_pins": {
"cols": [
"F7",
"F6",
"F5",
"F4",
"F1",
"F0",
"D7",
"D3",
"D2",
"E6",
"B3",
"B2",
"B1",
"B0"
],
"rows": ["B4", "B5", "B6", "D6", "D4"]
},
"rgblight": {
"led_count": 19,
"pin": "B7",
"hue_steps": 10,
"saturation_steps": 10,
"brightness_steps": 10,
"animations": {
"all": true
}
},
"usb": {
"vid": "0xD772",
"pid": "0x0017",
"device_ver": "0x0001"
},
"layouts": {
"LAYOUT_all": {
"layout": [
{ "label": "Home", "x": 0.55, "y": 1.15 },
{ "label": "@", "x": 3.7, "y": 1.2 },
{ "label": "_", "x": 13.15, "y": 1.2 },
{ "label": "Backspace", "x": 15.15, "y": 1.25 },
{ "label": "~", "x": 16.15, "y": 1.25 },
{ "label": "Esc", "x": 1.7, "y": 1.25 },
{ "label": "!", "x": 2.7, "y": 1.25 },
{ "label": "+", "x": 14.149999999999999, "y": 1.25 },
{ "label": "PgUp", "x": 0.35, "y": 2.15 },
{ "label": "P", "x": 13, "y": 2.2 },
{ "label": "Tab", "x": 1.5, "y": 2.25, "w": 1.5 },
{ "label": "Q", "x": 3, "y": 2.25 },
{ "label": "{", "x": 14, "y": 2.25 },
{ "label": "}", "x": 15, "y": 2.25 },
{ "label": "|", "x": 16, "y": 2.25, "w": 1.5 },
{ "label": "PgDn", "x": 0.15, "y": 3.15 },
{ "label": "Caps Lock", "x": 1.3, "y": 3.25, "w": 1.75 },
{ "label": "A", "x": 3.05, "y": 3.25 },
{ "label": ":", "x": 13.4, "y": 3.25 },
{ "label": "\"", "x": 14.4, "y": 3.25 },
{ "label": "Enter", "x": 15.4, "y": 3.25, "w": 2.25 },
{ "label": "Shift", "x": 1.05, "y": 4.25, "w": 2.25 },
{ "label": "Z", "x": 3.3, "y": 4.25 },
{ "label": ">", "x": 13.100000000000001, "y": 4.25 },
{ "label": "?", "x": 14.100000000000001, "y": 4.25 },
{
"label": "Shift",
"x": 15.100000000000001,
"y": 4.25,
"w": 1.75
},
{ "label": "Fn", "x": 16.85, "y": 4.25 },
{ "label": "Control", "x": 1.05, "y": 5.25, "w": 1.5 },
{ "label": "Control", "x": 16.0, "y": 5.25, "w": 1.5 },
{ "label": "#", "x": 5.05, "y": 0.25000000000000006 },
{ "label": "$", "x": 6.05, "y": 0.25000000000000006 },
{ "label": "%", "x": 7.05, "y": 0.25000000000000006 },
{ "label": "^", "x": 8.05, "y": 0.25000000000000006 },
{ "label": "W", "x": 4.6, "y": 1.25 },
{ "label": "E", "x": 5.6, "y": 1.25 },
{ "label": "R", "x": 6.6, "y": 1.25 },
{ "label": "T", "x": 7.6, "y": 1.25 },
{ "label": "S", "x": 4.85, "y": 2.25 },
{ "label": "D", "x": 5.85, "y": 2.25 },
{ "label": "F", "x": 6.85, "y": 2.25 },
{ "label": "G", "x": 7.85, "y": 2.25 },
{ "label": "X", "x": 5.3, "y": 3.25 },
{ "label": "C", "x": 6.3, "y": 3.25 },
{ "label": "V", "x": 7.3, "y": 3.25 },
{ "label": "B", "x": 8.3, "y": 3.25 },
{ "label": "Space", "x": 6.6, "y": 4.25, "w": 2 },
{ "label": "Space", "x": 8.6, "y": 4.25, "w": 1.25 },
{ "label": "Alt", "x": 5.05, "y": 4.3, "w": 1.5 },
{ "label": "*", "x": 9.45, "y": 3.85 },
{ "label": "(", "x": 10.45, "y": 3.85 },
{ "label": ")", "x": 11.45, "y": 3.85 },
{ "label": "&", "x": 8.45, "y": 3.85 },
{ "label": "Y", "x": 8.05, "y": 4.8500000000000005 },
{ "label": "U", "x": 9.05, "y": 4.8500000000000005 },
{ "label": "I", "x": 10.05, "y": 4.8500000000000005 },
{ "label": "O", "x": 11.05, "y": 4.8500000000000005 },
{ "label": "H", "x": 8.2, "y": 5.8500000000000005 },
{ "label": "J", "x": 9.2, "y": 5.8500000000000005 },
{ "label": "K", "x": 10.2, "y": 5.8500000000000005 },
{ "label": "L", "x": 11.2, "y": 5.8500000000000005 },
{ "label": "B", "x": 7.75, "y": 6.8500000000000005 },
{ "label": "N", "x": 8.75, "y": 6.8500000000000005 },
{ "label": "M", "x": 9.75, "y": 6.8500000000000005 },
{ "label": "<", "x": 10.75, "y": 6.8500000000000005 },
{
"label": "Space",
"x": 7.75,
"y": 7.8500000000000005,
"w": 2.75
},
{ "label": "Alt", "x": 10.55, "y": 7.9, "w": 1.5 }
]
}
}
}
67 changes: 67 additions & 0 deletions keyboards/dyz/synthesis60/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* Copyright 2019 Ryota Goto
*
* 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 <https://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

enum layer_names {
_BASE,
_FN,
_FN2
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_all( /* Base */
KC_HOME, KC_ESC, 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_PGUP, 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_PGDN, 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL,
KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RCTL
),
[_FN] = LAYOUT_all(
RGB_TOG, _______, 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_VOLU, _______, _______, KC_HOME, KC_UP, KC_END, _______, _______, _______, _______, _______, _______, _______, _______, _______,
KC_VOLD, _______, _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[_FN2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};

#ifdef OLED_DRIVER_ENABLE
void oled_task_user(void) {
// Host Keyboard Layer Status
oled_write_P(PSTR("Synthesis60\nLayer: "), false);
// Host Keyboard LED Status
led_t led_state = host_keyboard_led_state();
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
}
#endif
dayatz marked this conversation as resolved.
Show resolved Hide resolved

layer_state_t layer_state_set_user(layer_state_t state) {
if (get_highest_layer(state) != 0) {
writePinLow(C6);
} else {
writePinHigh(C6);
}
return state;
}
67 changes: 67 additions & 0 deletions keyboards/dyz/synthesis60/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* Copyright 2019 Ryota Goto
*
* 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 <https://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

enum layer_names {
_BASE,
_FN,
_FN2
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_all( /* Base */
KC_HOME, KC_ESC, 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_PGUP, 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_PGDN, 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL,
KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RCTL
),
[_FN] = LAYOUT_all(
RGB_TOG, _______, 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_VOLU, _______, _______, KC_HOME, KC_UP, KC_END, _______, _______, _______, _______, _______, _______, _______, _______, _______,
KC_VOLD, _______, _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[_FN2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};

#ifdef OLED_DRIVER_ENABLE
void oled_task_user(void) {
// Host Keyboard Layer Status
oled_write_P(PSTR("Synthesis60\nLayer: "), false);
// Host Keyboard LED Status
led_t led_state = host_keyboard_led_state();
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
}
#endif
dayatz marked this conversation as resolved.
Show resolved Hide resolved

layer_state_t layer_state_set_user(layer_state_t state) {
if (get_highest_layer(state) != 0) {
writePinLow(C6);
} else {
writePinHigh(C6);
}
return state;
}
1 change: 1 addition & 0 deletions keyboards/dyz/synthesis60/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIA_ENABLE = yes
28 changes: 28 additions & 0 deletions keyboards/dyz/synthesis60/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# MCU name
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
dayatz marked this conversation as resolved.
Show resolved Hide resolved
BOOTLOADER = atmel-dfu

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
MOUSEKEY_ENABLE = no # 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
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
ENCODER_ENABLE = no
OLED_DRIVER_ENABLE = yes
dayatz marked this conversation as resolved.
Show resolved Hide resolved
16 changes: 16 additions & 0 deletions keyboards/dyz/synthesis60/synthesis60.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Copyright 2019 Ryota Goto
*
* 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 <https://www.gnu.org/licenses/>.
*/
#include "synthesis60.h"
dayatz marked this conversation as resolved.
Show resolved Hide resolved
41 changes: 41 additions & 0 deletions keyboards/dyz/synthesis60/synthesis60.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* Copyright 2019 Ryota Goto
*
* 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 <https://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"
#define KNO KC_NO

/* This a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT_all( \
K40, K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K4D, \
K41, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
K42, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KNO }, \
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \
{ K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D } \
}