diff options
Diffstat (limited to 'keyboards/1upkeyboards/pi50')
-rw-r--r-- | keyboards/1upkeyboards/pi50/config.h | 71 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/grid/config.h | 4 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/grid/info.json | 142 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/grid/rules.mk | 0 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/halconf.h | 7 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/info.json | 42 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/keymaps/default/keymap.c | 136 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/keymaps/default/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/keymaps/via/keymap.c | 286 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/keymaps/via/rules.mk | 4 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/lib/glcdfont.c | 231 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/mcuconf.h | 10 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/mit/config.h | 4 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/mit/info.json | 141 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/mit/rules.mk | 0 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/pi50.c | 242 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/readme.md | 36 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi50/rules.mk | 5 |
18 files changed, 1362 insertions, 0 deletions
diff --git a/keyboards/1upkeyboards/pi50/config.h b/keyboards/1upkeyboards/pi50/config.h new file mode 100644 index 0000000000..2ef22f12d0 --- /dev/null +++ b/keyboards/1upkeyboards/pi50/config.h @@ -0,0 +1,71 @@ +// Copyright 2023 ziptyze +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define OLED_DISPLAY_128X32 +#define I2C1_SCL_PIN GP11 +#define I2C1_SDA_PIN GP10 +#define I2C_DRIVER I2CD1 +#define OLED_BRIGHTNESS 128 +#define OLED_FONT_H "keyboards/1upkeyboards/pi50/lib/glcdfont.c" + +#define RGB_DI_PIN GP0 +# define RGB_MATRIX_KEYPRESSES // reacts to keypresses +# define RGB_MATRIX_FRAMEBUFFER_EFFECTS +# define RGBLIGHT_LIMIT_VAL 150 +# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended +# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 +// RGB Matrix Animation modes. Explicitly enabled +// For full list of effects, see: +// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects +# define ENABLE_RGB_MATRIX_ALPHAS_MODS +# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN +# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT +# define ENABLE_RGB_MATRIX_BREATHING +# define ENABLE_RGB_MATRIX_BAND_SAT +# define ENABLE_RGB_MATRIX_BAND_VAL +# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT +# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL +# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT +# define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL +# define ENABLE_RGB_MATRIX_CYCLE_ALL +# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT +# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN +# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON +# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN +# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL +# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL +# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL +# define ENABLE_RGB_MATRIX_DUAL_BEACON +# define ENABLE_RGB_MATRIX_RAINBOW_BEACON +# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS +# define ENABLE_RGB_MATRIX_RAINDROPS +# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS +# define ENABLE_RGB_MATRIX_HUE_BREATHING +# define ENABLE_RGB_MATRIX_HUE_PENDULUM +# define ENABLE_RGB_MATRIX_HUE_WAVE +# define ENABLE_RGB_MATRIX_PIXEL_RAIN +# define ENABLE_RGB_MATRIX_PIXEL_FLOW +# define ENABLE_RGB_MATRIX_PIXEL_FRACTAL +// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined +# define ENABLE_RGB_MATRIX_TYPING_HEATMAP +# define ENABLE_RGB_MATRIX_DIGITAL_RAIN +// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS +# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS +# define ENABLE_RGB_MATRIX_SPLASH +# define ENABLE_RGB_MATRIX_MULTISPLASH +# define ENABLE_RGB_MATRIX_SOLID_SPLASH +# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH + +/* 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
\ No newline at end of file diff --git a/keyboards/1upkeyboards/pi50/grid/config.h b/keyboards/1upkeyboards/pi50/grid/config.h new file mode 100644 index 0000000000..0bb970a3f2 --- /dev/null +++ b/keyboards/1upkeyboards/pi50/grid/config.h @@ -0,0 +1,4 @@ +// Copyright 2023 ziptyze (@ziptyze) +// SPDX-License-Identifier: GPL-2.0-or-later + +#define RGB_MATRIX_LED_COUNT 60
\ No newline at end of file diff --git a/keyboards/1upkeyboards/pi50/grid/info.json b/keyboards/1upkeyboards/pi50/grid/info.json new file mode 100644 index 0000000000..5b23f27277 --- /dev/null +++ b/keyboards/1upkeyboards/pi50/grid/info.json @@ -0,0 +1,142 @@ +{ + "rgb_matrix": { + "layout": [ + { "flags": 1, "matrix": [0, 0], "x": 10, "y": 7 }, + { "flags": 4, "matrix": [1, 0], "x": 28, "y": 7 }, + { "flags": 4, "matrix": [0, 1], "x": 46, "y": 7 }, + { "flags": 4, "matrix": [1, 1], "x": 65, "y": 7 }, + { "flags": 4, "matrix": [0, 2], "x": 84, "y": 7 }, + { "flags": 4, "matrix": [1, 2], "x": 102, "y": 7 }, + { "flags": 4, "matrix": [0, 3], "x": 121, "y": 7 }, + { "flags": 4, "matrix": [1, 3], "x": 140, "y": 7 }, + { "flags": 4, "matrix": [0, 4], "x": 159, "y": 7 }, + { "flags": 4, "matrix": [1, 4], "x": 177, "y": 7 }, + { "flags": 4, "matrix": [0, 5], "x": 196, "y": 7 }, + { "flags": 1, "matrix": [1, 5], "x": 215, "y": 7 }, + + { "flags": 1, "matrix": [3, 5], "x": 215, "y": 19 }, + { "flags": 4, "matrix": [2, 5], "x": 196, "y": 19 }, + { "flags": 4, "matrix": [3, 4], "x": 177, "y": 19 }, + { "flags": 4, "matrix": [2, 4], "x": 159, "y": 19 }, + { "flags": 4, "matrix": [3, 3], "x": 140, "y": 19 }, + { "flags": 4, "matrix": [2, 3], "x": 121, "y": 19 }, + { "flags": 4, "matrix": [3, 2], "x": 102, "y": 19 }, + { "flags": 4, "matrix": [2, 2], "x": 84, "y": 19 }, + { "flags": 4, "matrix": [3, 1], "x": 65, "y": 19 }, + { "flags": 4, "matrix": [2, 1], "x": 46, "y": 19 }, + { "flags": 4, "matrix": [3, 0], "x": 28, "y": 19 }, + { "flags": 1, "matrix": [2, 0], "x": 9, "y": 19 }, + + { "flags": 1, "matrix": [4, 0], "x": 9, "y": 32 }, + { "flags": 4, "matrix": [5, 0], "x": 28, "y": 32 }, + { "flags": 4, "matrix": [4, 1], "x": 46, "y": 32 }, + { "flags": 4, "matrix": [5, 1], "x": 65, "y": 32 }, + { "flags": 4, "matrix": [4, 2], "x": 84, "y": 32 }, + { "flags": 4, "matrix": [5, 2], "x": 102, "y": 32 }, + { "flags": 4, "matrix": [4, 3], "x": 121, "y": 32 }, + { "flags": 4, "matrix": [5, 3], "x": 140, "y": 32 }, + { "flags": 4, "matrix": [4, 4], "x": 159, "y": 32 }, + { "flags": 4, "matrix": [5, 4], "x": 177, "y": 32 }, + { "flags": 4, "matrix": [4, 5], "x": 196, "y": 32 }, + { "flags": 1, "matrix": [5, 5], "x": 215, "y": 32 }, + + { "flags": 1, "matrix": [7, 5], "x": 215, "y": 45 }, + { "flags": 4, "matrix": [6, 5], "x": 196, "y": 45 }, + { "flags": 4, "matrix": [7, 4], "x": 177, "y": 45 }, + { "flags": 4, "matrix": [6, 4], "x": 159, "y": 45 }, + { "flags": 4, "matrix": [7, 3], "x": 140, "y": 45 }, + { "flags": 4, "matrix": [6, 3], "x": 121, "y": 45 }, + { "flags": 4, "matrix": [7, 2], "x": 102, "y": 45 }, + { "flags": 4, "matrix": [6, 2], "x": 84, "y": 45 }, + { "flags": 4, "matrix": [7, 1], "x": 65, "y": 45 }, + { "flags": 4, "matrix": [6, 1], "x": 46, "y": 45 }, + { "flags": 4, "matrix": [7, 0], "x": 28, "y": 45 }, + { "flags": 1, "matrix": [6, 0], "x": 9, "y": 45 }, + + { "flags": 1, "matrix": [8, 0], "x": 9, "y": 57 }, + { "flags": 1, "matrix": [9, 0], "x": 28, "y": 57 }, + { "flags": 1, "matrix": [8, 1], "x": 46, "y": 57 }, + { "flags": 1, "matrix": [9, 1], "x": 65, "y": 57 }, + { "flags": 1, "matrix": [8, 2], "x": 84, "y": 57 }, + { "flags": 1, "matrix": [9, 2], "x": 102, "y": 57 }, + { "flags": 1, "matrix": [9, 3], "x": 140, "y": 57 }, + { "flags": 1, "matrix": [8, 4], "x": 159, "y": 57 }, + { "flags": 1, "matrix": [9, 4], "x": 177, "y": 57 }, + { "flags": 1, "matrix": [8, 5], "x": 196, "y": 57 }, + { "flags": 1, "matrix": [9, 5], "x": 215, "y": 57 }, + { "flags": 1, "matrix": [8, 3], "x": 121, "y": 57 } + ] + }, + "layouts": { + "LAYOUT_ortho_5x12": { + "layout": [ + { "matrix": [0, 6], "x": 11, "y": 0 }, + + { "matrix": [0, 0], "x": 0, "y": 1 }, + { "matrix": [1, 0], "x": 1, "y": 1 }, + { "matrix": [0, 1], "x": 2, "y": 1 }, + { "matrix": [1, 1], "x": 3, "y": 1 }, + { "matrix": [0, 2], "x": 4, "y": 1 }, + { "matrix": [1, 2], "x": 5, "y": 1 }, + { "matrix": [0, 3], "x": 6, "y": 1 }, + { "matrix": [1, 3], "x": 7, "y": 1 }, + { "matrix": [0, 4], "x": 8, "y": 1 }, + { "matrix": [1, 4], "x": 9, "y": 1 }, + { "matrix": [0, 5], "x": 10, "y": 1 }, + { "matrix": [1, 5], "x": 11, "y": 1 }, + + { "matrix": [2, 0], "x": 0, "y": 2 }, + { "matrix": [3, 0], "x": 1, "y": 2 }, + { "matrix": [2, 1], "x": 2, "y": 2 }, + { "matrix": [3, 1], "x": 3, "y": 2 }, + { "matrix": [2, 2], "x": 4, "y": 2 }, + { "matrix": [3, 2], "x": 5, "y": 2 }, + { "matrix": [2, 3], "x": 6, "y": 2 }, + { "matrix": [3, 3], "x": 7, "y": 2 }, + { "matrix": [2, 4], "x": 8, "y": 2 }, + { "matrix": [3, 4], "x": 9, "y": 2 }, + { "matrix": [2, 5], "x": 10, "y": 2 }, + { "matrix": [3, 5], "x": 11, "y": 2 }, + + { "matrix": [4, 0], "x": 0, "y": 3 }, + { "matrix": [5, 0], "x": 1, "y": 3 }, + { "matrix": [4, 1], "x": 2, "y": 3 }, + { "matrix": [5, 1], "x": 3, "y": 3 }, + { "matrix": [4, 2], "x": 4, "y": 3 }, + { "matrix": [5, 2], "x": 5, "y": 3 }, + { "matrix": [4, 3], "x": 6, "y": 3 }, + { "matrix": [5, 3], "x": 7, "y": 3 }, + { "matrix": [4, 4], "x": 8, "y": 3 }, + { "matrix": [5, 4], "x": 9, "y": 3 }, + { "matrix": [4, 5], "x": 10, "y": 3 }, + { "matrix": [5, 5], "x": 11, "y": 3 }, + + { "matrix": [6, 0], "x": 0, "y": 4 }, + { "matrix": [7, 0], "x": 1, "y": 4 }, + { "matrix": [6, 1], "x": 2, "y": 4 }, + { "matrix": [7, 1], "x": 3, "y": 4 }, + { "matrix": [6, 2], "x": 4, "y": 4 }, + { "matrix": [7, 2], "x": 5, "y": 4 }, + { "matrix": [6, 3], "x": 6, "y": 4 }, + { "matrix": [7, 3], "x": 7, "y": 4 }, + { "matrix": [6, 4], "x": 8, "y": 4 }, + { "matrix": [7, 4], "x": 9, "y": 4 }, + { "matrix": [6, 5], "x": 10, "y": 4 }, + { "matrix": [7, 5], "x": 11, "y": 4 }, + + { "matrix": [8, 0], "x": 0, "y": 5 }, + { "matrix": [9, 0], "x": 1, "y": 5 }, + { "matrix": [8, 1], "x": 2, "y": 5 }, + { "matrix": [9, 1], "x": 3, "y": 5 }, + { "matrix": [8, 2], "x": 4, "y": 5 }, + { "matrix": [9, 2], "x": 5, "y": 5 }, + { "matrix": [8, 3], "x": 6, "y": 5 }, + { "matrix": [9, 3], "x": 7, "y": 5 }, + { "matrix": [8, 4], "x": 8, "y": 5 }, + { "matrix": [9, 4], "x": 9, "y": 5 }, + { "matrix": [8, 5], "x": 10, "y": 5 }, + { "matrix": [9, 5], "x": 11, "y": 5 } + ] + } + } +}
\ No newline at end of file diff --git a/keyboards/1upkeyboards/pi50/grid/rules.mk b/keyboards/1upkeyboards/pi50/grid/rules.mk new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/keyboards/1upkeyboards/pi50/grid/rules.mk diff --git a/keyboards/1upkeyboards/pi50/halconf.h b/keyboards/1upkeyboards/pi50/halconf.h new file mode 100644 index 0000000000..d1bdcabdf1 --- /dev/null +++ b/keyboards/1upkeyboards/pi50/halconf.h @@ -0,0 +1,7 @@ +// Copyright 2023 ziptyze +// SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + +#define HAL_USE_I2C TRUE + +#include_next <halconf.h>
\ No newline at end of file diff --git a/keyboards/1upkeyboards/pi50/info.json b/keyboards/1upkeyboards/pi50/info.json new file mode 100644 index 0000000000..c34db68509 --- /dev/null +++ b/keyboards/1upkeyboards/pi50/info.json @@ -0,0 +1,42 @@ +{ + "keyboard_name": "pi50", + "manufacturer": "1upkeyboards", + "maintainer": "ziptyze", + "processor": "RP2040", + "bootloader": "rp2040", + "board": "GENERIC_RP_RP2040", + "usb": { + "vid": "0x6F75", + "pid": "0x5606", + "device_version": "1.0.0" + }, + "diode_direction": "COL2ROW", + "dynamic_keymap": { + "layer_count": 10 + }, + "features": { + "audio": false, + "backlight": false, + "bootmagic": true, + "command": false, + "console": false, + "extrakey": true, + "mousekey": true, + "nkro": false, + "rgb_matrix": true, + "rgblight": false + }, + "matrix_pins": { + "rows": ["GP20", "GP15", "GP19", "GP14", "GP18", "GP13", "GP17", "GP12", "GP16", "GP21"], + "cols": ["GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP9"] + }, + "encoder": { + "enabled": true, + "rotary": [ + {"pin_a": "GP8", "pin_b": "GP7"} + ] + }, + "rgb_matrix": { + "driver": "WS2812" + } +} diff --git a/keyboards/1upkeyboards/pi50/keymaps/default/keymap.c b/keyboards/1upkeyboards/pi50/keymaps/default/keymap.c new file mode 100644 index 0000000000..8df3a613fb --- /dev/null +++ b/keyboards/1upkeyboards/pi50/keymaps/default/keymap.c @@ -0,0 +1,136 @@ +/* Copyright 2023 ziptyze + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include QMK_KEYBOARD_H + +enum layer_names { + _ONE = 0, + _TWO, + _THREE, + _FOUR +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + /* Qwerty + * ╱⎺⎺⎺⎺╲ + * |RGBTOG| + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | Esc | A | S | D | F | G | H | J | K | L | ; | " | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * |Adjust| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | + * `-----------------------------------------------------------------------------------' + */ + [_ONE] = LAYOUT_ortho_5x12 ( + RGB_TOG, + KC_GRV, 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_ESC, 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_ENT , + MO(3), KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT + ), + + /* Lower + * ╱⎺⎺⎺⎺╲ + * | MUTE | + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | Next | Vol- | Vol+ | Play | + * `-----------------------------------------------------------------------------------' + */ + [_TWO] = LAYOUT_ortho_5x12 ( + KC_MUTE, + KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, + KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, + _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, + _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY + ), + + /* Raise + * ╱⎺⎺⎺⎺╲ + * | MUTE | + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | Pg Up| Pg Dn| | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | Next | Vol- | Vol+ | Play | + * `-----------------------------------------------------------------------------------' + */ + [_THREE] = LAYOUT_ortho_5x12 ( + KC_MUTE, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, + KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, + _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, + _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY + ), + + /* Adjust (Lower + Raise) + * ╱⎺⎺⎺⎺╲ + * | MUTE | + * v-----------------------RGB CONTROL------------------v ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | Reset| Debug| | | | | | | | | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | | |Aud cy|Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | + * `-----------------------------------------------------------------------------------' + */ + [_FOUR] = LAYOUT_ortho_5x12 ( + KC_MUTE, + KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, + _______, QK_BOOT, DB_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, + _______, _______, MU_NEXT, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, + _______, AU_PREV, AU_NEXT, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ) +}; + +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [_ONE] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD) }, + [_TWO] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, + [_THREE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, + [_FOUR] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) } +}; +#endif diff --git a/keyboards/1upkeyboards/pi50/keymaps/default/rules.mk b/keyboards/1upkeyboards/pi50/keymaps/default/rules.mk new file mode 100644 index 0000000000..a40474b4d5 --- /dev/null +++ b/keyboards/1upkeyboards/pi50/keymaps/default/rules.mk @@ -0,0 +1 @@ +ENCODER_MAP_ENABLE = yes
\ No newline at end of file diff --git a/keyboards/1upkeyboards/pi50/keymaps/via/keymap.c b/keyboards/1upkeyboards/pi50/keymaps/via/keymap.c new file mode 100644 index 0000000000..ff4cb35f5a --- /dev/null +++ b/keyboards/1upkeyboards/pi50/keymaps/via/keymap.c @@ -0,0 +1,286 @@ +/* Copyright 2023 ziptyze + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include QMK_KEYBOARD_H + +enum layer_names { + _ONE = 0, + _TWO, + _THREE, + _FOUR, + _FIVE, + _SIX, + _SEVEN, + _EIGHT, + _NINE, + _TEN +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + /* Qwerty + * ╱⎺⎺⎺⎺╲ + * |RGBTOG| + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | Esc | A | S | D | F | G | H | J | K | L | ; | " | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * |Adjust| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | + * `-----------------------------------------------------------------------------------' + */ + [_ONE] = LAYOUT_ortho_5x12 ( + RGB_TOG, + KC_GRV, 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_ESC, 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_ENT , + MO(3), KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT + ), + + /* Lower + * ╱⎺⎺⎺⎺╲ + * | MUTE | + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | Next | Vol- | Vol+ | Play | + * `-----------------------------------------------------------------------------------' + */ + [_TWO] = LAYOUT_ortho_5x12 ( + KC_MUTE, + KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, + KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, + KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, + _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, + _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY + ), + + /* Raise + * ╱⎺⎺⎺⎺╲ + * | MUTE | + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | Pg Up| Pg Dn| | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | Next | Vol- | Vol+ | Play | + * `-----------------------------------------------------------------------------------' + */ + [_THREE] = LAYOUT_ortho_5x12 ( + KC_MUTE, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, + KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, + _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, + _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY + ), + + /* Adjust (Lower + Raise) + * ╱⎺⎺⎺⎺╲ + * | MUTE | + * v-----------------------RGB CONTROL------------------v ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | Reset| Debug| | | | | | | | | Del | + * |------+------+------+------+------+-------------+------+------+------+------+------| + * | | |Aud cy|Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | + * |------+------+------+------+------+------|------+------+------+------+------+------| + * | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | + * `-----------------------------------------------------------------------------------' + */ + [_FOUR] = LAYOUT_ortho_5x12 ( + KC_MUTE, + KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, + _______, QK_BOOT, DB_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, + _______, _______, MU_NEXT, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, + _______, AU_PREV, AU_NEXT, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ), + + /* Placeholder + * ╱⎺⎺⎺⎺╲ + * | | + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * `-----------------------------------------------------------------------------------' + */ + [_FIVE] = LAYOUT_ortho_5x12 ( + _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ), + + /* Placeholder + * ╱⎺⎺⎺⎺╲ + * | | + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * `-----------------------------------------------------------------------------------' + */ + [_SIX] = LAYOUT_ortho_5x12 ( + _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ), + + /* Placeholder + * ╱⎺⎺⎺⎺╲ + * | | + * ╲⎽⎽⎽⎽╱ + * ,-----------------------------------------------------------------------------------. + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | | | | | | | | | | | | | + * `-----------------------------------------------------------------------------------' + */ + [_SEVEN] = LAYOUT_ortho_5x12 ( |