diff options
Diffstat (limited to 'keyboards/keebwerk/nano_slider')
-rw-r--r-- | keyboards/keebwerk/nano_slider/info.json | 25 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/keymaps/default/keymap.c | 87 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md | 2 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/keymaps/via/keymap.c | 67 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/nano_slider.c | 18 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/nano_slider.h | 36 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/readme.md | 15 | ||||
-rw-r--r-- | keyboards/keebwerk/nano_slider/rules.mk | 22 |
10 files changed, 0 insertions, 274 deletions
diff --git a/keyboards/keebwerk/nano_slider/info.json b/keyboards/keebwerk/nano_slider/info.json deleted file mode 100644 index 257bc71110..0000000000 --- a/keyboards/keebwerk/nano_slider/info.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "keyboard_name": "nano. slider", - "manufacturer": "keebwerk.", - "url": "", - "maintainer": "qmk", - "usb": { - "vid": "0x03A8", - "pid": "0x0000", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT": { - "layout": [ - {"x":0, "y":0}, - {"x":0, "y":1.25}, - {"x":1, "y":1.25}, - {"x":2, "y":1.25}, - {"x":0, "y":2.25}, - {"x":1, "y":2.25}, - {"x":2, "y":2.25}, - {"x":3, "y":1.25, "h":2} - ] - } - } -} diff --git a/keyboards/keebwerk/nano_slider/keymaps/default/keymap.c b/keyboards/keebwerk/nano_slider/keymaps/default/keymap.c deleted file mode 100644 index f9a14452fb..0000000000 --- a/keyboards/keebwerk/nano_slider/keymaps/default/keymap.c +++ /dev/null @@ -1,87 +0,0 @@ -/* Copyright 2020 Duckle - * - * 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 -#include "analog.h" -#include "qmk_midi.h" - -// Defines names for use in layer keycodes and the keymap -enum layer_names { - _BASE, - _FN, - _MEDIA -}; - -// Defines the keycodes used by our macros in process_record_user -enum custom_keycodes { - QMKBEST = SAFE_RANGE, - QMKURL -}; - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT( - TO(_FN), - KC_1, KC_2, KC_3, - KC_4, KC_5, KC_6, KC_0 - ), - [_FN] = LAYOUT( - TO(_MEDIA), - RGB_TOG, RGB_MOD, RGB_VAI, - QMKURL, RGB_RMOD, RGB_VAD, QMKBEST - ), - [_MEDIA] = LAYOUT( - TO(_BASE), - KC_VOLD, KC_VOLU, KC_F24, - KC_MRWD, KC_MFFD, KC_F23, KC_MPLY - ) -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case QMKBEST: - if (record->event.pressed) { - // when keycode QMKBEST is pressed - SEND_STRING("QMK is the best thing ever!"); - } else { - // when keycode QMKBEST is released - } - break; - case QMKURL: - if (record->event.pressed) { - // when keycode QMKURL is pressed - SEND_STRING("https://qmk.fm/\n"); - } else { - // when keycode QMKURL is released - } - break; - } - return true; -} - -uint8_t divisor = 0; - -void slider(void) { - if (divisor++) { // only run the slider function 1/256 times it's called - return; - } - - midi_send_cc(&midi_device, 2, 0x3E, 0x7F - (analogReadPin(SLIDER_PIN) >> 3)); -} - -void matrix_scan_user(void) { - slider(); -} diff --git a/keyboards/keebwerk/nano_slider/keymaps/default/readme.md b/keyboards/keebwerk/nano_slider/keymaps/default/readme.md deleted file mode 100644 index 55a8805553..0000000000 --- a/keyboards/keebwerk/nano_slider/keymaps/default/readme.md +++ /dev/null @@ -1 +0,0 @@ -# The default keymap for nano_slider diff --git a/keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md b/keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md deleted file mode 100644 index 869baef07f..0000000000 --- a/keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md +++ /dev/null @@ -1,2 +0,0 @@ -# The Midi2Vol keymap for nano_slider -This keymap has the code for the nano_slider to work with [Midi2Vol](https://github.com/jesusvallejo/Midi2Vol). diff --git a/keyboards/keebwerk/nano_slider/keymaps/via/keymap.c b/keyboards/keebwerk/nano_slider/keymaps/via/keymap.c deleted file mode 100644 index ea1faadfda..0000000000 --- a/keyboards/keebwerk/nano_slider/keymaps/via/keymap.c +++ /dev/null @@ -1,67 +0,0 @@ -/* Copyright 2020 Duckle - * - * 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 -#include "analog.h" -#include "qmk_midi.h" - -enum layer_names { - _BASE, - _FN, - _MEDIA, - _FN2 -}; - -/* Defines the keycodes used by our macros in process_record_user */ -enum custom_keycodes { /* In order to add more volume controls, add here a custom keycode, ex: VLC */ - DEFAULT= SAFE_RANGE,SPOTIFY,DISCORD,CHROME/*,VLC*/ -}; -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT( - TO(_FN), - KC_1, KC_2, KC_3, - KC_4, KC_5, KC_6, KC_0 - ), - [_FN] = LAYOUT( - TO(_MEDIA), - RGB_TOG, RGB_MOD, RGB_VAI, - RGB_SAI, BL_BRTG, BL_STEP, KC_LSFT - ), - [_MEDIA] = LAYOUT( - TO(_BASE), - KC_VOLD, KC_VOLU, KC_F24, - KC_MRWD, KC_MFFD, KC_F23, KC_MPLY - ), - [_FN2] = LAYOUT( - _______, - _______, _______, _______, - _______, _______, _______, _______ - ) -}; - -uint8_t divisor = 0; - -void slider(void) { - if (divisor++) { // only run the slider function 1/256 times it's called - return; - } - - midi_send_cc(&midi_device, 2, 0x3E, 0x7F - (analogReadPin(SLIDER_PIN) >> 3)); -} - -void matrix_scan_user(void) { - slider(); -} diff --git a/keyboards/keebwerk/nano_slider/keymaps/via/rules.mk b/keyboards/keebwerk/nano_slider/keymaps/via/rules.mk deleted file mode 100644 index 036bd6d1c3..0000000000 --- a/keyboards/keebwerk/nano_slider/keymaps/via/rules.mk +++ /dev/null @@ -1 +0,0 @@ -VIA_ENABLE = yes
\ No newline at end of file diff --git a/keyboards/keebwerk/nano_slider/nano_slider.c b/keyboards/keebwerk/nano_slider/nano_slider.c deleted file mode 100644 index f5730779ac..0000000000 --- a/keyboards/keebwerk/nano_slider/nano_slider.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright 2020 Duckle - * - * 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 "nano_slider.h" - diff --git a/keyboards/keebwerk/nano_slider/nano_slider.h b/keyboards/keebwerk/nano_slider/nano_slider.h deleted file mode 100644 index 31985130b0..0000000000 --- a/keyboards/keebwerk/nano_slider/nano_slider.h +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright 2020 Duckle - * - * 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" - -/* This is a shortcut to help you visually see your layout. - * - * The first section contains all of the arguments representing the physical - * layout of the board and position of the keys. - * - * The second converts the arguments into a two-dimensional array which - * represents the switch matrix. - */ -#define LAYOUT( \ - K11, \ - K12, K10, K00, \ - K01, K02, K03, K13 \ -) { \ - { K00, K01, K02, K03 }, \ - { K10, K11, K12, K13 } \ -} diff --git a/keyboards/keebwerk/nano_slider/readme.md b/keyboards/keebwerk/nano_slider/readme.md deleted file mode 100644 index 84654f537a..0000000000 --- a/keyboards/keebwerk/nano_slider/readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# nano. slider - - - -A small eight key macropad with slider. - -* Keyboard Maintainer: [Duckle29](https://github.com/Duckle29) -* Hardware Supported: nano. slider PCB, ATmega32U4 -* Hardware Availability: [keebwerk.](https://www.keebwerk.com/product/nano-slider-keyboard/) - -Make example for this keyboard (after setting up your build environment): - - make keebwerk/nano_slider: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/keebwerk/nano_slider/rules.mk b/keyboards/keebwerk/nano_slider/rules.mk deleted file mode 100644 index 5412232d0f..0000000000 --- a/keyboards/keebwerk/nano_slider/rules.mk +++ /dev/null @@ -1,22 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = atmel-dfu - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # 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 = yes # Enable keyboard RGB underglow -MIDI_ENABLE = yes # MIDI support -AUDIO_ENABLE = no # Audio output -LTO_ENABLE = yes - -SRC += analog.c |