Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to pi40 #19903

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions keyboards/1upkeyboards/pi40/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include "config_common.h"

#define DYNAMIC_KEYMAP_LAYER_COUNT 10

#ifdef OLED_ENABLE
# define OLED_DISPLAY_128X32
#define I2C1_SCL_PIN GP17
Expand All @@ -16,21 +14,7 @@
#define OLED_FONT_H "keyboards/1upkeyboards/pi40/lib/glcdfont.c"
#endif

/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 12

#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 ENCODERS_PAD_A { GP14 }
#define ENCODERS_PAD_B { GP13 }

#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
Expand Down Expand Up @@ -87,8 +71,6 @@
# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#endif

#define DEBOUNCE 5

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/1upkeyboards/pi40/grid_v1_1/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright 2022 ziptyze (@ziptyze)
// SPDX-License-Identifier: GPL-2.0-or-later

#define RGB_MATRIX_LED_COUNT 48
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
151 changes: 151 additions & 0 deletions keyboards/1upkeyboards/pi40/grid_v1_1/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{
"keyboard_name": "pi40",
"manufacturer": "1upkeyboards",
"maintainer": "ziptyze",
"processor": "RP2040",
"bootloader": "rp2040",
"board": "GENERIC_RP_RP2040",
"usb": {
"vid": "0x6F75",
"pid": "0x5600",
"device_version": "1.1.0"
},
"debounce": 5,
"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 }
]
}
}
}
Empty file.
115 changes: 0 additions & 115 deletions keyboards/1upkeyboards/pi40/info.json

This file was deleted.

Loading