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

[Keyboard] 1upkeyboards/pi40 update #20066

Merged
merged 6 commits into from
Mar 17, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 1 addition & 13 deletions keyboards/1upkeyboards/pi40/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions keyboards/1upkeyboards/pi40/grid_v1_1/config.h
Original file line number Diff line number Diff line change
@@ -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 changes: 149 additions & 0 deletions keyboards/1upkeyboards/pi40/grid_v1_1/info.json
Original file line number Diff line number Diff line change
@@ -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 }
]
}
}
}
Empty file.
123 changes: 0 additions & 123 deletions keyboards/1upkeyboards/pi40/info.json

This file was deleted.

Loading