forked from forks/qmk_firmware
[Keyboard] 1upkeyboards/pi40 update (#20066)
This commit is contained in:
parent
1b3f7fcf7d
commit
0f323a45ce
|
@ -3,26 +3,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 10
|
||||
|
||||
#ifdef OLED_ENABLE
|
||||
# define OLED_DISPLAY_128X32
|
||||
#define OLED_DISPLAY_128X32
|
||||
#define I2C1_SCL_PIN GP17
|
||||
#define I2C1_SDA_PIN GP16
|
||||
#define I2C_DRIVER I2CD0
|
||||
#define OLED_BRIGHTNESS 128
|
||||
#define OLED_FONT_H "keyboards/1upkeyboards/pi40/lib/glcdfont.c"
|
||||
#endif
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define MATRIX_ROW_PINS { GP21, GP20, GP19, GP18 }
|
||||
#define MATRIX_COL_PINS { GP1, GP2, GP3, GP4, GP5, GP6, GP7, GP8, GP9, GP10, GP11, GP12 }
|
||||
|
||||
#define RGB_DI_PIN GP0
|
||||
#define RGB_MATRIX_LED_COUNT 47
|
||||
#define RGBLED_NUM 47
|
||||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
|
||||
# define RGBLIGHT_LIMIT_VAL 150
|
||||
|
|
6
keyboards/1upkeyboards/pi40/grid_v1_1/config.h
Normal file
6
keyboards/1upkeyboards/pi40/grid_v1_1/config.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
// Copyright 2022 ziptyze (@ziptyze)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define RGB_MATRIX_LED_COUNT 48
|
149
keyboards/1upkeyboards/pi40/grid_v1_1/info.json
Normal file
149
keyboards/1upkeyboards/pi40/grid_v1_1/info.json
Normal file
|
@ -0,0 +1,149 @@
|
|||
{
|
||||
"keyboard_name": "pi40",
|
||||
"manufacturer": "1upkeyboards",
|
||||
"maintainer": "ziptyze",
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"usb": {
|
||||
"vid": "0x6F75",
|
||||
"pid": "0x5600",
|
||||
"device_version": "1.1.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": [ "GP21", "GP20", "GP19", "GP18" ],
|
||||
"cols": [ "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22" ]
|
||||
},
|
||||
"encoder": {
|
||||
"enabled": true,
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "GP14",
|
||||
"pin_b": "GP13"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
{ "flags": 1, "matrix": [0, 0], "x": 9, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 1], "x": 28, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 2], "x": 46, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 3], "x": 65, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 4], "x": 84, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 5], "x": 102, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 6], "x": 121, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 7], "x": 140, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 8], "x": 159, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 9], "x": 177, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 10], "x": 196, "y": 8 },
|
||||
{ "flags": 1, "matrix": [0, 11], "x": 215, "y": 8 },
|
||||
{ "flags": 1, "matrix": [1, 11], "x": 215, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 10], "x": 196, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 9], "x": 177, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 8], "x": 159, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 7], "x": 140, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 6], "x": 121, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 5], "x": 102, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 4], "x": 84, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 3], "x": 65, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 2], "x": 46, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 1], "x": 28, "y": 24 },
|
||||
{ "flags": 1, "matrix": [1, 0], "x": 9, "y": 24 },
|
||||
{ "flags": 1, "matrix": [2, 0], "x": 9, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 1], "x": 28, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 2], "x": 46, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 3], "x": 65, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 4], "x": 84, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 5], "x": 102, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 6], "x": 121, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 7], "x": 140, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 8], "x": 159, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 9], "x": 177, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 10], "x": 196, "y": 40 },
|
||||
{ "flags": 1, "matrix": [2, 11], "x": 215, "y": 40 },
|
||||
{ "flags": 1, "matrix": [3, 11], "x": 215, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 10], "x": 196, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 9], "x": 177, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 8], "x": 159, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 7], "x": 140, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 6], "x": 121, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 4], "x": 84, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 3], "x": 65, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 2], "x": 46, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 1], "x": 28, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 0], "x": 9, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 5], "x": 102, "y": 56 }
|
||||
]
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_4x12": {
|
||||
"layout": [
|
||||
{ "matrix": [0, 12], "x": 11, "y": 0 },
|
||||
{ "matrix": [0, 0], "x": 0, "y": 1 },
|
||||
{ "matrix": [0, 1], "x": 1, "y": 1 },
|
||||
{ "matrix": [0, 2], "x": 2, "y": 1 },
|
||||
{ "matrix": [0, 3], "x": 3, "y": 1 },
|
||||
{ "matrix": [0, 4], "x": 4, "y": 1 },
|
||||
{ "matrix": [0, 5], "x": 5, "y": 1 },
|
||||
{ "matrix": [0, 6], "x": 6, "y": 1 },
|
||||
{ "matrix": [0, 7], "x": 7, "y": 1 },
|
||||
{ "matrix": [0, 8], "x": 8, "y": 1 },
|
||||
{ "matrix": [0, 9], "x": 9, "y": 1 },
|
||||
{ "matrix": [0, 10], "x": 10, "y": 1 },
|
||||
{ "matrix": [0, 11], "x": 11, "y": 1 },
|
||||
{ "matrix": [1, 0], "x": 0, "y": 2 },
|
||||
{ "matrix": [1, 1], "x": 1, "y": 2 },
|
||||
{ "matrix": [1, 2], "x": 2, "y": 2 },
|
||||
{ "matrix": [1, 3], "x": 3, "y": 2 },
|
||||
{ "matrix": [1, 4], "x": 4, "y": 2 },
|
||||
{ "matrix": [1, 5], "x": 5, "y": 2 },
|
||||
{ "matrix": [1, 6], "x": 6, "y": 2 },
|
||||
{ "matrix": [1, 7], "x": 7, "y": 2 },
|
||||
{ "matrix": [1, 8], "x": 8, "y": 2 },
|
||||
{ "matrix": [1, 9], "x": 9, "y": 2 },
|
||||
{ "matrix": [1, 10], "x": 10, "y": 2 },
|
||||
{ "matrix": [1, 11], "x": 11, "y": 2 },
|
||||
{ "matrix": [2, 0], "x": 0, "y": 3 },
|
||||
{ "matrix": [2, 1], "x": 1, "y": 3 },
|
||||
{ "matrix": [2, 2], "x": 2, "y": 3 },
|
||||
{ "matrix": [2, 3], "x": 3, "y": 3 },
|
||||
{ "matrix": [2, 4], "x": 4, "y": 3 },
|
||||
{ "matrix": [2, 5], "x": 5, "y": 3 },
|
||||
{ "matrix": [2, 6], "x": 6, "y": 3 },
|
||||
{ "matrix": [2, 7], "x": 7, "y": 3 },
|
||||
{ "matrix": [2, 8], "x": 8, "y": 3 },
|
||||
{ "matrix": [2, 9], "x": 9, "y": 3 },
|
||||
{ "matrix": [2, 10], "x": 10, "y": 3 },
|
||||
{ "matrix": [2, 11], "x": 11, "y": 3 },
|
||||
{ "matrix": [3, 0], "x": 0, "y": 4 },
|
||||
{ "matrix": [3, 1], "x": 1, "y": 4 },
|
||||
{ "matrix": [3, 2], "x": 2, "y": 4 },
|
||||
{ "matrix": [3, 3], "x": 3, "y": 4 },
|
||||
{ "matrix": [3, 4], "x": 4, "y": 4 },
|
||||
{ "matrix": [3, 5], "x": 5, "y": 4 },
|
||||
{ "matrix": [3, 6], "x": 6, "y": 4 },
|
||||
{ "matrix": [3, 7], "x": 7, "y": 4 },
|
||||
{ "matrix": [3, 8], "x": 8, "y": 4 },
|
||||
{ "matrix": [3, 9], "x": 9, "y": 4 },
|
||||
{ "matrix": [3, 10], "x": 10, "y": 4 },
|
||||
{ "matrix": [3, 11], "x": 11, "y": 4 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
0
keyboards/1upkeyboards/pi40/grid_v1_1/rules.mk
Normal file
0
keyboards/1upkeyboards/pi40/grid_v1_1/rules.mk
Normal file
|
@ -1,123 +0,0 @@
|
|||
{
|
||||
"keyboard_name": "pi40",
|
||||
"manufacturer": "1upkeyboards",
|
||||
"usb": {
|
||||
"vid": "0x6F75",
|
||||
"pid": "0x5600",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "GP14", "pin_b": "GP13"}
|
||||
]
|
||||
},
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"board": "GENERIC_RP_RP2040",
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{ "matrix": [3, 6], "x": 11, "y": 0 },
|
||||
{ "matrix": [0, 0], "x": 0, "y": 1 },
|
||||
{ "matrix": [0, 1], "x": 1, "y": 1 },
|
||||
{ "matrix": [0, 2], "x": 2, "y": 1 },
|
||||
{ "matrix": [0, 3], "x": 3, "y": 1 },
|
||||
{ "matrix": [0, 4], "x": 4, "y": 1 },
|
||||
{ "matrix": [0, 5], "x": 5, "y": 1 },
|
||||
{ "matrix": [0, 6], "x": 6, "y": 1 },
|
||||
{ "matrix": [0, 7], "x": 7, "y": 1 },
|
||||
{ "matrix": [0, 8], "x": 8, "y": 1 },
|
||||
{ "matrix": [0, 9], "x": 9, "y": 1 },
|
||||
{ "matrix": [0, 10], "x": 10, "y": 1 },
|
||||
{ "matrix": [0, 11], "x": 11, "y": 1 },
|
||||
{ "matrix": [1, 0], "x": 0, "y": 2 },
|
||||
{ "matrix": [1, 1], "x": 1, "y": 2 },
|
||||
{ "matrix": [1, 2], "x": 2, "y": 2 },
|
||||
{ "matrix": [1, 3], "x": 3, "y": 2 },
|
||||
{ "matrix": [1, 4], "x": 4, "y": 2 },
|
||||
{ "matrix": [1, 5], "x": 5, "y": 2 },
|
||||
{ "matrix": [1, 6], "x": 6, "y": 2 },
|
||||
{ "matrix": [1, 7], "x": 7, "y": 2 },
|
||||
{ "matrix": [1, 8], "x": 8, "y": 2 },
|
||||
{ "matrix": [1, 9], "x": 9, "y": 2 },
|
||||
{ "matrix": [1, 10], "x": 10, "y": 2 },
|
||||
{ "matrix": [1, 11], "x": 11, "y": 2 },
|
||||
{ "matrix": [2, 0], "x": 0, "y": 3 },
|
||||
{ "matrix": [2, 1], "x": 1, "y": 3 },
|
||||
{ "matrix": [2, 2], "x": 2, "y": 3 },
|
||||
{ "matrix": [2, 3], "x": 3, "y": 3 },
|
||||
{ "matrix": [2, 4], "x": 4, "y": 3 },
|
||||
{ "matrix": [2, 5], "x": 5, "y": 3 },
|
||||
{ "matrix": [2, 6], "x": 6, "y": 3 },
|
||||
{ "matrix": [2, 7], "x": 7, "y": 3 },
|
||||
{ "matrix": [2, 8], "x": 8, "y": 3 },
|
||||
{ "matrix": [2, 9], "x": 9, "y": 3 },
|
||||
{ "matrix": [2, 10], "x": 10, "y": 3 },
|
||||
{ "matrix": [2, 11], "x": 11, "y": 3 },
|
||||
{ "matrix": [3, 0], "x": 0, "y": 4 },
|
||||
{ "matrix": [3, 1], "x": 1, "y": 4 },
|
||||
{ "matrix": [3, 2], "x": 2, "y": 4 },
|
||||
{ "matrix": [3, 3], "x": 3, "y": 4 },
|
||||
{ "matrix": [3, 4], "x": 4, "y": 4 },
|
||||
{ "matrix": [3, 5], "x": 5, "y": 4, "w": 2},
|
||||
{ "matrix": [3, 7], "x": 7, "y": 4 },
|
||||
{ "matrix": [3, 8], "x": 8, "y": 4 },
|
||||
{ "matrix": [3, 9], "x": 9, "y": 4 },
|
||||
{ "matrix": [3, 10], "x": 10, "y": 4 },
|
||||
{ "matrix": [3, 11], "x": 11, "y": 4 }
|
||||
]
|
||||
},
|
||||
"LAYOUT_ortho_4x12": {
|
||||
"layout": [
|
||||
{ "matrix": [0, 0], "x": 0, "y": 0 },
|
||||
{ "matrix": [0, 1], "x": 1, "y": 0 },
|
||||
{ "matrix": [0, 2], "x": 2, "y": 0 },
|
||||
{ "matrix": [0, 3], "x": 3, "y": 0 },
|
||||
{ "matrix": [0, 4], "x": 4, "y": 0 },
|
||||
{ "matrix": [0, 5], "x": 5, "y": 0 },
|
||||
{ "matrix": [0, 6], "x": 6, "y": 0 },
|
||||
{ "matrix": [0, 7], "x": 7, "y": 0 },
|
||||
{ "matrix": [0, 8], "x": 8, "y": 0 },
|
||||
{ "matrix": [0, 9], "x": 9, "y": 0 },
|
||||
{ "matrix": [0, 10], "x": 10, "y": 0 },
|
||||
{ "matrix": [0, 11], "x": 11, "y": 0 },
|
||||
{ "matrix": [1, 0], "x": 0, "y": 1 },
|
||||
{ "matrix": [1, 1], "x": 1, "y": 1 },
|
||||
{ "matrix": [1, 2], "x": 2, "y": 1 },
|
||||
{ "matrix": [1, 3], "x": 3, "y": 1 },
|
||||
{ "matrix": [1, 4], "x": 4, "y": 1 },
|
||||
{ "matrix": [1, 5], "x": 5, "y": 1 },
|
||||
{ "matrix": [1, 6], "x": 6, "y": 1 },
|
||||
{ "matrix": [1, 7], "x": 7, "y": 1 },
|
||||
{ "matrix": [1, 8], "x": 8, "y": 1 },
|
||||
{ "matrix": [1, 9], "x": 9, "y": 1 },
|
||||
{ "matrix": [1, 10], "x": 10, "y": 1 },
|
||||
{ "matrix": [1, 11], "x": 11, "y": 1 },
|
||||
{ "matrix": [2, 0], "x": 0, "y": 2 },
|
||||
{ "matrix": [2, 1], "x": 1, "y": 2 },
|
||||
{ "matrix": [2, 2], "x": 2, "y": 2 },
|
||||
{ "matrix": [2, 3], "x": 3, "y": 2 },
|
||||
{ "matrix": [2, 4], "x": 4, "y": 2 },
|
||||
{ "matrix": [2, 5], "x": 5, "y": 2 },
|
||||
{ "matrix": [2, 6], "x": 6, "y": 2 },
|
||||
{ "matrix": [2, 7], "x": 7, "y": 2 },
|
||||
{ "matrix": [2, 8], "x": 8, "y": 2 },
|
||||
{ "matrix": [2, 9], "x": 9, "y": 2 },
|
||||
{ "matrix": [2, 10], "x": 10, "y": 2 },
|
||||
{ "matrix": [2, 11], "x": 11, "y": 2 },
|
||||
{ "matrix": [3, 0], "x": 0, "y": 3 },
|
||||
{ "matrix": [3, 1], "x": 1, "y": 3 },
|
||||
{ "matrix": [3, 2], "x": 2, "y": 3 },
|
||||
{ "matrix": [3, 3], "x": 3, "y": 3 },
|
||||
{ "matrix": [3, 4], "x": 4, "y": 3 },
|
||||
{ "matrix": [3, 5], "x": 5, "y": 3 },
|
||||
{ "matrix": [3, 6], "x": 6, "y": 3, "label": "ENC" },
|
||||
{ "matrix": [3, 7], "x": 7, "y": 3 },
|
||||
{ "matrix": [3, 8], "x": 8, "y": 3 },
|
||||
{ "matrix": [3, 9], "x": 9, "y": 3 },
|
||||
{ "matrix": [3, 10], "x": 10, "y": 3 },
|
||||
{ "matrix": [3, 11], "x": 11, "y": 3 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -39,12 +39,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* |Adjust| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_ONE] = LAYOUT (
|
||||
[_ONE] = LAYOUT_ortho_4x12 (
|
||||
RGB_TOG,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
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, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
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
|
||||
|
@ -61,12 +61,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_TWO] = LAYOUT (
|
||||
[_TWO] = LAYOUT_ortho_4x12 (
|
||||
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_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
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||
),
|
||||
|
||||
/* Raise
|
||||
|
@ -83,12 +83,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | Mute | | Next | Vol- | Vol+ | Play |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_THREE] = LAYOUT (
|
||||
[_THREE] = LAYOUT_ortho_4x12 (
|
||||
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_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
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||
),
|
||||
|
||||
/* Adjust (Lower + Raise)
|
||||
|
@ -105,12 +105,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | Mute | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_FOUR] = LAYOUT (
|
||||
[_FOUR] = LAYOUT_ortho_4x12 (
|
||||
KC_MUTE,
|
||||
_______, QK_BOOT, DB_TOGG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
|
||||
_______, QK_BOOT, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
|
|
|
@ -45,12 +45,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* |Adjust| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_ONE] = LAYOUT (
|
||||
[_ONE] = LAYOUT_ortho_4x12 (
|
||||
RGB_TOG,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
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, MO(2), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
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
|
||||
|
@ -67,12 +67,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | Next | Vol- | Vol+ | Play |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_TWO] = LAYOUT (
|
||||
[_TWO] = LAYOUT_ortho_4x12 (
|
||||
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_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
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||
),
|
||||
|
||||
/* Raise
|
||||
|
@ -89,12 +89,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | Mute | | Next | Vol- | Vol+ | Play |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_THREE] = LAYOUT (
|
||||
[_THREE] = LAYOUT_ortho_4x12 (
|
||||
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_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
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||
),
|
||||
|
||||
/* Adjust (Lower + Raise)
|
||||
|
@ -111,12 +111,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | Mute | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_FOUR] = LAYOUT (
|
||||
[_FOUR] = LAYOUT_ortho_4x12 (
|
||||
KC_MUTE,
|
||||
_______, QK_BOOT, DB_TOGG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
|
||||
_______, QK_BOOT, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL ,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Placeholder
|
||||
|
@ -133,12 +133,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_FIVE] = LAYOUT (
|
||||
[_FIVE] = LAYOUT_ortho_4x12 (
|
||||
_______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Placeholder
|
||||
|
@ -155,12 +155,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_SIX] = LAYOUT (
|
||||
[_SIX] = LAYOUT_ortho_4x12 (
|
||||
_______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Placeholder
|
||||
|
@ -177,12 +177,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_SEVEN] = LAYOUT (
|
||||
[_SEVEN] = LAYOUT_ortho_4x12 (
|
||||
_______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Placeholder
|
||||
|
@ -199,12 +199,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_EIGHT] = LAYOUT (
|
||||
[_EIGHT] = LAYOUT_ortho_4x12 (
|
||||
_______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Placeholder
|
||||
|
@ -221,12 +221,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_NINE] = LAYOUT (
|
||||
[_NINE] = LAYOUT_ortho_4x12 (
|
||||
_______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Placeholder
|
||||
|
@ -243,12 +243,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
* | | | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------------------------------'
|
||||
*/
|
||||
[_TEN] = LAYOUT (
|
||||
[_TEN] = LAYOUT_ortho_4x12 (
|
||||
_______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
|
|
4
keyboards/1upkeyboards/pi40/mit_v1_0/config.h
Normal file
4
keyboards/1upkeyboards/pi40/mit_v1_0/config.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Copyright 2022 ziptyze (@ziptyze)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#define RGB_MATRIX_LED_COUNT 47
|
148
keyboards/1upkeyboards/pi40/mit_v1_0/info.json
Normal file
148
keyboards/1upkeyboards/pi40/mit_v1_0/info.json
Normal file
|
@ -0,0 +1,148 @@
|
|||
{
|
||||
"keyboard_name": "pi40",
|
||||
"manufacturer": "1upkeyboards",
|
||||
"maintainer": "ziptyze",
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"usb": {
|
||||
"vid": "0x6F75",
|
||||
"pid": "0x5600",
|
||||
"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": [ "GP21", "GP20", "GP19", "GP18" ],
|
||||
"cols": [ "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22" ]
|
||||
},
|
||||
"encoder": {
|
||||
"enabled": true,
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "GP14",
|
||||
"pin_b": "GP13"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
{ "flags": 1, "matrix": [0, 0], "x": 9, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 1], "x": 28, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 2], "x": 46, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 3], "x": 65, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 4], "x": 84, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 5], "x": 102, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 6], "x": 121, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 7], "x": 140, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 8], "x": 159, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 9], "x": 177, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 10], "x": 196, "y": 8 },
|
||||
{ "flags": 1, "matrix": [0, 11], "x": 215, "y": 8 },
|
||||
{ "flags": 1, "matrix": [1, 11], "x": 215, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 10], "x": 196, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 9], "x": 177, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 8], "x": 159, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 7], "x": 140, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 6], "x": 121, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 5], "x": 102, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 4], "x": 84, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 3], "x": 65, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 2], "x": 46, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 1], "x": 28, "y": 24 },
|
||||
{ "flags": 1, "matrix": [1, 0], "x": 9, "y": 24 },
|
||||
{ "flags": 1, "matrix": [2, 0], "x": 9, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 1], "x": 28, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 2], "x": 46, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 3], "x": 65, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 4], "x": 84, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 5], "x": 102, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 6], "x": 121, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 7], "x": 140, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 8], "x": 159, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 9], "x": 177, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 10], "x": 196, "y": 40 },
|
||||
{ "flags": 1, "matrix": [2, 11], "x": 215, "y": 40 },
|
||||
{ "flags": 1, "matrix": [3, 11], "x": 215, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 10], "x": 196, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 9], "x": 177, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 8], "x": 159, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 7], "x": 140, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 5], "x": 112, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 4], "x": 84, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 3], "x": 65, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 2], "x": 46, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 1], "x": 28, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 0], "x": 9, "y": 56 }
|
||||
]
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_4x12": {
|
||||
"layout": [
|
||||
{ "matrix": [3, 6], "x": 11, "y": 0 },
|
||||
{ "matrix": [0, 0], "x": 0, "y": 1 },
|
||||
{ "matrix": [0, 1], "x": 1, "y": 1 },
|
||||
{ "matrix": [0, 2], "x": 2, "y": 1 },
|
||||
{ "matrix": [0, 3], "x": 3, "y": 1 },
|
||||
{ "matrix": [0, 4], "x": 4, "y": 1 },
|
||||
{ "matrix": [0, 5], "x": 5, "y": 1 },
|
||||
{ "matrix": [0, 6], "x": 6, "y": 1 },
|
||||
{ "matrix": [0, 7], "x": 7, "y": 1 },
|
||||
{ "matrix": [0, 8], "x": 8, "y": 1 },
|
||||
{ "matrix": [0, 9], "x": 9, "y": 1 },
|
||||
{ "matrix": [0, 10], "x": 10, "y": 1 },
|
||||
{ "matrix": [0, 11], "x": 11, "y": 1 },
|
||||
{ "matrix": [1, 0], "x": 0, "y": 2 },
|
||||
{ "matrix": [1, 1], "x": 1, "y": 2 },
|
||||
{ "matrix": [1, 2], "x": 2, "y": 2 },
|
||||
{ "matrix": [1, 3], "x": 3, "y": 2 },
|
||||
{ "matrix": [1, 4], "x": 4, "y": 2 },
|
||||
{ "matrix": [1, 5], "x": 5, "y": 2 },
|
||||
{ "matrix": [1, 6], "x": 6, "y": 2 },
|
||||
{ "matrix": [1, 7], "x": 7, "y": 2 },
|
||||
{ "matrix": [1, 8], "x": 8, "y": 2 },
|
||||
{ "matrix": [1, 9], "x": 9, "y": 2 },
|
||||
{ "matrix": [1, 10], "x": 10, "y": 2 },
|
||||
{ "matrix": [1, 11], "x": 11, "y": 2 },
|
||||
{ "matrix": [2, 0], "x": 0, "y": 3 },
|
||||
{ "matrix": [2, 1], "x": 1, "y": 3 },
|
||||
{ "matrix": [2, 2], "x": 2, "y": 3 },
|
||||
{ "matrix": [2, 3], "x": 3, "y": 3 },
|
||||
{ "matrix": [2, 4], "x": 4, "y": 3 },
|
||||
{ "matrix": [2, 5], "x": 5, "y": 3 },
|
||||
{ "matrix": [2, 6], "x": 6, "y": 3 },
|
||||
{ "matrix": [2, 7], "x": 7, "y": 3 },
|
||||
{ "matrix": [2, 8], "x": 8, "y": 3 },
|
||||
{ "matrix": [2, 9], "x": 9, "y": 3 },
|
||||
{ "matrix": [2, 10], "x": 10, "y": 3 },
|
||||
{ "matrix": [2, 11], "x": 11, "y": 3 },
|
||||
{ "matrix": [3, 0], "x": 0, "y": 4 },
|
||||
{ "matrix": [3, 1], "x": 1, "y": 4 },
|
||||
{ "matrix": [3, 2], "x": 2, "y": 4 },
|
||||
{ "matrix": [3, 3], "x": 3, "y": 4 },
|
||||
{ "matrix": [3, 4], "x": 4, "y": 4 },
|
||||
{ "matrix": [3, 5], "x": 5, "y": 4 },
|
||||
{ "matrix": [0, 12], "x": 6, "y": 4 },
|
||||
{ "matrix": [3, 7], "x": 7, "y": 4 },
|
||||
{ "matrix": [3, 8], "x": 8, "y": 4 },
|
||||
{ "matrix": [3, 9], "x": 9, "y": 4 },
|
||||
{ "matrix": [3, 10], "x": 10, "y": 4 },
|
||||
{ "matrix": [3, 11], "x": 11, "y": 4 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
0
keyboards/1upkeyboards/pi40/mit_v1_0/rules.mk
Normal file
0
keyboards/1upkeyboards/pi40/mit_v1_0/rules.mk
Normal file
4
keyboards/1upkeyboards/pi40/mit_v1_1/config.h
Normal file
4
keyboards/1upkeyboards/pi40/mit_v1_1/config.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
// Copyright 2022 ziptyze (@ziptyze)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#define RGB_MATRIX_LED_COUNT 47
|
148
keyboards/1upkeyboards/pi40/mit_v1_1/info.json
Normal file
148
keyboards/1upkeyboards/pi40/mit_v1_1/info.json
Normal file
|
@ -0,0 +1,148 @@
|
|||
{
|
||||
"keyboard_name": "pi40",
|
||||
"manufacturer": "1upkeyboards",
|
||||
"maintainer": "ziptyze",
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"usb": {
|
||||
"vid": "0x6F75",
|
||||
"pid": "0x5600",
|
||||
"device_version": "1.1.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": [ "GP21", "GP20", "GP19", "GP18" ],
|
||||
"cols": [ "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22" ]
|
||||
},
|
||||
"encoder": {
|
||||
"enabled": true,
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "GP14",
|
||||
"pin_b": "GP13"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
{ "flags": 1, "matrix": [0, 0], "x": 9, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 1], "x": 28, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 2], "x": 46, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 3], "x": 65, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 4], "x": 84, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 5], "x": 102, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 6], "x": 121, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 7], "x": 140, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 8], "x": 159, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 9], "x": 177, "y": 8 },
|
||||
{ "flags": 4, "matrix": [0, 10], "x": 196, "y": 8 },
|
||||
{ "flags": 1, "matrix": [0, 11], "x": 215, "y": 8 },
|
||||
{ "flags": 1, "matrix": [1, 11], "x": 215, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 10], "x": 196, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 9], "x": 177, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 8], "x": 159, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 7], "x": 140, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 6], "x": 121, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 5], "x": 102, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 4], "x": 84, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 3], "x": 65, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 2], "x": 46, "y": 24 },
|
||||
{ "flags": 4, "matrix": [1, 1], "x": 28, "y": 24 },
|
||||
{ "flags": 1, "matrix": [1, 0], "x": 9, "y": 24 },
|
||||
{ "flags": 1, "matrix": [2, 0], "x": 9, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 1], "x": 28, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 2], "x": 46, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 3], "x": 65, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 4], "x": 84, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 5], "x": 102, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 6], "x": 121, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 7], "x": 140, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 8], "x": 159, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 9], "x": 177, "y": 40 },
|
||||
{ "flags": 4, "matrix": [2, 10], "x": 196, "y": 40 },
|
||||
{ "flags": 1, "matrix": [2, 11], "x": 215, "y": 40 },
|
||||
{ "flags": 1, "matrix": [3, 11], "x": 215, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 10], "x": 196, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 9], "x": 177, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 8], "x": 159, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 7], "x": 140, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 5], "x": 112, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 4], "x": 84, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 3], "x": 65, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 2], "x": 46, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 1], "x": 28, "y": 56 },
|
||||
{ "flags": 1, "matrix": [3, 0], "x": 9, "y": 56 }
|
||||
]
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_4x12": {
|
||||
"layout": [
|
||||
{ "matrix": [0, 12], "x": 11, "y": 0 },
|
||||
{ "matrix": [0, 0], "x": 0, "y": 1 },
|
||||
{ "matrix": [0, 1], "x": 1, "y": 1 },
|
||||
{ "matrix": [0, 2], "x": 2, "y": 1 },
|
||||
{ "matrix": [0, 3], "x": 3, "y": 1 },
|
||||
{ "matrix": [0, 4], "x": 4, "y": 1 },
|
||||
{ "matrix": [0, 5], "x": 5, "y": 1 },
|
||||
{ "matrix": [0, 6], "x": 6, "y": 1 },
|
||||
{ "matrix": [0, 7], "x": 7, "y": 1 },
|
||||
{ "matrix": [0, 8], "x": 8, "y": 1 },
|
||||
{ "matrix": [0, 9], "x": 9, "y": 1 },
|
||||
{ "matrix": [0, 10], "x": 10, "y": 1 },
|
||||
{ "matrix": [0, 11], "x": 11, "y": 1 },
|
||||
{ "matrix": [1, 0], "x": 0, "y": 2 },
|
||||
{ "matrix": [1, 1], "x": 1, "y": 2 },
|
||||
{ "matrix": [1, 2], "x": 2, "y": 2 },
|
||||
{ "matrix": [1, 3], "x": 3, "y": 2 },
|
||||
{ "matrix": [1, 4], "x": 4, "y": 2 },
|
||||
{ "matrix": [1, 5], "x": 5, "y": 2 },
|
||||
{ "matrix": [1, 6], "x": 6, "y": 2 },
|
||||
{ "matrix": [1, 7], "x": 7, "y": 2 },
|
||||
{ "matrix": [1, 8], "x": 8, "y": 2 },
|
||||
{ "matrix": [1, 9], "x": 9, "y": 2 },
|
||||
{ "matrix": [1, 10], "x": 10, "y": 2 },
|
||||
{ "matrix": [1, 11], "x": 11, "y": 2 },
|
||||
{ "matrix": [2, 0], "x": 0, "y": 3 },
|
||||
{ "matrix": [2, 1], "x": 1, "y": 3 },
|
||||
{ "matrix": [2, 2], "x": 2, "y": 3 },
|
||||
{ "matrix": [2, 3], "x": 3, "y": 3 },
|
||||
{ "matrix": [2, 4], "x": 4, "y": 3 },
|
||||
{ "matrix": [2, 5], "x": 5, "y": 3 },
|
||||
{ "matrix": [2, 6], "x": 6, "y": 3 },
|
||||
{ "matrix": [2, 7], "x": 7, "y": 3 },
|
||||
{ "matrix": [2, 8], "x": 8, "y": 3 },
|
||||
{ "matrix": [2, 9], "x": 9, "y": 3 },
|
||||
{ "matrix": [2, 10], "x": 10, "y": 3 },
|
||||
{ "matrix": [2, 11], "x": 11, "y": 3 },
|
||||
{ "matrix": [3, 0], "x": 0, "y": 4 },
|
||||
{ "matrix": [3, 1], "x": 1, "y": 4 },
|
||||
{ "matrix": [3, 2], "x": 2, "y": 4 },
|
||||
{ "matrix": [3, 3], "x": 3, "y": 4 },
|
||||
{ "matrix": [3, 4], "x": 4, "y": 4 },
|
||||
{ "matrix": [3, 5], "x": 5, "y": 4 },
|
||||
{ "matrix": [3, 6], "x": 6, "y": 4 },
|
||||
{ "matrix": [3, 7], "x": 7, "y": 4 },
|
||||
{ "matrix": [3, 8], "x": 8, "y": 4 },
|
||||
{ "matrix": [3, 9], "x": 9, "y": 4 },
|
||||
{ "matrix": [3, 10], "x": 10, "y": 4 },
|
||||
{ "matrix": [3, 11], "x": 11, "y": 4 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
0
keyboards/1upkeyboards/pi40/mit_v1_1/rules.mk
Normal file
0
keyboards/1upkeyboards/pi40/mit_v1_1/rules.mk
Normal file
|
@ -57,28 +57,6 @@ static const char PROGMEM my_logo[] = {
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
led_config_t g_led_config = { {
|
||||
// Key Matrix to LED Index
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 },
|
||||
{ 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12 },
|
||||
{ 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 },
|
||||
{ 46, 45, 44, 43, 42, 41, NO_LED, 40, 39, 38, 37, 36 }
|
||||
}, {
|
||||
// LED Index to Physical Position
|
||||
{ 9, 8 }, { 28, 8 }, { 46, 8 }, { 65, 8 }, { 84, 8 }, { 102, 8 }, { 121, 8 }, { 140, 8 }, { 159, 8 }, { 177, 8 }, { 196, 8 }, { 215, 8 },
|
||||
{ 215, 24 }, { 196, 24 }, { 177, 24 }, { 159, 24 }, { 140, 24 }, { 121, 24 }, { 102, 24 }, { 84, 24 }, { 65, 24 }, { 46, 24 }, { 28, 24 }, { 9, 24 },
|
||||
{ 9, 40 }, { 28, 40 }, { 46, 40 }, { 65, 40 }, { 84, 40 }, { 102, 40 }, { 121, 40 }, { 140, 40 }, { 159, 40 }, { 177, 40 }, { 196, 40 }, { 215, 40 },
|
||||
{ 215, 56 }, { 196, 56 }, { 177, 56 }, { 159, 56 }, { 140, 56 }, { 112, 56 }, { 84, 56 }, { 65, 56 }, { 46, 56 }, { 28, 56 }, { 9, 56 }
|
||||
}, {
|
||||
// LED Index to Flag
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
|
||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
} };
|
||||
#endif
|
||||
|
||||
#ifdef OLED_ENABLE
|
||||
|
||||
void init_timer(void){
|
||||
|
|
|
@ -1,21 +1,6 @@
|
|||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = WS2812
|
||||
|
||||
WS2812_DRIVER = vendor
|
||||
ENCODER_ENABLE = yes
|
||||
|
||||
OLED_ENABLE = yes
|
||||
OLED_DRIVER = SSD1306
|
||||
|
||||
DEFAULT_FOLDER = 1upkeyboards/pi40/mit_v1_0
|
||||
|
|
Loading…
Reference in a new issue