forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keyboard] add 1upkeyboards 1upslider8 (qmk#21546)
Co-authored-by: Duncan Sutherland <[email protected]> Co-authored-by: jack <[email protected]> Co-authored-by: Drashna Jaelre <[email protected]>
- Loading branch information
Showing
11 changed files
with
658 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,29 @@ | ||
/* 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 OLED_BRIGHTNESS 128 | ||
|
||
#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 |
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,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> |
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,115 @@ | ||
{ | ||
"manufacturer": "1upkeyboards", | ||
"keyboard_name": "1upslider8", | ||
"maintainer": "ziptyze", | ||
"processor": "RP2040", | ||
"bootloader": "rp2040", | ||
"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": true | ||
}, | ||
"encoder": { | ||
"rotary": [ | ||
{ | ||
"pin_a": "GP21", | ||
"pin_b": "GP22" | ||
} | ||
] | ||
}, | ||
"matrix_pins": { | ||
"direct": [ | ||
["GP27", "GP17", "GP18", "GP19", "GP20", "GP15", "GP14", "GP13", "GP16"] | ||
] | ||
}, | ||
"bootmagic": { | ||
"matrix": [0, 1] | ||
}, | ||
"ws2812": { | ||
"pin": "GP26", | ||
"driver": "vendor" | ||
}, | ||
"rgb_matrix": { | ||
"animations": { | ||
"gradient_up_down": true, | ||
"gradient_left_right": true, | ||
"breathing": true, | ||
"band_sat": true, | ||
"band_val": true, | ||
"band_pinwheel_sat": true, | ||
"band_pinwheel_val": true, | ||
"band_spiral_sat": true, | ||
"band_spiral_val": true, | ||
"cycle_all": true, | ||
"cycle_left_right": true, | ||
"cycle_up_down": true, | ||
"rainbow_moving_chevron":true, | ||
"cycle_out_in": true, | ||
"cycle_out_in_dual": true, | ||
"cycle_pinwheel": true, | ||
"cycle_spiral": true, | ||
"dual_beacon": true, | ||
"rainbow_beacon": true, | ||
"rainbow_pinwheels": true, | ||
"raindrops": true, | ||
"jellybean_raindrops": true, | ||
"hue_breathing": true, | ||
"hue_pendulum": true, | ||
"hue_wave": true, | ||
"typing_heatmap": true, | ||
"solid_reactive_simple": true, | ||
"solid_reactive": true, | ||
"solid_reactive_wide": true, | ||
"solid_reactive_multiwide": true, | ||
"solid_reactive_cross": true, | ||
"solid_reactive_multicross": true, | ||
"solid_reactive_nexus": true, | ||
"solid_reactive_multinexus": true, | ||
"splash": true, | ||
"multisplash": true, | ||
"solid_splash": true, | ||
"solid_multisplash": true | ||
}, | ||
"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 } | ||
] | ||
}, | ||
"layouts": { | ||
"LAYOUT": { | ||
"layout": [ | ||
{ "label": "enc", "matrix": [0, 0], "x": 3, "y": 0 }, | ||
{ "label": "1", "matrix": [0, 1], "x": 0, "y": 1 }, | ||
{ "label": "2", "matrix": [0, 2], "x": 1, "y": 1 }, | ||
{ "label": "3", "matrix": [0, 3], "x": 2, "y": 1 }, | ||
{ "label": "4", "matrix": [0, 4], "x": 3, "y": 1 }, | ||
{ "label": "5", "matrix": [0, 5], "x": 0, "y": 2 }, | ||
{ "label": "6", "matrix": [0, 6], "x": 1, "y": 2 }, | ||
{ "label": "7", "matrix": [0, 7], "x": 2, "y": 2 }, | ||
{ "label": "8", "matrix": [0, 8], "x": 3, "y": 2 } | ||
] | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
keyboards/1upkeyboards/1upslider8/keymaps/default/keymap.c
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,31 @@ | ||
/* Copyright 2022 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/>. | ||
*/ | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[0] = LAYOUT( | ||
RGB_TOG, | ||
KC_1, KC_2, KC_3, KC_4, | ||
KC_5, KC_6, KC_7, KC_8 | ||
) | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
[0] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD)} | ||
}; | ||
#endif |
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 @@ | ||
ENCODER_MAP_ENABLE = yes |
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,31 @@ | ||
/* 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/>. | ||
*/ | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[0] = LAYOUT( | ||
RGB_TOG, | ||
KC_1, KC_2, KC_3, KC_4, | ||
KC_5, KC_6, KC_7, KC_8 | ||
) | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
[0] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD)} | ||
}; | ||
#endif |
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,3 @@ | ||
VIA_ENABLE = yes | ||
|
||
ENCODER_MAP_ENABLE = yes |
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,11 @@ | ||
// Copyright 2023 ziptyze | ||
// SPDX-License-Identifier: GPL-2.0-or-later#pragma once | ||
|
||
#pragma once | ||
|
||
#include_next <mcuconf.h> | ||
|
||
#undef RP_I2C_USE_I2C1 | ||
#undef RP_ADC_USE_ADC1 | ||
#define RP_I2C_USE_I2C1 TRUE | ||
#define RP_ADC_USE_ADC1 TRUE |
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,27 @@ | ||
# slider8 | ||
|
||
![slider8](https://i.imgur.com/AiVQySnh.jpg) | ||
|
||
|
||
This keyboard is the slider8 from 1upkeyboards.com, a small macropad with an oled, slide potentiometer, rotary encoder, and 8 switches in a 2x4 ortholinear arrangement with per-key in-switch rgb leds. | ||
|
||
The slide potentiometer presents to the computer as a midi device and will need a seperate program to map to device control. | ||
|
||
* Keyboard Maintainer: [ziptyze](https://github.com/ziptyze) | ||
|
||
Make example for this keyboard (after setting up your build environment): | ||
|
||
make 1upkeyboards/1upslider8:default | ||
|
||
Flashing example for this keyboard: | ||
|
||
make 1upkeyboards/1upslider8:default:flash | ||
|
||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
|
||
## Bootloader | ||
|
||
Enter the bootloader in 2 ways: | ||
|
||
* **Bootmagic reset**: Hold down the top left key and plug in the keyboard | ||
* **Physical reset button**: Hold down the button on the pi pico and plug in the keyboard |
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 @@ | ||
SRC += analog.c |