-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
pi40 firmware #18207
Merged
Merged
pi40 firmware #18207
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e9d4ea7
added pi40 firmware
ziptyze f85bfbb
Update keyboards/1upkeyboards/pi40/config.h
ziptyze fff3738
Update keyboards/1upkeyboards/pi40/pi40.c
ziptyze eae4280
Update keyboards/1upkeyboards/pi40/pi40.h
ziptyze 4c83377
requested changes
ziptyze d44c0c6
Merge branch 'master' of https://github.com/ziptyze/qmk_firmware
ziptyze 609c500
Update keyboards/1upkeyboards/pi40/rules.mk
ziptyze 8dd2803
requested changes
ziptyze 36f20b2
Update keyboards/1upkeyboards/pi40/readme.md
ziptyze cacc193
Tidy up layout macros
zvecr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
// Copyright 2022 ziptyze (@ziptyze) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include "config_common.h" | ||
|
||
#define DYNAMIC_KEYMAP_LAYER_COUNT 10 | ||
|
||
#ifdef OLED_ENABLE | ||
# define OLED_DISPLAY_128X32 | ||
#define I2C1_SCL_PIN GP17 | ||
#define I2C1_SDA_PIN GP16 | ||
#define I2C_DRIVER I2CD1 | ||
#define OLED_BRIGHTNESS 128 | ||
#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 DRIVER_LED_TOTAL 47 | ||
#define RGBLED_NUM 47 | ||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses | ||
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
# define RGBLIGHT_LIMIT_VAL 150 | ||
#ifdef RGB_MATRIX_ENABLE | ||
# 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 | ||
#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 */ | ||
#define LOCKING_RESYNC_ENABLE | ||
|
||
/* Bootmagic Lite key configuration */ | ||
#define BOOTMAGIC_LITE_ROW 0 | ||
#define BOOTMAGIC_LITE_COLUMN 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright 2022 QMK | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#pragma once | ||
|
||
#define HAL_USE_I2C TRUE | ||
|
||
#include_next <halconf.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"keyboard_name": "pi40", | ||
"manufacturer": "1upkeyboards", | ||
"usb": { | ||
"vid": "0x6F75", | ||
"pid": "0x5600", | ||
"device_version": "0.0.1" | ||
}, | ||
"layouts": { | ||
"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 }, | ||
{ "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 } | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads up, most of this can be added to the info.json file, now.