From 4edef2acc4ea44a8120dd40f1fc35c1e71118430 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 13:57:06 -0700 Subject: [PATCH 01/28] Create readme.md --- keyboard/pteron56/readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 keyboard/pteron56/readme.md diff --git a/keyboard/pteron56/readme.md b/keyboard/pteron56/readme.md new file mode 100644 index 000000000000..8178c76d627c --- /dev/null +++ b/keyboard/pteron56/readme.md @@ -0,0 +1 @@ +readme From db60c691ae78f78142a8fb31dab795e782eb8ed8 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 13:58:53 -0700 Subject: [PATCH 02/28] Delete keyboard/pteron56 directory --- keyboard/pteron56/readme.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 keyboard/pteron56/readme.md diff --git a/keyboard/pteron56/readme.md b/keyboard/pteron56/readme.md deleted file mode 100644 index 8178c76d627c..000000000000 --- a/keyboard/pteron56/readme.md +++ /dev/null @@ -1 +0,0 @@ -readme From 18d4d4a80ac29ee0c6fb1c1c61bd1019748a7019 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 13:59:21 -0700 Subject: [PATCH 03/28] Create readme.md --- keyboards/pteron56/readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 keyboards/pteron56/readme.md diff --git a/keyboards/pteron56/readme.md b/keyboards/pteron56/readme.md new file mode 100644 index 000000000000..8178c76d627c --- /dev/null +++ b/keyboards/pteron56/readme.md @@ -0,0 +1 @@ +readme From c3f3f4ba9bd4c85eb0bac500ba97c341094ef451 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:00:03 -0700 Subject: [PATCH 04/28] Add files via upload --- keyboards/pteron56/Makefile | 3 + keyboards/pteron56/config.h | 68 +++++ keyboards/pteron56/keymaps/brant/config.h | 54 ++++ keyboards/pteron56/keymaps/brant/keymap.c | 52 ++++ keyboards/pteron56/keymaps/brant/rules.mk | 56 ++++ keyboards/pteron56/keymaps/default/keymap.c | 62 ++++ keyboards/pteron56/keymaps/melissa/keymap.c | 73 +++++ keyboards/pteron56/keymaps/via/keymap.c | 47 +++ keyboards/pteron56/keymaps/via/rules.mk | 3 + keyboards/pteron56/pteron56.c | 17 ++ keyboards/pteron56/pteron56.h | 20 ++ keyboards/pteron56/pteron56.json | 323 ++++++++++++++++++++ keyboards/pteron56/rules.mk | 56 ++++ 13 files changed, 834 insertions(+) create mode 100644 keyboards/pteron56/Makefile create mode 100644 keyboards/pteron56/config.h create mode 100644 keyboards/pteron56/keymaps/brant/config.h create mode 100644 keyboards/pteron56/keymaps/brant/keymap.c create mode 100644 keyboards/pteron56/keymaps/brant/rules.mk create mode 100644 keyboards/pteron56/keymaps/default/keymap.c create mode 100644 keyboards/pteron56/keymaps/melissa/keymap.c create mode 100644 keyboards/pteron56/keymaps/via/keymap.c create mode 100644 keyboards/pteron56/keymaps/via/rules.mk create mode 100644 keyboards/pteron56/pteron56.c create mode 100644 keyboards/pteron56/pteron56.h create mode 100644 keyboards/pteron56/pteron56.json create mode 100644 keyboards/pteron56/rules.mk diff --git a/keyboards/pteron56/Makefile b/keyboards/pteron56/Makefile new file mode 100644 index 000000000000..57b2ef62e5f3 --- /dev/null +++ b/keyboards/pteron56/Makefile @@ -0,0 +1,3 @@ +ifndef MAKEFILE_INCLUDED + include ../../Makefile +endif diff --git a/keyboards/pteron56/config.h b/keyboards/pteron56/config.h new file mode 100644 index 000000000000..244d4d0ee6ae --- /dev/null +++ b/keyboards/pteron56/config.h @@ -0,0 +1,68 @@ +/*pteron56 +*Copyright (C) 2023 @kraken-jokes +* +*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 3 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 +*IMERCHANTABILITY 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 . +*/ +#ifndef CONFIG_H +#define CONFIG_H + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x6D4B +#define PRODUCT_ID 0x7056 +#define DEVICE_VER 0x0002 +#define MANUFACTURER MooreKeys +#define PRODUCT Pteron56 v0.2 +//#define DESCRIPTION Pteron56 v0.2 + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 12 + +/* key matrix pins */ +#define MATRIX_ROW_PINS { D3, D2, F4, D4, B5 } +#define MATRIX_COL_PINS { E6, B4, D7, C6, D0, D1, F6, F7, B1, B3, B6, B2 } +//#define UNUSED_PINS { F5 } + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION ROW2COL + +/* number of backlight levels */ + +#ifdef BACKLIGHT_PIN +#define BACKLIGHT_LEVELS 3 +#endif + + +/* Set 0 if debouncing isn't needed */ +//#define DEBOUNCING_DELAY 5 + +/* 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 + +/* key combination for command */ +#define IS_COMMAND() ( \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ +) + +/* prevent stuck modifiers */ +//#define PREVENT_STUCK_MODIFIERS + + + +#endif \ No newline at end of file diff --git a/keyboards/pteron56/keymaps/brant/config.h b/keyboards/pteron56/keymaps/brant/config.h new file mode 100644 index 000000000000..d708e6b47dbb --- /dev/null +++ b/keyboards/pteron56/keymaps/brant/config.h @@ -0,0 +1,54 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x6D4B +#define PRODUCT_ID 0x7056 +#define DEVICE_VER 0x0001 +#define MANUFACTURER MooreKeys +#define PRODUCT Pteron56 v0.1 + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 12 + +/* key matrix pins */ +#define MATRIX_ROW_PINS { D3, D2, F4, D4, B5 } +#define MATRIX_COL_PINS { E6, B4, D7, C6, D0, D1, F6, F7, B1, B3, B6, B2 } + + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION ROW2COL + +/* number of backlight levels */ + +#ifdef BACKLIGHT_PIN +#define BACKLIGHT_LEVELS 0 +#endif + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCING_DELAY 5 + +/* 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 + +/* key combination for command */ +#define IS_COMMAND() ( \ + keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ +) + + +#ifdef RGB_DI_PIN +#define RGBLIGHT_ANIMATIONS +#define RGBLED_NUM 0 +#define RGBLIGHT_HUE_STEP 8 +#define RGBLIGHT_SAT_STEP 8 +#define RGBLIGHT_VAL_STEP 8 +#endif + +#endif \ No newline at end of file diff --git a/keyboards/pteron56/keymaps/brant/keymap.c b/keyboards/pteron56/keymaps/brant/keymap.c new file mode 100644 index 000000000000..ec964011d0e5 --- /dev/null +++ b/keyboards/pteron56/keymaps/brant/keymap.c @@ -0,0 +1,52 @@ +/*pteron56 +*Copyright (C) 2023 @kraken-jokes +* +*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 3 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 +*IMERCHANTABILITY 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 . +*/ +#include "pteron56.h" + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + KEYMAP( + KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, + KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + LCTL(KC_C), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, + LT(1,KC_LGUI), KC_LCTL, KC_LSFT, KC_LALT, LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), + + KEYMAP( + KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, + KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), + + KEYMAP( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MYCM, KC_PSLS, KC_PAST, + KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_PPLS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PDOT), + +}; + +void matrix_init_user(void) { +} + +void matrix_scan_user(void) { +} + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + return true; +} \ No newline at end of file diff --git a/keyboards/pteron56/keymaps/brant/rules.mk b/keyboards/pteron56/keymaps/brant/rules.mk new file mode 100644 index 000000000000..6a146d8c546c --- /dev/null +++ b/keyboards/pteron56/keymaps/brant/rules.mk @@ -0,0 +1,56 @@ +# MCU name +MCU = atmega32u4 + +# Processor frequency. +# This will define a symbol, F_CPU, in all source code files equal to the +# processor frequency in Hz. You can then use this symbol in your source code to +# calculate timings. Do NOT tack on a 'UL' at the end, this will be done +# automatically to create a 32-bit value in your source code. +# +# This will be an integer division of F_USB below, as it is sourced by +# F_USB after it has run through any CPU prescalers. Note that this value +# does not *change* the processor frequency - it should merely be updated to +# reflect the processor speed set externally so that the code can use accurate +# software delays. +F_CPU = 16000000 + +# +# LUFA specific +# +# Target architecture (see library "Board Types" documentation). +ARCH = AVR8 + +# Input clock frequency. +# This will define a symbol, F_USB, in all source code files equal to the +# input clock frequency (before any prescaling is performed) in Hz. This value may +# differ from F_CPU if prescaling is used on the latter, and is required as the +# raw input clock is fed directly to the PLL sections of the AVR for high speed +# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' +# at the end, this will be done automatically to create a 32-bit value in your +# source code. +# +# If no clock division is performed on the input clock inside the AVR (via the +# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. +F_USB = $(F_CPU) + +# Interrupt driven control endpoint task(+60) +OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT + + +# Boot Section Size in *bytes* +BOOTLOADER = caterina + + +# Build Options +# comment out to disable the options. +# +BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) +MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) +EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) +CONSOLE_ENABLE ?= no # Console for debug(+400) +COMMAND_ENABLE ?= no # Commands for debug and configuration +SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend +NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality +AUDIO_ENABLE ?= no +RGBLIGHT_ENABLE ?= no \ No newline at end of file diff --git a/keyboards/pteron56/keymaps/default/keymap.c b/keyboards/pteron56/keymaps/default/keymap.c new file mode 100644 index 000000000000..814764d90fce --- /dev/null +++ b/keyboards/pteron56/keymaps/default/keymap.c @@ -0,0 +1,62 @@ +/*pteron56 +*Copyright (C) 2023 @kraken-jokes +* +*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 3 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 +*IMERCHANTABILITY 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 . +*/ +#include "pteron56.h" + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + LAYOUT( + 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_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, + KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + KC_RBRC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, + LT(1,KC_LGUI), KC_LCTL, KC_LSFT, LT(2,KC_LALT), LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), + + LAYOUT( + KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, + KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, + KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), + + LAYOUT( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_BSPC, + KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PSLS, KC_PAST, + KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_TRNS, KC_TRNS, KC_TRNS, + KC_LBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PDOT, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, LGUI(LSFT(KC_S)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0), + +}; + +void matrix_init_user(void) { +} + +void matrix_scan_user(void) { +} + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { +// switch (keycode) { +// case DIFHIL: +// if (record->event.pressed) { +// // when keycode DIFHIL is pressed +// // SEND_STRING("echo \"KexAlgorithms +diffie-hellman-group1-sha1\" > .ssh/config"); +// } else { +// // when keycode DIFHIL is released +// } +// break; +// } + return true; +} \ No newline at end of file diff --git a/keyboards/pteron56/keymaps/melissa/keymap.c b/keyboards/pteron56/keymaps/melissa/keymap.c new file mode 100644 index 000000000000..1cfaba6a0747 --- /dev/null +++ b/keyboards/pteron56/keymaps/melissa/keymap.c @@ -0,0 +1,73 @@ +/*pteron56 +*Copyright (C) 2023 @kraken-jokes +* +*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 3 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 +*IMERCHANTABILITY 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 . +*/ +#include "pteron56.h" +enum my_keycodes { + PASS = SAFE_RANGE, + USER +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + LAYOUT( + KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, + KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, + PASS, KC_CAPS, KC_SPC, KC_ENT, TG(1), KC_SPC, KC_RALT, KC_RGUI), + + LAYOUT( + LCTL(KC_C), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_PSLS, KC_PAST, KC_INS, KC_BSPC, + KC_TAB, KC_LBRC, KC_UP, KC_RBRC, KC_LCBR, KC_RCBR, KC_NUM, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_D=` + LCTL(KC_X), LALT(KC_F4), LALT(KC_ESC), KC_MUTE, KC_MSTP, KC_MPLY, KC_PGDN, KC_P1, KC_P2, KC_P3, KC_BSLS, TO(0), + KC_LGUI, KC_LALT, KC_LCTL, KC_SPC, KC_ENT, KC_SPC, KC_P0, KC_PDOT), + + LAYOUT( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_BSPC, + KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PSLS, KC_PAST, + KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_TRNS, KC_TRNS, KC_TRNS, + KC_LBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PDOT, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, LGUI(LSFT(KC_S)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0), + +}; + +void matrix_init_user(void) { +} + +void matrix_scan_user(void) { +} + +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case PASS: + if (record->event.pressed) { + // when keycode M4 is pressed + SEND_STRING("Ineedmorethan24h)@"); + } else { + // when keycode M4 is released + } + break; + case USER: + if(record->event.pressed) { + // when keycode USER is pressed + SEND_STRING("lahlouh211"); + } else { + // when keycode USER is released + } + break; + } + return true; +} \ No newline at end of file diff --git a/keyboards/pteron56/keymaps/via/keymap.c b/keyboards/pteron56/keymaps/via/keymap.c new file mode 100644 index 000000000000..5a80c8d7cb1f --- /dev/null +++ b/keyboards/pteron56/keymaps/via/keymap.c @@ -0,0 +1,47 @@ +#include "pteron56.h" + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + 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_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, + KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, + LT(1,KC_LGUI), KC_LCTL, KC_LSFT, LT(2,KC_LALT), LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), + + [1] = LAYOUT( + KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, + KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, + KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), + + [2] = LAYOUT( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_DEL, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MYCM, KC_PSLS, KC_PAST, + RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, RGB_M_P, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PDOT), + +}; + +void matrix_init_user(void) { +} + +void matrix_scan_user(void) { +} + +//# ifdef OCEAN_DREAM_ENABLE +// render_stars(); +//# endif + +//bool encoder_update_user(uint8_t index, bool clockwise) { +// if (index == 0) { /* First encoder */ +// if (clockwise) { +// tap_code(KC_VOLU); +// } else { +// tap_code(KC_VOLD); +// } +// } +// return false; +//} \ No newline at end of file diff --git a/keyboards/pteron56/keymaps/via/rules.mk b/keyboards/pteron56/keymaps/via/rules.mk new file mode 100644 index 000000000000..2da96e96b999 --- /dev/null +++ b/keyboards/pteron56/keymaps/via/rules.mk @@ -0,0 +1,3 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes +VIAL_ENABLE = yes \ No newline at end of file diff --git a/keyboards/pteron56/pteron56.c b/keyboards/pteron56/pteron56.c new file mode 100644 index 000000000000..99c9cc7eedd1 --- /dev/null +++ b/keyboards/pteron56/pteron56.c @@ -0,0 +1,17 @@ +/*pteron56 +*Copyright (C) 2023 @kraken-jokes +* +*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 3 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 +*IMERCHANTABILITY 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 . +*/ +#include "pteron56.h" \ No newline at end of file diff --git a/keyboards/pteron56/pteron56.h b/keyboards/pteron56/pteron56.h new file mode 100644 index 000000000000..2b859fab3e80 --- /dev/null +++ b/keyboards/pteron56/pteron56.h @@ -0,0 +1,20 @@ +#ifndef KB_H +#define KB_H + +#include "quantum.h" + +#define LAYOUT( \ + K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, \ + K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \ + K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \ + K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, \ + K400, K401, K402, K403, K408, K409, K410, K411 \ +) { \ + { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011 }, \ + { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111 }, \ + { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211 }, \ + { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311 }, \ + { K400, K401, K402, K403, KC_NO, KC_NO, KC_NO, KC_NO, K408, K409, K410, K411 } \ +} + +#endif \ No newline at end of file diff --git a/keyboards/pteron56/pteron56.json b/keyboards/pteron56/pteron56.json new file mode 100644 index 000000000000..52bf2e913694 --- /dev/null +++ b/keyboards/pteron56/pteron56.json @@ -0,0 +1,323 @@ +{ + "name":"pteron56", + "vendorId": "0x6D4B", + "productId": "0x7056", + "lighting": "none", + "matrix": { + "rows": 5, + "cols": 12 + }, + "layouts": { + "keymap":[ + [ + { + "y": 0.25, + "x": 3, + "c": "#bbbbbb" + }, + "0,3", + { + "x": 7.5 + }, + "0,8" + ], + [ + { + "y": -0.75, + "x": 2 + }, + "0,2", + { + "x": 1 + }, + "0,4", + { + "x": 5.5 + }, + "0,7", + { + "x": 1 + }, + "0,9" + ], + [ + { + "y": -0.75, + "x": 5 + }, + "0,5", + { + "x": 3.5 + }, + "0,6" + ], + [ + { + "y": -0.75, + "c": "#aaaaaa" + }, + "0,0", + { + "c": "#bbbbbb" + }, + "0,1", + { + "x": 11.5 + }, + "0,10", + { + "c": "#aaaaaa" + }, + "0,11" + ], + [ + { + "y": -0.75, + "x": 3, + "c": "#cccccc" + }, + "1,3", + { + "x": 7.5 + }, + "1,8" + ], + [ + { + "y": -0.75, + "x": 2 + }, + "1,2", + { + "x": 1 + }, + "1,4", + { + "x": 5.5 + }, + "1,7", + { + "x": 1 + }, + "1,9" + ], + [ + { + "y": -0.75, + "x": 5 + }, + "1,5", + { + "x": 3.5 + }, + "1,6" + ], + [ + { + "y": -0.75, + "c": "#aaaaaa" + }, + "1,0", + { + "c": "#cccccc" + }, + "1,1", + { + "x": 11.5 + }, + "1,10", + { + "c": "#aaaaaa" + }, + "1,11" + ], + [ + { + "y": -0.75, + "x": 3, + "c": "#cccccc" + }, + "2,3", + { + "x": 7.5 + }, + "2,8" + ], + [ + { + "y": -0.75, + "x": 2 + }, + "2,2", + { + "x": 1 + }, + "2,4", + { + "x": 5.5 + }, + "2,7", + { + "x": 1 + }, + "2,9" + ], + [ + { + "y": -0.75, + "x": 5 + }, + "2,5", + { + "x": 3.5 + }, + "2,6" + ], + [ + { + "y": -0.75, + "c": "#aaaaaa" + }, + "2,0", + { + "c": "#cccccc" + }, + "2,1", + { + "x": 11.5 + }, + "2,10", + { + "c": "#aaaaaa" + }, + "2,11" + ], + [ + { + "y": -0.75, + "x": 3, + "c": "#cccccc" + }, + "3,3", + { + "x": 7.5 + }, + "3,8" + ], + [ + { + "y": -0.75, + "x": 2 + }, + "3,2", + { + "x": 1 + }, + "3,4", + { + "x": 5.5 + }, + "3,7", + { + "x": 1 + }, + "3,9" + ], + [ + { + "y": -0.75, + "x": 5 + }, + "3,5", + { + "x": 3.5 + }, + "3,6" + ], + [ + { + "y": -0.75, + "c": "#aaaaaa" + }, + "3,0", + { + "c": "#cccccc" + }, + "3,1", + { + "x": 11.5 + }, + "3,10", + { + "c": "#aaaaaa" + }, + "3,11" + ], + [ + { + "rx": 3.5, + "ry": 9, + "y": -4.5, + "x": -0.5 + }, + "4,0" + ], + [ + { + "rx": 11, + "y": -4.5, + "x": 0.5 + }, + "4,11" + ], + [ + { + "r": 15, + "rx": 3.5, + "y": -4.5, + "x": -0.25 + }, + "4,1" + ], + [ + { + "r": 30, + "y": -1 + }, + "4,2" + ], + [ + { + "r": 45, + "y": -1, + "x": 0.25 + }, + "4,3" + ], + [ + { + "r": -45, + "rx": 11, + "y": -3.75, + "x": -0.5 + }, + "4,8" + ], + [ + { + "r": -30, + "y": -1.25 + }, + "4,9" + ], + [ + { + "r": -15, + "y": -1.25, + "x": 0.25 + }, + "4,10" + ] + ] + } +} \ No newline at end of file diff --git a/keyboards/pteron56/rules.mk b/keyboards/pteron56/rules.mk new file mode 100644 index 000000000000..0cf33965f3ba --- /dev/null +++ b/keyboards/pteron56/rules.mk @@ -0,0 +1,56 @@ +# MCU name +MCU = atmega32u4 + +# Processor frequency. +# This will define a symbol, F_CPU, in all source code files equal to the +# processor frequency in Hz. You can then use this symbol in your source code to +# calculate timings. Do NOT tack on a 'UL' at the end, this will be done +# automatically to create a 32-bit value in your source code. +# +# This will be an integer division of F_USB below, as it is sourced by +# F_USB after it has run through any CPU prescalers. Note that this value +# does not *change* the processor frequency - it should merely be updated to +# reflect the processor speed set externally so that the code can use accurate +# software delays. +F_CPU = 16000000 + +# +# LUFA specific +# +# Target architecture (see library "Board Types" documentation). +ARCH = AVR8 + +# Input clock frequency. +# This will define a symbol, F_USB, in all source code files equal to the +# input clock frequency (before any prescaling is performed) in Hz. This value may +# differ from F_CPU if prescaling is used on the latter, and is required as the +# raw input clock is fed directly to the PLL sections of the AVR for high speed +# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' +# at the end, this will be done automatically to create a 32-bit value in your +# source code. +# +# If no clock division is performed on the input clock inside the AVR (via the +# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. +F_USB = $(F_CPU) + +# Interrupt driven control endpoint task(+60) +OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT + + +# Boot Section Size in *bytes* +BOOTLOADER = qmk-dfu + + +# Build Options +# comment out to disable the options. +# +BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) +MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) +EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) +CONSOLE_ENABLE ?= no # Console for debug(+400) +COMMAND_ENABLE ?= no # Commands for debug and configuration +SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend +NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality +AUDIO_ENABLE ?= no +RGBLIGHT_ENABLE ?= no \ No newline at end of file From b88c28f9da24e1f0227eb429a043cbaa8ab4b55e Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:00:44 -0700 Subject: [PATCH 05/28] Delete readme.md --- keyboards/pteron56/readme.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 keyboards/pteron56/readme.md diff --git a/keyboards/pteron56/readme.md b/keyboards/pteron56/readme.md deleted file mode 100644 index 8178c76d627c..000000000000 --- a/keyboards/pteron56/readme.md +++ /dev/null @@ -1 +0,0 @@ -readme From c87db90dda815b2ae14c883bb30bd137faa8eefa Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:01:17 -0700 Subject: [PATCH 06/28] Add files via upload --- keyboards/pteron56/readme.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 keyboards/pteron56/readme.md diff --git a/keyboards/pteron56/readme.md b/keyboards/pteron56/readme.md new file mode 100644 index 000000000000..f097f8321d0f --- /dev/null +++ b/keyboards/pteron56/readme.md @@ -0,0 +1,33 @@ +# Pteron56 + +![%Pteron56%](https://user-images.githubusercontent.com/67011325/215351130-55bd1d58-3774-4123-8ee2-7352dfbc8ddd.jpg) + +The Pteron56 is a 56-key vertically staggered ortholinear keyboard with a 15 degree inward tilt per hand. + +Initially developed by @FSund, this keyboard was designed to potentially reduce wrist and typing strain by offsetting the keys in a manner that mimics the natural stagger of the human hand. + +Users have reported reduced finger movement, reduced wrist movement, and better typing comfort and swiftness with the Pteron layouts compared to a standard keyboard. + +Another feature is the 4 thumb keys per side arranged around an ~85mm arc to mimic the swimg of one's mighty thumbs. + +* Keyboard Maintainer: [Alex Moore](https://github.com/%kraken-jokes%) +* Hardware Supported: [PCB]Pteron56v0.2, Pteron56v0.2hsu, Pteron56v0.3, Pteron56v0.4e [MCU]Pro-Micro, Elite-C +* Hardware Availability: moorekeys.etsy.com + +Note: Pteron56v0.1 users can also use this directory, but *must* use the Brant keymap (pteron56:Brant) + +Make example for this keyboard (after setting up your build environment): + + make pteron56:default + +Flashing example for this keyboard: + + make pteron56:default:flash + +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). + +## Bootloader + +Enter the bootloader thusly: +* **Keycode in layout**: Press and hold the right most thumb key on the left side (LT(2(KC_ALT)) and while that is held, hit the top left key on the left side of the keyboard (KC_ESC) which will reset the board and enter bootloader mode. +Thumb and pinky is my method, but do what you will. From 0bc4a5e3af257f62ffeb1a3730f6ec73c52b586d Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:04:30 -0700 Subject: [PATCH 07/28] bootloader = caterina --- keyboards/pteron56/rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/pteron56/rules.mk b/keyboards/pteron56/rules.mk index 0cf33965f3ba..49e69e754a12 100644 --- a/keyboards/pteron56/rules.mk +++ b/keyboards/pteron56/rules.mk @@ -38,7 +38,7 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT # Boot Section Size in *bytes* -BOOTLOADER = qmk-dfu +BOOTLOADER = caterina # Build Options @@ -53,4 +53,4 @@ SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality AUDIO_ENABLE ?= no -RGBLIGHT_ENABLE ?= no \ No newline at end of file +RGBLIGHT_ENABLE ?= no From 3512c8fca91d4f6dcffcd81c2f9f03f491ce01e7 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:06:27 -0700 Subject: [PATCH 08/28] Delete pteron56.json --- keyboards/pteron56/pteron56.json | 323 ------------------------------- 1 file changed, 323 deletions(-) delete mode 100644 keyboards/pteron56/pteron56.json diff --git a/keyboards/pteron56/pteron56.json b/keyboards/pteron56/pteron56.json deleted file mode 100644 index 52bf2e913694..000000000000 --- a/keyboards/pteron56/pteron56.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "name":"pteron56", - "vendorId": "0x6D4B", - "productId": "0x7056", - "lighting": "none", - "matrix": { - "rows": 5, - "cols": 12 - }, - "layouts": { - "keymap":[ - [ - { - "y": 0.25, - "x": 3, - "c": "#bbbbbb" - }, - "0,3", - { - "x": 7.5 - }, - "0,8" - ], - [ - { - "y": -0.75, - "x": 2 - }, - "0,2", - { - "x": 1 - }, - "0,4", - { - "x": 5.5 - }, - "0,7", - { - "x": 1 - }, - "0,9" - ], - [ - { - "y": -0.75, - "x": 5 - }, - "0,5", - { - "x": 3.5 - }, - "0,6" - ], - [ - { - "y": -0.75, - "c": "#aaaaaa" - }, - "0,0", - { - "c": "#bbbbbb" - }, - "0,1", - { - "x": 11.5 - }, - "0,10", - { - "c": "#aaaaaa" - }, - "0,11" - ], - [ - { - "y": -0.75, - "x": 3, - "c": "#cccccc" - }, - "1,3", - { - "x": 7.5 - }, - "1,8" - ], - [ - { - "y": -0.75, - "x": 2 - }, - "1,2", - { - "x": 1 - }, - "1,4", - { - "x": 5.5 - }, - "1,7", - { - "x": 1 - }, - "1,9" - ], - [ - { - "y": -0.75, - "x": 5 - }, - "1,5", - { - "x": 3.5 - }, - "1,6" - ], - [ - { - "y": -0.75, - "c": "#aaaaaa" - }, - "1,0", - { - "c": "#cccccc" - }, - "1,1", - { - "x": 11.5 - }, - "1,10", - { - "c": "#aaaaaa" - }, - "1,11" - ], - [ - { - "y": -0.75, - "x": 3, - "c": "#cccccc" - }, - "2,3", - { - "x": 7.5 - }, - "2,8" - ], - [ - { - "y": -0.75, - "x": 2 - }, - "2,2", - { - "x": 1 - }, - "2,4", - { - "x": 5.5 - }, - "2,7", - { - "x": 1 - }, - "2,9" - ], - [ - { - "y": -0.75, - "x": 5 - }, - "2,5", - { - "x": 3.5 - }, - "2,6" - ], - [ - { - "y": -0.75, - "c": "#aaaaaa" - }, - "2,0", - { - "c": "#cccccc" - }, - "2,1", - { - "x": 11.5 - }, - "2,10", - { - "c": "#aaaaaa" - }, - "2,11" - ], - [ - { - "y": -0.75, - "x": 3, - "c": "#cccccc" - }, - "3,3", - { - "x": 7.5 - }, - "3,8" - ], - [ - { - "y": -0.75, - "x": 2 - }, - "3,2", - { - "x": 1 - }, - "3,4", - { - "x": 5.5 - }, - "3,7", - { - "x": 1 - }, - "3,9" - ], - [ - { - "y": -0.75, - "x": 5 - }, - "3,5", - { - "x": 3.5 - }, - "3,6" - ], - [ - { - "y": -0.75, - "c": "#aaaaaa" - }, - "3,0", - { - "c": "#cccccc" - }, - "3,1", - { - "x": 11.5 - }, - "3,10", - { - "c": "#aaaaaa" - }, - "3,11" - ], - [ - { - "rx": 3.5, - "ry": 9, - "y": -4.5, - "x": -0.5 - }, - "4,0" - ], - [ - { - "rx": 11, - "y": -4.5, - "x": 0.5 - }, - "4,11" - ], - [ - { - "r": 15, - "rx": 3.5, - "y": -4.5, - "x": -0.25 - }, - "4,1" - ], - [ - { - "r": 30, - "y": -1 - }, - "4,2" - ], - [ - { - "r": 45, - "y": -1, - "x": 0.25 - }, - "4,3" - ], - [ - { - "r": -45, - "rx": 11, - "y": -3.75, - "x": -0.5 - }, - "4,8" - ], - [ - { - "r": -30, - "y": -1.25 - }, - "4,9" - ], - [ - { - "r": -15, - "y": -1.25, - "x": 0.25 - }, - "4,10" - ] - ] - } -} \ No newline at end of file From 18e06bf43fdfed7dc0741f0022859439696f3e54 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:07:28 -0700 Subject: [PATCH 09/28] Update config.h --- keyboards/pteron56/config.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/keyboards/pteron56/config.h b/keyboards/pteron56/config.h index 244d4d0ee6ae..0ae4fc3932b6 100644 --- a/keyboards/pteron56/config.h +++ b/keyboards/pteron56/config.h @@ -24,8 +24,7 @@ #define PRODUCT_ID 0x7056 #define DEVICE_VER 0x0002 #define MANUFACTURER MooreKeys -#define PRODUCT Pteron56 v0.2 -//#define DESCRIPTION Pteron56 v0.2 +#define PRODUCT Pteron56 /* key matrix size */ #define MATRIX_ROWS 5 @@ -34,7 +33,6 @@ /* key matrix pins */ #define MATRIX_ROW_PINS { D3, D2, F4, D4, B5 } #define MATRIX_COL_PINS { E6, B4, D7, C6, D0, D1, F6, F7, B1, B3, B6, B2 } -//#define UNUSED_PINS { F5 } /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION ROW2COL @@ -45,9 +43,8 @@ #define BACKLIGHT_LEVELS 3 #endif - /* Set 0 if debouncing isn't needed */ -//#define DEBOUNCING_DELAY 5 +#define DEBOUNCE 5 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE @@ -59,10 +56,4 @@ #define IS_COMMAND() ( \ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ ) - -/* prevent stuck modifiers */ -//#define PREVENT_STUCK_MODIFIERS - - - -#endif \ No newline at end of file +#endif From 0caeef98b41bb8f3fd9b30b37e1cdc3ce11c5b6f Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:10:20 -0700 Subject: [PATCH 10/28] Update pteron56.h --- keyboards/pteron56/pteron56.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/keyboards/pteron56/pteron56.h b/keyboards/pteron56/pteron56.h index 2b859fab3e80..372ada385d75 100644 --- a/keyboards/pteron56/pteron56.h +++ b/keyboards/pteron56/pteron56.h @@ -1,3 +1,19 @@ +/*pteron56 +*Copyright (C) 2023 @kraken-jokes +* +*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 3 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 +*IMERCHANTABILITY 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 . +*/ #ifndef KB_H #define KB_H @@ -17,4 +33,4 @@ { K400, K401, K402, K403, KC_NO, KC_NO, KC_NO, KC_NO, K408, K409, K410, K411 } \ } -#endif \ No newline at end of file +#endif From d0ce3df2eee08978e7cf2db9e980b70f300ca988 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 14:13:31 -0700 Subject: [PATCH 11/28] Change KEYMAP to LAYOUT --- keyboards/pteron56/keymaps/brant/keymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keyboards/pteron56/keymaps/brant/keymap.c b/keyboards/pteron56/keymaps/brant/keymap.c index ec964011d0e5..78092f02464f 100644 --- a/keyboards/pteron56/keymaps/brant/keymap.c +++ b/keyboards/pteron56/keymaps/brant/keymap.c @@ -18,21 +18,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - KEYMAP( + LAYOUT( KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, LCTL(KC_C), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, LT(1,KC_LGUI), KC_LCTL, KC_LSFT, KC_LALT, LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), - KEYMAP( + LAYOUT( KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), - KEYMAP( + LAYOUT( RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MYCM, KC_PSLS, KC_PAST, KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, @@ -49,4 +49,4 @@ void matrix_scan_user(void) { bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; -} \ No newline at end of file +} From 675eb142345e57796d73e3ea0082921f8557b046 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 8 Feb 2023 18:13:08 -0700 Subject: [PATCH 12/28] Update keymap.c --- keyboards/pteron56/keymaps/melissa/keymap.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/keyboards/pteron56/keymaps/melissa/keymap.c b/keyboards/pteron56/keymaps/melissa/keymap.c index 1cfaba6a0747..d15bd931d235 100644 --- a/keyboards/pteron56/keymaps/melissa/keymap.c +++ b/keyboards/pteron56/keymaps/melissa/keymap.c @@ -30,10 +30,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { PASS, KC_CAPS, KC_SPC, KC_ENT, TG(1), KC_SPC, KC_RALT, KC_RGUI), LAYOUT( - LCTL(KC_C), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_PSLS, KC_PAST, KC_INS, KC_BSPC, - KC_TAB, KC_LBRC, KC_UP, KC_RBRC, KC_LCBR, KC_RCBR, KC_NUM, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_D=` - LCTL(KC_X), LALT(KC_F4), LALT(KC_ESC), KC_MUTE, KC_MSTP, KC_MPLY, KC_PGDN, KC_P1, KC_P2, KC_P3, KC_BSLS, TO(0), - KC_LGUI, KC_LALT, KC_LCTL, KC_SPC, KC_ENT, KC_SPC, KC_P0, KC_PDOT), + LCTL(KC_X), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_PSLS, KC_PAST, KC_INS, KC_BSPC, + KC_TAB, KC_LBRC, KC_UP, KC_RBRC, KC_LCBR, KC_RCBR, KC_NLCK, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_DEL, + LCTL(KC_V), KC_LEFT, KC_DOWN, KC_RGHT, LCTL(KC_Z), LCTL(KC_TAB), KC_PGUP, KC_P4, KC_P5, KC_P6, KC_PMNS, TO(2), + LCTL(KC_C), LALT(KC_F4), LALT(KC_ESC), KC_MUTE, KC_MSTP, KC_MPLY, KC_PGDN, KC_P1, KC_P2, KC_P3, KC_BSLS, TO(0), + KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0 ), LAYOUT( RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_BSPC, @@ -70,4 +71,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { break; } return true; -} \ No newline at end of file +} From 835d87915f331e9e39f2a058998bc0b33509aae2 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Wed, 1 Mar 2023 14:35:33 -0700 Subject: [PATCH 13/28] Update readme.md --- keyboards/pteron56/readme.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/keyboards/pteron56/readme.md b/keyboards/pteron56/readme.md index f097f8321d0f..e2abd2ee83dd 100644 --- a/keyboards/pteron56/readme.md +++ b/keyboards/pteron56/readme.md @@ -4,17 +4,15 @@ The Pteron56 is a 56-key vertically staggered ortholinear keyboard with a 15 degree inward tilt per hand. -Initially developed by @FSund, this keyboard was designed to potentially reduce wrist and typing strain by offsetting the keys in a manner that mimics the natural stagger of the human hand. +Initially developed by @FSund, this keyboard was designed to potentially reduce wrist and typing strain by offsetting the keys in a manner that mimics the natural stagger of the human hand with 4 thumb keys per side arranged around an ~85mm arc to mimic the swimg of one's mighty thumbs. Users have reported reduced finger movement, reduced wrist movement, and better typing comfort and swiftness with the Pteron layouts compared to a standard keyboard. -Another feature is the 4 thumb keys per side arranged around an ~85mm arc to mimic the swimg of one's mighty thumbs. - * Keyboard Maintainer: [Alex Moore](https://github.com/%kraken-jokes%) * Hardware Supported: [PCB]Pteron56v0.2, Pteron56v0.2hsu, Pteron56v0.3, Pteron56v0.4e [MCU]Pro-Micro, Elite-C -* Hardware Availability: moorekeys.etsy.com +* Hardware Availability: moorekeys.etsy.com. Open source though so it varies. -Note: Pteron56v0.1 users can also use this directory, but *must* use the Brant keymap (pteron56:Brant) +Note: Pteron56v0.1 users can also use this directory, but *must* use the brant keymap (pteron56:brant) Make example for this keyboard (after setting up your build environment): From acbbcd0cd35dc5121b44e0dede6f1352111963db Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 13:51:42 -0700 Subject: [PATCH 14/28] Update config.h --- keyboards/pteron56/keymaps/brant/config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboards/pteron56/keymaps/brant/config.h b/keyboards/pteron56/keymaps/brant/config.h index d708e6b47dbb..6c9a36e40b2a 100644 --- a/keyboards/pteron56/keymaps/brant/config.h +++ b/keyboards/pteron56/keymaps/brant/config.h @@ -25,11 +25,11 @@ /* number of backlight levels */ #ifdef BACKLIGHT_PIN -#define BACKLIGHT_LEVELS 0 +#define BACKLIGHT_LEVELS 1 #endif /* Set 0 if debouncing isn't needed */ -#define DEBOUNCING_DELAY 5 +#define DEBOUNE 5 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE @@ -51,4 +51,4 @@ #define RGBLIGHT_VAL_STEP 8 #endif -#endif \ No newline at end of file +#endif From d382734f03be4d977c0ebd6027ef43f5d0d72b0d Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 13:53:10 -0700 Subject: [PATCH 15/28] Update keymap.c --- keyboards/pteron56/keymaps/default/keymap.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/keyboards/pteron56/keymaps/default/keymap.c b/keyboards/pteron56/keymaps/default/keymap.c index 814764d90fce..4f0e6a31ed14 100644 --- a/keyboards/pteron56/keymaps/default/keymap.c +++ b/keyboards/pteron56/keymaps/default/keymap.c @@ -48,15 +48,5 @@ void matrix_scan_user(void) { } bool process_record_user(uint16_t keycode, keyrecord_t *record) { -// switch (keycode) { -// case DIFHIL: -// if (record->event.pressed) { -// // when keycode DIFHIL is pressed -// // SEND_STRING("echo \"KexAlgorithms +diffie-hellman-group1-sha1\" > .ssh/config"); -// } else { -// // when keycode DIFHIL is released -// } -// break; -// } return true; -} \ No newline at end of file +} From 82b1d35c39cccac591447a5d3b343f45b700a0e4 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 13:54:06 -0700 Subject: [PATCH 16/28] Update keymap.c --- keyboards/pteron56/keymaps/melissa/keymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keyboards/pteron56/keymaps/melissa/keymap.c b/keyboards/pteron56/keymaps/melissa/keymap.c index d15bd931d235..327c251f095c 100644 --- a/keyboards/pteron56/keymaps/melissa/keymap.c +++ b/keyboards/pteron56/keymaps/melissa/keymap.c @@ -56,17 +56,17 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { case PASS: if (record->event.pressed) { // when keycode M4 is pressed - SEND_STRING("Ineedmorethan24h)@"); + SEND_STRING("XXXXXXXXXX"); } else { - // when keycode M4 is released + // when keycode is released } break; case USER: if(record->event.pressed) { // when keycode USER is pressed - SEND_STRING("lahlouh211"); + SEND_STRING("XXXXXXXXXX"); } else { - // when keycode USER is released + // when keycode is released } break; } From 5f9cc636ccd6d232ee9bae1dab4e48894e2b4e42 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 13:55:20 -0700 Subject: [PATCH 17/28] Update keymap.c --- keyboards/pteron56/keymaps/via/keymap.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/keyboards/pteron56/keymaps/via/keymap.c b/keyboards/pteron56/keymaps/via/keymap.c index 5a80c8d7cb1f..23860febb008 100644 --- a/keyboards/pteron56/keymaps/via/keymap.c +++ b/keyboards/pteron56/keymaps/via/keymap.c @@ -30,18 +30,3 @@ void matrix_init_user(void) { void matrix_scan_user(void) { } - -//# ifdef OCEAN_DREAM_ENABLE -// render_stars(); -//# endif - -//bool encoder_update_user(uint8_t index, bool clockwise) { -// if (index == 0) { /* First encoder */ -// if (clockwise) { -// tap_code(KC_VOLU); -// } else { -// tap_code(KC_VOLD); -// } -// } -// return false; -//} \ No newline at end of file From f751ffec9256ddadf774dc5910e6e2782c2e7292 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:10:06 -0700 Subject: [PATCH 18/28] Update readme.md --- keyboards/pteron56/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/pteron56/readme.md b/keyboards/pteron56/readme.md index e2abd2ee83dd..d75baafd7514 100644 --- a/keyboards/pteron56/readme.md +++ b/keyboards/pteron56/readme.md @@ -4,7 +4,7 @@ The Pteron56 is a 56-key vertically staggered ortholinear keyboard with a 15 degree inward tilt per hand. -Initially developed by @FSund, this keyboard was designed to potentially reduce wrist and typing strain by offsetting the keys in a manner that mimics the natural stagger of the human hand with 4 thumb keys per side arranged around an ~85mm arc to mimic the swimg of one's mighty thumbs. +Initially developed by [FSund](https://github.com/%fsund%), this keyboard was designed to potentially reduce wrist and typing strain by offsetting the keys in a manner that mimics the natural stagger of the human hand with 4 thumb keys per side arranged around an ~85mm arc to mimic the swimg of one's mighty thumbs. Users have reported reduced finger movement, reduced wrist movement, and better typing comfort and swiftness with the Pteron layouts compared to a standard keyboard. From c84331750119659c4635674ea2961f644cb052f3 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:10:52 -0700 Subject: [PATCH 19/28] Update readme.md --- keyboards/pteron56/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/pteron56/readme.md b/keyboards/pteron56/readme.md index d75baafd7514..ccb114558a3c 100644 --- a/keyboards/pteron56/readme.md +++ b/keyboards/pteron56/readme.md @@ -4,11 +4,11 @@ The Pteron56 is a 56-key vertically staggered ortholinear keyboard with a 15 degree inward tilt per hand. -Initially developed by [FSund](https://github.com/%fsund%), this keyboard was designed to potentially reduce wrist and typing strain by offsetting the keys in a manner that mimics the natural stagger of the human hand with 4 thumb keys per side arranged around an ~85mm arc to mimic the swimg of one's mighty thumbs. +Initially developed by [FSund](https://github.com/fsund), this keyboard was designed to potentially reduce wrist and typing strain by offsetting the keys in a manner that mimics the natural stagger of the human hand with 4 thumb keys per side arranged around an ~85mm arc to mimic the swimg of one's mighty thumbs. Users have reported reduced finger movement, reduced wrist movement, and better typing comfort and swiftness with the Pteron layouts compared to a standard keyboard. -* Keyboard Maintainer: [Alex Moore](https://github.com/%kraken-jokes%) +* Keyboard Maintainer: [Alex Moore](https://github.com/kraken-jokes) * Hardware Supported: [PCB]Pteron56v0.2, Pteron56v0.2hsu, Pteron56v0.3, Pteron56v0.4e [MCU]Pro-Micro, Elite-C * Hardware Availability: moorekeys.etsy.com. Open source though so it varies. From b90f2ee53804576e0bbe9affca4b251f00dd6504 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:30:42 -0700 Subject: [PATCH 20/28] Delete Makefile --- keyboards/pteron56/Makefile | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 keyboards/pteron56/Makefile diff --git a/keyboards/pteron56/Makefile b/keyboards/pteron56/Makefile deleted file mode 100644 index 57b2ef62e5f3..000000000000 --- a/keyboards/pteron56/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -ifndef MAKEFILE_INCLUDED - include ../../Makefile -endif From 44b10b30da8467a52a3d0ae5a27be4a1aa59ad57 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:15:53 -0700 Subject: [PATCH 21/28] Changed tabs to 4x spaces --- keyboards/pteron56/keymaps/via/keymap.c | 57 ++++++++++++++++--------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/keyboards/pteron56/keymaps/via/keymap.c b/keyboards/pteron56/keymaps/via/keymap.c index 23860febb008..83002e71b3ba 100644 --- a/keyboards/pteron56/keymaps/via/keymap.c +++ b/keyboards/pteron56/keymaps/via/keymap.c @@ -1,27 +1,44 @@ +/*pteron56 +*Copyright (C) 2023 @kraken-jokes +* +*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 3 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 +*IMERCHANTABILITY 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 . +*/ + #include "pteron56.h" const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( - 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_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, - KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, - LT(1,KC_LGUI), KC_LCTL, KC_LSFT, LT(2,KC_LALT), LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), - - [1] = LAYOUT( - KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, - 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, - KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, - KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), - - [2] = LAYOUT( - RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, - KC_DEL, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MYCM, KC_PSLS, KC_PAST, - RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, RGB_M_P, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PDOT), + [0] = LAYOUT( + 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_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, + KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, + LT(1,KC_LGUI), KC_LCTL, KC_LSFT, LT(2,KC_LALT), LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), + + [1] = LAYOUT( + KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, + KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, + KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), + + [2] = LAYOUT( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_DEL, RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MYCM, KC_PSLS, KC_PAST, + RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, RGB_RMOD, RGB_M_P, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PDOT), }; From da0415a32664d6f45317fb1044c57c4ecbba3e60 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:20:06 -0700 Subject: [PATCH 22/28] Changed tabs to spaces --- keyboards/pteron56/keymaps/melissa/keymap.c | 79 +++++++++++---------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/keyboards/pteron56/keymaps/melissa/keymap.c b/keyboards/pteron56/keymaps/melissa/keymap.c index 327c251f095c..457160d9cbda 100644 --- a/keyboards/pteron56/keymaps/melissa/keymap.c +++ b/keyboards/pteron56/keymaps/melissa/keymap.c @@ -14,34 +14,35 @@ *You should have received a copy of the GNU General Public License *along with this program. If not, see . */ + #include "pteron56.h" enum my_keycodes { - PASS = SAFE_RANGE, - USER + PASS = SAFE_RANGE, + USER }; const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT( - KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, - KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, - PASS, KC_CAPS, KC_SPC, KC_ENT, TG(1), KC_SPC, KC_RALT, KC_RGUI), + LAYOUT( + KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, + KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, + PASS, KC_CAPS, KC_SPC, KC_ENT, TG(1), KC_SPC, KC_RALT, KC_RGUI), - LAYOUT( - LCTL(KC_X), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_PSLS, KC_PAST, KC_INS, KC_BSPC, - KC_TAB, KC_LBRC, KC_UP, KC_RBRC, KC_LCBR, KC_RCBR, KC_NLCK, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_DEL, - LCTL(KC_V), KC_LEFT, KC_DOWN, KC_RGHT, LCTL(KC_Z), LCTL(KC_TAB), KC_PGUP, KC_P4, KC_P5, KC_P6, KC_PMNS, TO(2), - LCTL(KC_C), LALT(KC_F4), LALT(KC_ESC), KC_MUTE, KC_MSTP, KC_MPLY, KC_PGDN, KC_P1, KC_P2, KC_P3, KC_BSLS, TO(0), - KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0 ), + LAYOUT( + LCTL(KC_X), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_PSLS, KC_PAST, KC_INS, KC_BSPC, + KC_TAB, KC_LBRC, KC_UP, KC_RBRC, KC_LCBR, KC_RCBR, KC_NLCK, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_DEL, + LCTL(KC_V), KC_LEFT, KC_DOWN, KC_RGHT, LCTL(KC_Z), LCTL(KC_TAB), KC_PGUP, KC_P4, KC_P5, KC_P6, KC_PMNS, TO(2), + LCTL(KC_C), LALT(KC_F4), LALT(KC_ESC), KC_MUTE, KC_MSTP, KC_MPLY, KC_PGDN, KC_P1, KC_P2, KC_P3, KC_BSLS, TO(0), + KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0 ), - LAYOUT( - RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_BSPC, - KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PSLS, KC_PAST, - KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_TRNS, KC_TRNS, KC_TRNS, - KC_LBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PDOT, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, LGUI(LSFT(KC_S)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0), + LAYOUT( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_BSPC, + KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PSLS, KC_PAST, + KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_TRNS, KC_TRNS, KC_TRNS, + KC_LBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PDOT, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, LGUI(LSFT(KC_S)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0), }; @@ -52,23 +53,23 @@ void matrix_scan_user(void) { } bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case PASS: - if (record->event.pressed) { - // when keycode M4 is pressed - SEND_STRING("XXXXXXXXXX"); - } else { - // when keycode is released - } - break; - case USER: - if(record->event.pressed) { - // when keycode USER is pressed - SEND_STRING("XXXXXXXXXX"); - } else { - // when keycode is released - } - break; - } - return true; + switch (keycode) { + case PASS: + if (record->event.pressed) { + // when keycode M4 is pressed + SEND_STRING("XXXXXXXXXX"); + } else { + // when keycode is released + } + break; + case USER: + if(record->event.pressed) { + // when keycode USER is pressed + SEND_STRING("XXXXXXXXXX"); + } else { + // when keycode is released + } + break; + } + return true; } From 96d082dc6de525b4c577b580bb4dcdfcb724a5df Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:21:21 -0700 Subject: [PATCH 23/28] Changed tabs to spaces --- keyboards/pteron56/keymaps/default/keymap.c | 43 +++++++++++---------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/keyboards/pteron56/keymaps/default/keymap.c b/keyboards/pteron56/keymaps/default/keymap.c index 4f0e6a31ed14..e62d55ddbe96 100644 --- a/keyboards/pteron56/keymaps/default/keymap.c +++ b/keyboards/pteron56/keymaps/default/keymap.c @@ -14,30 +14,31 @@ *You should have received a copy of the GNU General Public License *along with this program. If not, see . */ + #include "pteron56.h" const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT( - 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_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, - KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_RBRC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, - LT(1,KC_LGUI), KC_LCTL, KC_LSFT, LT(2,KC_LALT), LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), - - LAYOUT( - KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, - 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, - KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, - KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), - - LAYOUT( - RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_BSPC, - KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PSLS, KC_PAST, - KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_TRNS, KC_TRNS, KC_TRNS, - KC_LBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PDOT, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, LGUI(LSFT(KC_S)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0), + LAYOUT( + 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_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, + KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + KC_RBRC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, + LT(1,KC_LGUI), KC_LCTL, KC_LSFT, LT(2,KC_LALT), LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), + + LAYOUT( + KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, + KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, + KC_TRNS, KC_LCTL, KC_LSFT, KC_LALT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), + + LAYOUT( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_TRNS, KC_PSLS, KC_PAST, KC_PMNS, KC_TRNS, KC_BSPC, + KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_PSLS, KC_PAST, + KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_TRNS, KC_TRNS, KC_TRNS, + KC_LBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PDOT, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, LGUI(LSFT(KC_S)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P0), }; @@ -48,5 +49,5 @@ void matrix_scan_user(void) { } bool process_record_user(uint16_t keycode, keyrecord_t *record) { - return true; + return true; } From f920ee6835aec34f25973cd70dc6aa3d8ffa43d2 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:30:08 -0700 Subject: [PATCH 24/28] replace guards with #pragma once removed last #endif --- keyboards/pteron56/keymaps/brant/config.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/keyboards/pteron56/keymaps/brant/config.h b/keyboards/pteron56/keymaps/brant/config.h index 6c9a36e40b2a..ce5406b11e9c 100644 --- a/keyboards/pteron56/keymaps/brant/config.h +++ b/keyboards/pteron56/keymaps/brant/config.h @@ -1,14 +1,12 @@ -#ifndef CONFIG_H -#define CONFIG_H +#pragma once #include "config_common.h" /* USB Device descriptor parameter */ #define VENDOR_ID 0x6D4B #define PRODUCT_ID 0x7056 -#define DEVICE_VER 0x0001 +#define DEVICE_VER 0x0002 #define MANUFACTURER MooreKeys -#define PRODUCT Pteron56 v0.1 /* key matrix size */ #define MATRIX_ROWS 5 @@ -50,5 +48,3 @@ #define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_VAL_STEP 8 #endif - -#endif From 8160cdc27d489ad6b0182a8360c171b4464fdf32 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:34:27 -0700 Subject: [PATCH 25/28] changed tabs to spaces --- keyboards/pteron56/keymaps/brant/keymap.c | 43 ++++++++++++----------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/keyboards/pteron56/keymaps/brant/keymap.c b/keyboards/pteron56/keymaps/brant/keymap.c index 78092f02464f..e8954daf63fc 100644 --- a/keyboards/pteron56/keymaps/brant/keymap.c +++ b/keyboards/pteron56/keymaps/brant/keymap.c @@ -14,30 +14,31 @@ *You should have received a copy of the GNU General Public License *along with this program. If not, see . */ + #include "pteron56.h" const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - LAYOUT( - KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, - KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - LCTL(KC_C), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, - LT(1,KC_LGUI), KC_LCTL, KC_LSFT, KC_LALT, LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), - - LAYOUT( - KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, - 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, - KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), - - LAYOUT( - RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, - KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MYCM, KC_PSLS, KC_PAST, - KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_PPLS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PDOT), + LAYOUT( + KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EQL, + KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, + LCTL(KC_C), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, + LT(1,KC_LGUI), KC_LCTL, KC_LSFT, KC_LALT, LT(1,KC_DEL), KC_SPC, LT(2,KC_APP), KC_TAB), + + LAYOUT( + KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + 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_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_PGUP, KC_UP, KC_PGDN, KC_MENU, KC_RBRC, KC_TRNS, + KC_VOLD, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, KC_LEFT, KC_DOWN, KC_RGHT, KC_LBRC, KC_BSLS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), + + LAYOUT( + RESET, KC_SLEP, KC_WAKE, KC_TRNS, KC_PWR, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_GRV, KC_WBAK, KC_WFWD, KC_WSCH, KC_FIND, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MYCM, KC_PSLS, KC_PAST, + KC_DEL, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_PPLS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PDOT), }; @@ -48,5 +49,5 @@ void matrix_scan_user(void) { } bool process_record_user(uint16_t keycode, keyrecord_t *record) { - return true; + return true; } From 160ff63bf935c3640df11a47e49bdcd43597e47c Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:31:14 -0700 Subject: [PATCH 26/28] QMK info.json --- keyboards/pteron56/info.json | 91 ++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 keyboards/pteron56/info.json diff --git a/keyboards/pteron56/info.json b/keyboards/pteron56/info.json new file mode 100644 index 000000000000..20c93faaaa4f --- /dev/null +++ b/keyboards/pteron56/info.json @@ -0,0 +1,91 @@ +{ + "name":"pteron56", + "manufacturer": "Kraken-jokes", + "url": "https://github.com/kraken-jokes/pteron-pcb", + "maintainer": "Kraken-jokes", + "usb": { + "vid": "0x6D4B", + "pid": "0x7056", + "device_version": "0.2" + } + "processor": "atmega32u4", + "bootloader": "caterina", + "matrix_pins": { + "rows": ["D3", "D2", "F4", "D4", "B5"] + "cols": ["E6", "B4", "D7", "C6", "D0", "D1", "F6", "F7", "B1", "B3", "B6", "B2"] + }, + "diode_direction": "ROW2COL", + "features": { + "bootmagic": true, + "mousekey": true, + "extrakey": true, + "console": false, + "command": false, + "nkro": true, + "backlight": false, + "rgblight": false, + "audio": false, + "key_lock": false + }, + "layouts": { + "LAYOUT":[ + "layout": + [{"label":"0,3", "x":3, "y":0.25}, + {"label":"0,8", "x":11.5, "y":0.25}, + {"label":"0,2", "x":2, "y":0.5}, + {"label":"0,4", "x":4, "y":0.5}, + {"label":"0,7", "x":10.5, "y":0.5}, + {"label":"0,9", "x":12.5, "y":0.5}, + {"label":"0,5", "x":5, "y":0.75}, + {"label":"0,6", "x":9.5, "y":0.75}, + {"label":"0,0", "x":0, "y":1}, + {"label":"0,1", "x":1, "y":1}, + {"label":"0,10", "x":13.5, "y":1}, + {"label":"0,11", "x":14.5, "y":1}, + {"label":"1,3", "x":3, "y":1.25}, + {"label":"1,8", "x":11.5, "y":1.25}, + {"label":"1,2", "x":2, "y":1.5}, + {"label":"1,4", "x":4, "y":1.5}, + {"label":"1,7", "x":10.5, "y":1.5}, + {"label":"1,9", "x":12.5, "y":1.5}, + {"label":"1,5", "x":5, "y":1.75}, + {"label":"1,6", "x":9.5, "y":1.75}, + {"label":"1,0", "x":0, "y":2}, + {"label":"1,1", "x":1, "y":2}, + {"label":"1,10", "x":13.5, "y":2}, + {"label":"1,11", "x":14.5, "y":2}, + {"label":"2,3", "x":3, "y":2.25}, + {"label":"2,8", "x":11.5, "y":2.25}, + {"label":"2,2", "x":2, "y":2.5}, + {"label":"2,4", "x":4, "y":2.5}, + {"label":"2,7", "x":10.5, "y":2.5}, + {"label":"2,9", "x":12.5, "y":2.5}, + {"label":"2,5", "x":5, "y":2.75}, + {"label":"2,6", "x":9.5, "y":2.75}, + {"label":"2,0", "x":0, "y":3}, + {"label":"2,1", "x":1, "y":3}, + {"label":"2,10", "x":13.5, "y":3}, + {"label":"2,11", "x":14.5, "y":3}, + {"label":"3,3", "x":3, "y":3.25}, + {"label":"3,8", "x":11.5, "y":3.25}, + {"label":"3,2", "x":2, "y":3.5}, + {"label":"3,4", "x":4, "y":3.5}, + {"label":"3,7", "x":10.5, "y":3.5}, + {"label":"3,9", "x":12.5, "y":3.5}, + {"label":"3,5", "x":5, "y":3.75}, + {"label":"3,6", "x":9.5, "y":3.75}, + {"label":"3,0", "x":0, "y":4}, + {"label":"3,1", "x":1, "y":4}, + {"label":"3,10", "x":13.5, "y":4}, + {"label":"3,11", "x":14.5, "y":4}, + {"label":"4,0", "x":-0.5, "y":1}, + {"label":"4,11", "x":0.5, "y":-2.5}, + {"label":"4,1", "x":-0.25, "y":-6}, + {"label":"4,2", "x":0, "y":-6}, + {"label":"4,3", "x":0.25, "y":-6}, + {"label":"4,8", "x":-0.5, "y":-8.75}, + {"label":"4,9", "x":0, "y":-9.0}, + {"label":"4,10", "x":0.25, "y":-9.25}] + ] + } +} \ No newline at end of file From 3dd8b9a992a77be3866f6d4f86ce0b2a2fa21df2 Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:39:28 -0600 Subject: [PATCH 27/28] Editing out redundant info --- keyboards/pteron56/keymaps/brant/config.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/keyboards/pteron56/keymaps/brant/config.h b/keyboards/pteron56/keymaps/brant/config.h index ce5406b11e9c..b572a0be2f68 100644 --- a/keyboards/pteron56/keymaps/brant/config.h +++ b/keyboards/pteron56/keymaps/brant/config.h @@ -1,13 +1,5 @@ #pragma once -#include "config_common.h" - -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x6D4B -#define PRODUCT_ID 0x7056 -#define DEVICE_VER 0x0002 -#define MANUFACTURER MooreKeys - /* key matrix size */ #define MATRIX_ROWS 5 #define MATRIX_COLS 12 @@ -20,12 +12,6 @@ /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION ROW2COL -/* number of backlight levels */ - -#ifdef BACKLIGHT_PIN -#define BACKLIGHT_LEVELS 1 -#endif - /* Set 0 if debouncing isn't needed */ #define DEBOUNE 5 @@ -40,11 +26,3 @@ keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ ) - -#ifdef RGB_DI_PIN -#define RGBLIGHT_ANIMATIONS -#define RGBLED_NUM 0 -#define RGBLIGHT_HUE_STEP 8 -#define RGBLIGHT_SAT_STEP 8 -#define RGBLIGHT_VAL_STEP 8 -#endif From 2fd49241c06378559450c3c5cbb715ecc91e4dba Mon Sep 17 00:00:00 2001 From: Kraken-Jokes <67011325+Kraken-Jokes@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:43:04 -0600 Subject: [PATCH 28/28] Rules are the same as /pteron56 --- keyboards/pteron56/keymaps/brant/rules.mk | 56 ----------------------- 1 file changed, 56 deletions(-) delete mode 100644 keyboards/pteron56/keymaps/brant/rules.mk diff --git a/keyboards/pteron56/keymaps/brant/rules.mk b/keyboards/pteron56/keymaps/brant/rules.mk deleted file mode 100644 index 6a146d8c546c..000000000000 --- a/keyboards/pteron56/keymaps/brant/rules.mk +++ /dev/null @@ -1,56 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Processor frequency. -# This will define a symbol, F_CPU, in all source code files equal to the -# processor frequency in Hz. You can then use this symbol in your source code to -# calculate timings. Do NOT tack on a 'UL' at the end, this will be done -# automatically to create a 32-bit value in your source code. -# -# This will be an integer division of F_USB below, as it is sourced by -# F_USB after it has run through any CPU prescalers. Note that this value -# does not *change* the processor frequency - it should merely be updated to -# reflect the processor speed set externally so that the code can use accurate -# software delays. -F_CPU = 16000000 - -# -# LUFA specific -# -# Target architecture (see library "Board Types" documentation). -ARCH = AVR8 - -# Input clock frequency. -# This will define a symbol, F_USB, in all source code files equal to the -# input clock frequency (before any prescaling is performed) in Hz. This value may -# differ from F_CPU if prescaling is used on the latter, and is required as the -# raw input clock is fed directly to the PLL sections of the AVR for high speed -# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' -# at the end, this will be done automatically to create a 32-bit value in your -# source code. -# -# If no clock division is performed on the input clock inside the AVR (via the -# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. -F_USB = $(F_CPU) - -# Interrupt driven control endpoint task(+60) -OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT - - -# Boot Section Size in *bytes* -BOOTLOADER = caterina - - -# Build Options -# comment out to disable the options. -# -BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) -MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) -EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) -CONSOLE_ENABLE ?= no # Console for debug(+400) -COMMAND_ENABLE ?= no # Commands for debug and configuration -SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend -NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality -AUDIO_ENABLE ?= no -RGBLIGHT_ENABLE ?= no \ No newline at end of file