diff options
author | lokher <lokher@gmail.com> | 2022-12-06 17:04:10 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-12-06 17:04:10 +0800 |
commit | 27fc28fd2ff52e079a5bc58d6aaea4c752420615 (patch) | |
tree | 7ac943fb1ba4f430a7220efd18f66f6a77205c30 /keyboards/the_uni | |
parent | e736133392fe6427cfb995da0787337189828272 (diff) | |
parent | 2709b6ed616f8012ff4cfd3ee69a822a8d188351 (diff) |
Merge upstream master
Diffstat (limited to 'keyboards/the_uni')
-rw-r--r-- | keyboards/the_uni/pro_micro/readme.md | 22 | ||||
-rw-r--r-- | keyboards/the_uni/readme.md | 36 | ||||
-rw-r--r-- | keyboards/the_uni/rp_2040/config.h | 60 | ||||
-rw-r--r-- | keyboards/the_uni/rp_2040/info.json | 5 | ||||
-rw-r--r-- | keyboards/the_uni/rp_2040/readme.md | 25 | ||||
-rw-r--r-- | keyboards/the_uni/rp_2040/rp_2040.c | 17 | ||||
-rwxr-xr-x | keyboards/the_uni/rp_2040/rp_2040.h | 30 | ||||
-rw-r--r-- | keyboards/the_uni/rp_2040/rules.mk | 19 | ||||
-rw-r--r-- | keyboards/the_uni/usb_c/info.json | 5 |
9 files changed, 219 insertions, 0 deletions
diff --git a/keyboards/the_uni/pro_micro/readme.md b/keyboards/the_uni/pro_micro/readme.md new file mode 100644 index 0000000000..397cf7a198 --- /dev/null +++ b/keyboards/the_uni/pro_micro/readme.md @@ -0,0 +1,22 @@ +# The Uni v1 and v2 + +![Uni v2](https://i.imgur.com/hIIK8xN.jpg) + +- Keyboard Maintainer: [Peter](https://github.com/petercpark) +- Link to Keyboard Files: [The_Uni](https://github.com/petercpark/The_Uni) (For personal use only) +- Hardware Supported: + - The Uni v1 and v2 (pro_micro) +- Hardware Availability: [https://www.stenokeyboards.com](https://www.stenokeyboards.com) + +# Bootloader + +Enter the bootloader by: + +- **Physical reset button**: On the Uni v3, briefly press the button on the back of the PCB. +- **Reset Pads**: Uni v1 and v2 have pins/pads you must short instead (RST to GND). + +Make examples for this keyboard (after setting up your build environment): + + make the_uni/pro_micro:default + +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). diff --git a/keyboards/the_uni/readme.md b/keyboards/the_uni/readme.md new file mode 100644 index 0000000000..88cb81b111 --- /dev/null +++ b/keyboards/the_uni/readme.md @@ -0,0 +1,36 @@ +# The Uni + + +![Layout](https://docs.stenokeyboards.com/images/uni-layout.png) +![The Uni v2](https://github.com/petercpark/The_Uni/blob/main/Pics/uni%20v2/uni-v2.JPG?raw=true) + +A compact unibody split ortholinear keyboard made specifically for stenography. + +- Keyboard Maintainer: [Peter](https://github.com/petercpark) +- Link to Keyboard Files (pro_micro version): [https://github.com/petercpark/The_Uni](https://github.com/petercpark/The_Uni) +- Hardware Supported: + + - The Uni v1 and v2 (pro_micro) + - The Uni v3 (usb_c) + +- Hardware Availability: [https://www.stenokeyboards.com](https://www.stenokeyboards.com) + +# Bootloader + +Enter the bootloader by: + +- **Physical reset button**: On the Uni v3, briefly press the button on the back of the PCB. +- **Reset Pads**: Uni v1 and v2 have pins/pads you must short instead (RST to GND). + +Make examples for this keyboard (after setting up your build environment): + + # version 1 and 2 + make the_uni/pro_micro:default + + # version 3 + make the_uni/usb_c:default + + # version 4 + qmk compile -kb the_uni/rp_2040 -km default + +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). diff --git a/keyboards/the_uni/rp_2040/config.h b/keyboards/the_uni/rp_2040/config.h new file mode 100644 index 0000000000..b14a6ea2d2 --- /dev/null +++ b/keyboards/the_uni/rp_2040/config.h @@ -0,0 +1,60 @@ +/* Copyright 2019 + * + * 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 + +#include "config_common.h" +/* key matrix size */ +#define MATRIX_ROWS 3 +#define MATRIX_COLS 11 + +#define MATRIX_COL_PINS { GP24, GP23, GP21, GP20, GP19, GP6, GP5, GP4, GP3, GP2, GP1 } +#define MATRIX_ROW_PINS { GP25, GP18, GP17 } +// #define DEBUG_MATRIX_SCAN_RATE + +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET +//#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25 +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* number of backlight levels */ + +// #ifdef BACKLIGHT_PIN +// #define BACKLIGHT_LEVELS 3 +// #endif + +/* Set 0 if debouncing isn't needed */ +#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 + + +// #ifdef RGB_DI_PIN +// #define RGBLED_NUM 0 +// #define RGBLIGHT_HUE_STEP 8 +// #define RGBLIGHT_SAT_STEP 8 +// #define RGBLIGHT_VAL_STEP 8 +// #endif + +// #endif + +#define FORCE_NKRO diff --git a/keyboards/the_uni/rp_2040/info.json b/keyboards/the_uni/rp_2040/info.json new file mode 100644 index 0000000000..cebd90c01e --- /dev/null +++ b/keyboards/the_uni/rp_2040/info.json @@ -0,0 +1,5 @@ +{ + "usb": { + "device_version": "0.0.4" + } +} diff --git a/keyboards/the_uni/rp_2040/readme.md b/keyboards/the_uni/rp_2040/readme.md new file mode 100644 index 0000000000..5867a213d9 --- /dev/null +++ b/keyboards/the_uni/rp_2040/readme.md @@ -0,0 +1,25 @@ +# Uni v4 + +![Uni v4](https://i.imgur.com/HyvMu26h.png) + +- Hardware Supported: + - The Uni v4 +- Hardware Availability: [https://www.stenokeyboards.com](https://www.stenokeyboards.com) +- Uses the rp2040 chip + +Make the .uf2 file by doing: + +# Bootloader + +Enter the bootloader by: + +- **Physical boot button**: + - First, unplug the Uni v4. + - Then press and hold the button on the back of the PCB marked "B" while you plug in the keyboard. This will create register the keyboard as a storage device on the computer. + - Copy and paste the .uf2 file in the top directory of the device. Once done, it will automatically reboot the keyboard. + +Make examples for this keyboard (after setting up your build environment): + + qmk compile -kb the_uni/rp_2040 -km default + +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). diff --git a/keyboards/the_uni/rp_2040/rp_2040.c b/keyboards/the_uni/rp_2040/rp_2040.c new file mode 100644 index 0000000000..b032a22f42 --- /dev/null +++ b/keyboards/the_uni/rp_2040/rp_2040.c @@ -0,0 +1,17 @@ +/* Copyright 2021 Stefan Kerkmann + * + * 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 "rp_2040.h" + diff --git a/keyboards/the_uni/rp_2040/rp_2040.h b/keyboards/the_uni/rp_2040/rp_2040.h new file mode 100755 index 0000000000..9371c3a241 --- /dev/null +++ b/keyboards/the_uni/rp_2040/rp_2040.h @@ -0,0 +1,30 @@ +/* +Copyright 2021 Peter C. Park <peter@stenokeyboards.com> + +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 + +#include "quantum.h" + +#define LAYOUT( \ + K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, \ + K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \ + K202, K203, K204, K205, K206, K207 \ +) { \ + { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \ + { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \ + { KC_NO, KC_NO, K202, K203, K204, K205, K206, K207, KC_NO, KC_NO, KC_NO } \ +} diff --git a/keyboards/the_uni/rp_2040/rules.mk b/keyboards/the_uni/rp_2040/rules.mk new file mode 100644 index 0000000000..da6a3dc6a8 --- /dev/null +++ b/keyboards/the_uni/rp_2040/rules.mk @@ -0,0 +1,19 @@ +# MCU name +MCU = RP2040 + +# Bootloader selection +BOOTLOADER = rp2040 + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +MOUSEKEY_ENABLE = no # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = yes # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output +STENO_ENABLE = yes diff --git a/keyboards/the_uni/usb_c/info.json b/keyboards/the_uni/usb_c/info.json new file mode 100644 index 0000000000..b377cdff00 --- /dev/null +++ b/keyboards/the_uni/usb_c/info.json @@ -0,0 +1,5 @@ +{ + "usb": { + "device_version": "0.0.3" + } +} |