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

add slider8 #21546

Merged
merged 17 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
80 changes: 80 additions & 0 deletions keyboards/1upkeyboards/1upslider8/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/* 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/>.
*/

#pragma once

#define I2C1_SCL_PIN GP11
#define I2C1_SDA_PIN GP10
#define I2C_DRIVER I2CD1
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
#define OLED_BRIGHTNESS 128
#define OLED_FONT_H "keyboards/1upkeyboards/1upslider8/lib/glcdfont.c"
ziptyze marked this conversation as resolved.
Show resolved Hide resolved


#define SLIDER_PIN GP28
#define MIDI_ADVANCED

#define RGB_MATRIX_LED_COUNT 8
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// 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
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
#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
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 9 additions & 0 deletions keyboards/1upkeyboards/1upslider8/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2023 ziptyze
// SPDX-License-Identifier: GPL-2.0-or-later#pragma once

#pragma once

#define HAL_USE_I2C TRUE
#define HAL_USE_ADC TRUE

#include_next <halconf.h>
77 changes: 77 additions & 0 deletions keyboards/1upkeyboards/1upslider8/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"manufacturer": "1upkeyboards",
"keyboard_name": "1upslider8",
"maintainer": "ziptyze",
"processor": "RP2040",
"bootloader": "rp2040",
"board": "GENERIC_RP_RP2040",
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
"usb": {
"device_version": "1.0.0",
"pid": "0x5611",
"vid": "0x6F75"
},
"dynamic_keymap": {
"layer_count": 10
},
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": false,
"oled": true,
"midi":true,
"rgb_matrix": true
},
"encoder": {
"enabled": true,
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
"rotary": [
{
"pin_a": "GP21",
"pin_b": "GP22"
}
]
},
"matrix_pins": {
"direct": [
["GP27", "GP17", "GP18", "GP19", "GP20", "GP15", "GP14", "GP13", "GP16"]
]
},
"bootmagic": {
"enabled": true,
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
"matrix": [0, 1]
},
"ws2812": {
"pin": "GP26"
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
},
"rgb_matrix": {
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
"driver": "WS2812",
"layout": [
{ "flags": 4, "matrix": [0, 1], "x": 28, "y": 16 },
{ "flags": 4, "matrix": [0, 2], "x": 84, "y": 16 },
{ "flags": 4, "matrix": [0, 3], "x": 140, "y": 16 },
{ "flags": 4, "matrix": [0, 4], "x": 196, "y": 16 },
{ "flags": 4, "matrix": [0, 5], "x": 28, "y": 48 },
{ "flags": 4, "matrix": [0, 6], "x": 84, "y": 48 },
{ "flags": 4, "matrix": [0, 7], "x": 140, "y": 48 },
{ "flags": 4, "matrix": [0, 8], "x": 196, "y": 48 }
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
]
},
"layouts": {
"LAYOUT_2x4": {
"layout": [
{ "label": "enc", "matrix": [0, 0], "w": 1, "x": 3, "y": 0 },

{ "label": "1", "matrix": [0, 1], "w": 1, "x": 0, "y": 1 },
{ "label": "2", "matrix": [0, 2], "w": 1, "x": 1, "y": 1 },
{ "label": "3", "matrix": [0, 3], "w": 1, "x": 2, "y": 1 },
{ "label": "4", "matrix": [0, 4], "w": 1, "x": 3, "y": 1 },
{ "label": "5", "matrix": [0, 5], "w": 1, "x": 0, "y": 2 },
{ "label": "6", "matrix": [0, 6], "w": 1, "x": 1, "y": 2 },
{ "label": "7", "matrix": [0, 7], "w": 1, "x": 2, "y": 2 },
{ "label": "8", "matrix": [0, 8], "w": 1, "x": 3, "y": 2 }
ziptyze marked this conversation as resolved.
Show resolved Hide resolved
]
}
}
}
Loading