diff options
Diffstat (limited to 'keyboards/keyhive/uno')
-rw-r--r-- | keyboards/keyhive/uno/config.h | 21 | ||||
-rw-r--r-- | keyboards/keyhive/uno/info.json | 14 | ||||
-rw-r--r-- | keyboards/keyhive/uno/keymaps/copypasta/keymap.c | 85 | ||||
-rw-r--r-- | keyboards/keyhive/uno/keymaps/copypasta/readme.md | 4 | ||||
-rw-r--r-- | keyboards/keyhive/uno/keymaps/default/keymap.c | 63 | ||||
-rw-r--r-- | keyboards/keyhive/uno/keymaps/default/readme.md | 5 | ||||
-rw-r--r-- | keyboards/keyhive/uno/keymaps/demo/readme.md | 4 | ||||
-rw-r--r-- | keyboards/keyhive/uno/readme.md | 34 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rev1/info.json | 6 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rev1/rev1.h | 25 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rev1/rules.mk | 18 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rev2/config.h | 41 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rev2/info.json | 6 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rev2/rev2.h | 25 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rev2/rules.mk | 19 | ||||
-rw-r--r-- | keyboards/keyhive/uno/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/keyhive/uno/uno.c | 17 | ||||
-rw-r--r-- | keyboards/keyhive/uno/uno.h | 25 |
18 files changed, 0 insertions, 413 deletions
diff --git a/keyboards/keyhive/uno/config.h b/keyboards/keyhive/uno/config.h deleted file mode 100644 index 0128ee2d5d..0000000000 --- a/keyboards/keyhive/uno/config.h +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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" - -// See rev1/config.h and rev2/config.h to configure your uno. diff --git a/keyboards/keyhive/uno/info.json b/keyboards/keyhive/uno/info.json deleted file mode 100644 index 9d39163a1b..0000000000 --- a/keyboards/keyhive/uno/info.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "manufacturer": "Broekhuijsen", - "url": "https://www.reddit.com/r/mechmarket/comments/gyijm7/gb_uno/", - "maintainer": "Snipeye", - "usb": { - "vid": "0xFEED", - "pid": "0xACC8" - }, - "layouts": { - "LAYOUT": { - "layout": [ {"x": 0, "y": 0 }] - } - } - } diff --git a/keyboards/keyhive/uno/keymaps/copypasta/keymap.c b/keyboards/keyhive/uno/keymaps/copypasta/keymap.c deleted file mode 100644 index 74e5f62fc5..0000000000 --- a/keyboards/keyhive/uno/keymaps/copypasta/keymap.c +++ /dev/null @@ -1,85 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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 - -enum uno_keycode -{ - UNO = SAFE_RANGE -}; - -static uint16_t pressTimer = 0xFFFF; -#define CUSTOM_LONGPRESS 1000 -#define PASTA_COUNT 4 - -const char *pasta[PASTA_COUNT] = { - "Hey - I'm Uno... V2. This time, I have uno more features: I support a rotary encoder, too. That's it. That's the only difference.", - "Did you ever hear the tragedy of Darth Plagueis the Wise? I thought not. It's not a story the Jedi would tell you. It's a Sith legend. Darth Plagueis was a Dark Lord of the Sith, so powerful and so wise he could use the Force to influence the midichlorians to create life... He had such a knowledge of the dark side that he could even keep the ones he cared about from dying. The dark side of the Force is a pathway to many abilities some consider to be unnatural. He became so powerful... the only thing he was afraid of was losing his power, which eventually, of course, he did. Unfortunately, he taught his apprentice everything he knew, then his apprentice killed him in his sleep. Ironic, he could save others from death, but not himself.", - "The intent is to provide players with a sense of pride and accomplishment for unlocking different heroes. As for cost, we selected initial values based upon data from the Open Beta and other adjustments made to milestone rewards before launch. Among other things, we're looking at average per-player credit earn rates on a daily basis, and we'll be making constant adjustments to ensure that players have challenges that are compelling, rewarding, and of course attainable via gameplay. We appreciate the candid feedback, and the passion the community has put forth around the current topics here on Reddit, our forums and across numerous social media outlets. Our team will continue to make changes and monitor community feedback and update everyone as soon and as often as we can.", - "The FitnessGram Pacer Test is a multistage aerobic capacity test that progressively gets more difficult as it continues. The 20 meter pacer test will begin in 30 seconds. Line up at the start. The running speed starts slowly, but gets faster each minute after you hear this signal. [beep] A single lap should be completed each time you hear this sound. [ding] Remember to run in a straight line, and run as long as possible. The second time you fail to complete a lap before the sound, your test is over. The test will begin on the word start. On your mark, get ready, start.", -}; - -uint8_t pastaIndex = 0; - -enum encoder_names { - _ENCODER, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( - UNO - ) -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case UNO: - if (record->event.pressed) { - pressTimer = timer_read(); - } else { - uint16_t timeElapsed = timer_elapsed(pressTimer); - if (timeElapsed < CUSTOM_LONGPRESS) { - send_string(pasta[pastaIndex]); - } else { - reset_keyboard(); - } - } - break; - } - return false; -} - -void keyboard_post_init_user(void) { - rgblight_enable_noeeprom(); - rgblight_sethsv_noeeprom(0, 255, 255); - rgblight_mode_noeeprom(1); - //rgblight_mode_noeeprom(RGBLIGHT_MODE_RAINBOW_MOOD); -} - -void encoder_update_user(uint8_t index, bool clockwise) { - if (index == _ENCODER) { /* First encoder */ - if (clockwise) { - pastaIndex++; - pastaIndex %= PASTA_COUNT; - } else { - pastaIndex += PASTA_COUNT; - pastaIndex--; - pastaIndex %= PASTA_COUNT; - } - rgblight_sethsv_noeeprom((255/PASTA_COUNT)*pastaIndex, 255, 255); - rgblight_mode_noeeprom(1); - } -} diff --git a/keyboards/keyhive/uno/keymaps/copypasta/readme.md b/keyboards/keyhive/uno/keymaps/copypasta/readme.md deleted file mode 100644 index 1ad009c16c..0000000000 --- a/keyboards/keyhive/uno/keymaps/copypasta/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -# A copypasta keymap for uno -![Picture](https://i.imgur.com/OqPyWbbl.jpg) - -[A demo of this keymap can be found here.](https://www.reddit.com/r/MechanicalKeyboards/comments/k7w1j1/qmk_is_a_pathway_to_many_abilities_some_consider/) diff --git a/keyboards/keyhive/uno/keymaps/default/keymap.c b/keyboards/keyhive/uno/keymaps/default/keymap.c deleted file mode 100644 index 43c885c800..0000000000 --- a/keyboards/keyhive/uno/keymaps/default/keymap.c +++ /dev/null @@ -1,63 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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 - -enum uno_keycode -{ - UNO = SAFE_RANGE -}; - -enum encoder_names { - _ENCODER, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( - UNO - ) -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case UNO: - if (record->event.pressed) { - SEND_STRING("Hello!"); - } - break; - return false; - } - return true; -} - -void keyboard_post_init_user(void) { - rgblight_enable_noeeprom(); - rgblight_sethsv_noeeprom(255, 255, 255); - rgblight_mode_noeeprom(RGBLIGHT_MODE_RAINBOW_MOOD); -} - -bool encoder_update_user(uint8_t index, bool clockwise) { - if (index == _ENCODER) { /* First encoder */ - if (clockwise) { - tap_code(KC_A); - } else { - tap_code(KC_B); - } - return false; - } - return true; -} - diff --git a/keyboards/keyhive/uno/keymaps/default/readme.md b/keyboards/keyhive/uno/keymaps/default/readme.md deleted file mode 100644 index d783a80acc..0000000000 --- a/keyboards/keyhive/uno/keymaps/default/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -# The default keymap for uno -![Picture](https://i.imgur.com/OqPyWbbl.jpg) - -This keymap types "Hello!" when pressed and presses 'A' and 'B' when turning the -encoder. diff --git a/keyboards/keyhive/uno/keymaps/demo/readme.md b/keyboards/keyhive/uno/keymaps/demo/readme.md deleted file mode 100644 index ec91247861..0000000000 --- a/keyboards/keyhive/uno/keymaps/demo/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -# The demo keymap for uno -![Picture](https://i.imgur.com/OqPyWbbl.jpg) - -[You can find a video of this keymap being demoed here](https://imgur.com/a/Z7G5Aam). diff --git a/keyboards/keyhive/uno/readme.md b/keyboards/keyhive/uno/readme.md deleted file mode 100644 index 23776115f3..0000000000 --- a/keyboards/keyhive/uno/readme.md +++ /dev/null @@ -1,34 +0,0 @@ -# Uno - -![Uno](https://i.imgur.com/OqPyWbbl.jpg) - -A 1-key, in-USB "board" for the lulz - -* Keyboard Maintainer: [Snipeye](https://github.com/Snipeye) -* Hardware Availability: [keyhive.xyz](https://keyhive.xyz/shop/uno-single-key-keyboard) - -There are two revisions of Uno. If your Uno supports a rotary encoder, use rev2. -If it *does not* support a rotary encoder, use rev1. The following examples use -`rev2` — be sure to change this if you are using `rev1`. - -Make example for this keyboard (after setting up your build environment; make -sure to change `rev2` to your Uno's version): - - make keyhive/uno/rev2:default - -Flashing example for this keyboard (change `rev2` to `rev1` if needed): - - make keyhive/uno/rev2:default:flash - -If you prefer to use the `qmk` tool: - - qmk compile -kb keyhive/uno/rev2 -km default - -Create your own keymap with: - - qmk new-keymap -kb keyhive/uno/rev2 - -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). - -### Credits -+ Everything by Snipeye diff --git a/keyboards/keyhive/uno/rev1/info.json b/keyboards/keyhive/uno/rev1/info.json deleted file mode 100644 index 69d6dfba0d..0000000000 --- a/keyboards/keyhive/uno/rev1/info.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "keyboard_name": "Uno rev1", - "usb": { - "device_version": "0.0.1" - } -} diff --git a/keyboards/keyhive/uno/rev1/rev1.h b/keyboards/keyhive/uno/rev1/rev1.h deleted file mode 100644 index 691bdd1dc3..0000000000 --- a/keyboards/keyhive/uno/rev1/rev1.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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( \ - K00 \ -) { \ - { K00 } \ -} diff --git a/keyboards/keyhive/uno/rev1/rules.mk b/keyboards/keyhive/uno/rev1/rules.mk deleted file mode 100644 index 7180be7497..0000000000 --- a/keyboards/keyhive/uno/rev1/rules.mk +++ /dev/null @@ -1,18 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = no # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output diff --git a/keyboards/keyhive/uno/rev2/config.h b/keyboards/keyhive/uno/rev2/config.h deleted file mode 100644 index f53e38b617..0000000000 --- a/keyboards/keyhive/uno/rev2/config.h +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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" - -#define RGBLIGHT_EFFECT_RAINBOW_MOOD - -/* ENCODER */ -#define ENCODERS_PAD_A { B2 } -#define ENCODERS_PAD_B { B3 } - -/* key matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 1 - -/* Uno default pinout */ -#define DIRECT_PINS { \ - { D0 } \ -} - -#ifdef RGBLIGHT_ENABLE -#define RGB_DI_PIN D1 -#define RGBLED_NUM 1 -#endif - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 diff --git a/keyboards/keyhive/uno/rev2/info.json b/keyboards/keyhive/uno/rev2/info.json deleted file mode 100644 index 787f306351..0000000000 --- a/keyboards/keyhive/uno/rev2/info.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "keyboard_name": "Uno rev2", - "usb": { - "device_version": "0.0.2" - } -} diff --git a/keyboards/keyhive/uno/rev2/rev2.h b/keyboards/keyhive/uno/rev2/rev2.h deleted file mode 100644 index 691bdd1dc3..0000000000 --- a/keyboards/keyhive/uno/rev2/rev2.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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( \ - K00 \ -) { \ - { K00 } \ -} diff --git a/keyboards/keyhive/uno/rev2/rules.mk b/keyboards/keyhive/uno/rev2/rules.mk deleted file mode 100644 index 1ce2738442..0000000000 --- a/keyboards/keyhive/uno/rev2/rules.mk +++ /dev/null @@ -1,19 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = no # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output -ENCODER_ENABLE = yes diff --git a/keyboards/keyhive/uno/rules.mk b/keyboards/keyhive/uno/rules.mk deleted file mode 100644 index 3220994593..0000000000 --- a/keyboards/keyhive/uno/rules.mk +++ /dev/null @@ -1 +0,0 @@ -DEFAULT_FOLDER = keyhive/uno/rev1 diff --git a/keyboards/keyhive/uno/uno.c b/keyboards/keyhive/uno/uno.c deleted file mode 100644 index 5ffb28865b..0000000000 --- a/keyboards/keyhive/uno/uno.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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 "uno.h" diff --git a/keyboards/keyhive/uno/uno.h b/keyboards/keyhive/uno/uno.h deleted file mode 100644 index e25dc25f73..0000000000 --- a/keyboards/keyhive/uno/uno.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2020 Snipeye - * - * 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" - -#if defined(KEYBOARD_keyhive_uno_rev1) -# include "rev1.h" -#elif defined(KEYBOARD_keyhive_uno_rev2) -# include "rev2.h" -#endif |