From 84ea77ead663624a6d8ae451ca3d4318008d9d41 Mon Sep 17 00:00:00 2001 From: James Young <18669334+noroadsleft@users.noreply.github.com> Date: Thu, 4 Nov 2021 21:18:09 +0000 Subject: Remove `BOOTMAGIC_ENABLE = lite` option (#15002) * remove BOOTMAGIC_ENABLE=lite setting * change keyboard BOOTMAGIC_ENABLE rules Edits keyboard-level instances of `BOOTMAGIC_ENABLE = lite` to `BOOTMAGIC_ENABLE = yes`. * change keyboard BOOTMAGIC_ENABLE inline comments Edits keyboard-level BOOTMAGIC_ENABLE inline comments to "Enable Bootmagic Lite". * change keymap BOOTMAGIC_ENABLE rules Edits keymap-level instances of `BOOTMAGIC_ENABLE = lite` to `BOOTMAGIC_ENABLE = yes`. * change keymap BOOTMAGIC_ENABLE inline comments Edits/adds keymap-level BOOTMAGIC_ENABLE inline comments to read "Enable Bootmagic Lite". * change layout/user BOOTMAGIC_ENABLE rules/comments Edits instances of `BOOTMAGIC_ENABLE = lite` to `BOOTMAGIC_ENABLE = yes`. Edits/adds keymap-level BOOTMAGIC_ENABLE inline comments to read "Enable Bootmagic Lite". * update non-rules.mk BOOTMAGIC_ENABLE references in keyboards/ * remove docs references to Full Bootmagic * convert data-driven Bootmagic Lite instances * remove Bootmagic Lite bodge from data-driven generation * Merge remote-tracking branch 'upstream/develop' into rm/bootmagic-full_q4a * update docs/ja/config_options.md per mtei * update docs/faq_misc.md per mtei Remove remaining Full Bootmagic reference. --- keyboards/keebwerk/nano_slider/rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'keyboards/keebwerk/nano_slider') diff --git a/keyboards/keebwerk/nano_slider/rules.mk b/keyboards/keebwerk/nano_slider/rules.mk index 8b44675a5a..0f31b1cc6f 100644 --- a/keyboards/keebwerk/nano_slider/rules.mk +++ b/keyboards/keebwerk/nano_slider/rules.mk @@ -5,7 +5,7 @@ MCU = atmega32u4 BOOTLOADER = atmel-dfu # Build Options -BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite +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 -- cgit v1.2.1 From c12b99767921366c9fa8a1d6ba53872a26aa6127 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 1 Dec 2021 21:13:00 +1100 Subject: Tidy up `SLEEP_LED_ENABLE` rules (#15362) --- keyboards/keebwerk/nano_slider/rules.mk | 2 -- 1 file changed, 2 deletions(-) (limited to 'keyboards/keebwerk/nano_slider') diff --git a/keyboards/keebwerk/nano_slider/rules.mk b/keyboards/keebwerk/nano_slider/rules.mk index 0f31b1cc6f..7da30d1202 100644 --- a/keyboards/keebwerk/nano_slider/rules.mk +++ b/keyboards/keebwerk/nano_slider/rules.mk @@ -10,8 +10,6 @@ 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 -# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE -SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work NKRO_ENABLE = yes # USB Nkey Rollover BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -- cgit v1.2.1 From a8d440e4e043dc8427f17c07631556d0ff3efc20 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 9 Dec 2021 16:05:44 +1100 Subject: Tidy up NKRO_ENABLE rules (#15382) --- keyboards/keebwerk/nano_slider/rules.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'keyboards/keebwerk/nano_slider') diff --git a/keyboards/keebwerk/nano_slider/rules.mk b/keyboards/keebwerk/nano_slider/rules.mk index 7da30d1202..e9f4433e8f 100644 --- a/keyboards/keebwerk/nano_slider/rules.mk +++ b/keyboards/keebwerk/nano_slider/rules.mk @@ -10,8 +10,7 @@ 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 -# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -NKRO_ENABLE = yes # USB Nkey Rollover +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 -- cgit v1.2.1 From f718a10889e6adf33f3fc2f41b61cad7fe9e0c2e Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 13 Dec 2021 13:05:37 +1100 Subject: Fix up build options comments (#15463) --- keyboards/keebwerk/nano_slider/rules.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keyboards/keebwerk/nano_slider') diff --git a/keyboards/keebwerk/nano_slider/rules.mk b/keyboards/keebwerk/nano_slider/rules.mk index e9f4433e8f..5412232d0f 100644 --- a/keyboards/keebwerk/nano_slider/rules.mk +++ b/keyboards/keebwerk/nano_slider/rules.mk @@ -5,6 +5,8 @@ MCU = atmega32u4 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 -- cgit v1.2.1 From 27fd6b7462998dd00c7ab1bf8a4ff4440cb12ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Vallejo?= Date: Mon, 27 Dec 2021 11:20:23 +0100 Subject: Keebwerk devices keymaps (#15504) * Keymap with status leds animations * Midi2Vol keymap * Coding conventions * Coding Conventions * rename directory * Midi2Vol keymap * Update to follow coding conventions * Rename keyboards/keebwerk/nano_slider/keymaps/Midi2Vol/keymap.c to keyboards/keebwerk/nano_slider/keymaps/midi2vol/keymap.c * Rename keyboards/keebwerk/nano_slider/keymaps/Midi2Vol/readme.md to keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md * Update keyboards/keebwerk/mega/ansi/keymaps/jesusvallejo/keymap.c Wild slash typo. Co-authored-by: Drashna Jaelre * Update keyboards/keebwerk/nano_slider/keymaps/midi2vol/keymap.c Changed define for an enum. Co-authored-by: Drashna Jaelre Co-authored-by: Drashna Jaelre --- .../keebwerk/nano_slider/keymaps/midi2vol/keymap.c | 154 +++++++++++++++++++++ .../nano_slider/keymaps/midi2vol/readme.md | 2 + 2 files changed, 156 insertions(+) create mode 100644 keyboards/keebwerk/nano_slider/keymaps/midi2vol/keymap.c create mode 100644 keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md (limited to 'keyboards/keebwerk/nano_slider') diff --git a/keyboards/keebwerk/nano_slider/keymaps/midi2vol/keymap.c b/keyboards/keebwerk/nano_slider/keymaps/midi2vol/keymap.c new file mode 100644 index 0000000000..0623f7556c --- /dev/null +++ b/keyboards/keebwerk/nano_slider/keymaps/midi2vol/keymap.c @@ -0,0 +1,154 @@ +/* Copyright 2020 Duckle, 2021 Jesús Vallejo + * + * 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 . + */ + + +#include QMK_KEYBOARD_H +#include "analog.h" +#include "qmk_midi.h" + +/* +This keymap works with midi2vol: linux version https://github.com/jesusvallejo/Midi2Vol-Linux +and windows version https://github.com/jesusvallejo/Midi2Vol + +Enables the user to change the volume on the host computer if running midi2vol software. + +Example to extend usability is provided check VLC in: enum custom_keycodes {} and bool process_record_user(uint16_t keycode, keyrecord_t *record) {} +Remember to give allways the new volume control a hex value not used by other volume control, +and add it to the midi2vol software. +Check respective midi2vol readme on how to do so.In linux change config.json,in windows you can use configuration option. + +A compiled version of this keymap is provided in here: https://github.com/jesusvallejo/nanokeymaps/ + +*/ + +uint8_t midi2vol = 0x3E; + +/* Defines names for use in layer keycodes and the keymap */ + +enum custom_layers { + _MEDIA, /* Controls Pause, Mute , Forward ... */ + _NAV, /* Nav arrows, Enter, Space*/ + _VOLUME /* Changes midi2vol int to interface with midi2vol program: Chrome Volume, General Volume */ + _DISCORD, /* FXX unsused keys to interface with Discord: Mute , Silence */ + _LIGHTS, /* Edits underglow and retroilumination */ + _EDIT, /* Cut, Copy ,Paste */ + _RESET, /* Layer to set nano in bootloader mode */ + _TOOGLE, /* Momentary layer to switch between layers */ +}; + + + +/* 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 */ + [_MEDIA] = LAYOUT( + MO(_TOOGLE), + KC_MPLY, KC_MNXT, KC_COPY, + KC_MUTE, KC_MPRV, KC_PASTE, KC_ENTER + ), + [_NAV] = LAYOUT( + MO(_TOOGLE), + KC_SPC, KC_UP, KC_BSPACE, + KC_LEFT, KC_DOWN, KC_RIGHT, KC_ENTER + ), + [_VOLUME] = LAYOUT( + MO(_TOOGLE), + SPOTIFY, DISCORD, CHROME, + KC_NO, KC_NO, KC_NO, DEFAULT + ), + [_DISCORD] = LAYOUT( + MO(_TOOGLE), + KC_F18, KC_F19, KC_F20, + KC_F21, KC_F22, KC_F23, KC_F24 + ), + [_LIGHTS] = LAYOUT( + MO(_TOOGLE), + RGB_TOG, RGB_MOD, RGB_VAI, + RGB_SAI, BL_BRTG, BL_STEP, KC_LSFT + ), + [_EDIT] = LAYOUT( + MO(_TOOGLE), + KC_MENU, KC_CUT, KC_COPY, + KC_FIND, KC_UNDO, KC_PASTE, KC_MPLY + ), + [_RESET] = LAYOUT( + MO(_TOOGLE), + KC_NO, KC_NO, KC_NO, + KC_NO, KC_NO, KC_NO, RESET + ), + [_TOOGLE] = LAYOUT( + MO(_TOOGLE), + TO(_MEDIA), TO(_NAV), TO(_VOLUME), + TO(_DISCORD), TO(_LIGHTS), TO(_EDIT), TO(_RESET) + ) +}; +/* In order to add more volume controls, add here code to detect custom keycode, ex: VLC */ +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + switch (keycode) { + case DEFAULT: + if (record->event.pressed) { + /* when keycode DEFAULT is pressed */ + midi2vol= 0x3E; + } else { + /* when keycode DEFAULT is released */ + } + break; + case SPOTIFY: + if (record->event.pressed) { + midi2vol= 0x3F; + } + break; + case DISCORD: + if (record->event.pressed) { + + midi2vol= 0x40; + } + break; + case CHROME: + if (record->event.pressed) { + + midi2vol= 0x41; + } + break; + /* + case VLC: + if (record->event.pressed) { + midi2vol= 0x42; + } + 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, midi2vol, 0x7F - (analogReadPin(SLIDER_PIN) >> 3)); +} + +void matrix_scan_user(void) { + slider(); +} diff --git a/keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md b/keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md new file mode 100644 index 0000000000..869baef07f --- /dev/null +++ b/keyboards/keebwerk/nano_slider/keymaps/midi2vol/readme.md @@ -0,0 +1,2 @@ +# The Midi2Vol keymap for nano_slider +This keymap has the code for the nano_slider to work with [Midi2Vol](https://github.com/jesusvallejo/Midi2Vol). -- cgit v1.2.1 From 764dc18a81f762fdff5f74eb6d3b517ba79d5c11 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 16 Mar 2022 00:56:58 +1100 Subject: Remove `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION` from keyboard config.h (#16655) --- keyboards/keebwerk/nano_slider/config.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'keyboards/keebwerk/nano_slider') diff --git a/keyboards/keebwerk/nano_slider/config.h b/keyboards/keebwerk/nano_slider/config.h index 827923fea7..53b887692b 100644 --- a/keyboards/keebwerk/nano_slider/config.h +++ b/keyboards/keebwerk/nano_slider/config.h @@ -106,10 +106,6 @@ along with this program. If not, see . //#define NO_ACTION_TAPPING //#define NO_ACTION_ONESHOT -/* disable these deprecated features by default */ -#define NO_ACTION_MACRO -#define NO_ACTION_FUNCTION - /* Bootmagic Lite key configuration */ // #define BOOTMAGIC_LITE_ROW 0 // #define BOOTMAGIC_LITE_COLUMN 0 -- cgit v1.2.1