summaryrefslogtreecommitdiff
path: root/keyboards/minimacro5
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-11-28 16:39:48 +1100
committerNick Brassel <nick@tzarc.org>2023-11-28 16:40:47 +1100
commit0115951de12bd4c798a43a380651c34552552e85 (patch)
tree62999011ae782d93aa6dc9c889615db2a840cafc /keyboards/minimacro5
parent0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff)
parent4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff)
`develop` -> `master`, 2023q4 edition
Diffstat (limited to 'keyboards/minimacro5')
-rw-r--r--keyboards/minimacro5/keymaps/devdev/keymap.c124
-rw-r--r--keyboards/minimacro5/keymaps/devdev/rules.mk2
2 files changed, 0 insertions, 126 deletions
diff --git a/keyboards/minimacro5/keymaps/devdev/keymap.c b/keyboards/minimacro5/keymaps/devdev/keymap.c
deleted file mode 100644
index cb183a91b7..0000000000
--- a/keyboards/minimacro5/keymaps/devdev/keymap.c
+++ /dev/null
@@ -1,124 +0,0 @@
-/* Copyright 2020 Dane Evans
- *
- * 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/>.
- */
-// MINI MACRO 5
-
-#include QMK_KEYBOARD_H
-
-enum layers {
- _MAIN,
- _MEDIA,
- _DISCORD,
- _PHOTOSHOP
-};
-
-// Tap Dance declarations
-enum tap_dances{
- TD_TO_DISCORD,
- TD_TO_PHOTOSHOP,
- TD_TO_MEDIA,
- TD_TO_MAIN,
- TD_RESET_SLIDER
-
-};
-
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == 0) { /* First encoder*/
- switch(get_highest_layer(layer_state)){
- case _MAIN:
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- break;
- case _MEDIA:
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- break;
- case _DISCORD:
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- break;
- case _PHOTOSHOP:
- if (clockwise) {
- tap_code(KC_UP);
- } else {
- tap_code(KC_DOWN);
- }
- break;
- default:
- if (clockwise) {
- tap_code(KC_VOLU);
- } else {
- tap_code(KC_VOLD);
- }
- break;
- }
- }
- return true;
-}
-
-//
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //buttion closest to usb is first
- [_MAIN] = LAYOUT_ortho_1x5(
- TD(TD_TO_DISCORD), TO(_DISCORD), KC_C, RGB_TOG, TD(TD_TO_PHOTOSHOP)
- ),
- [_MEDIA] = LAYOUT_ortho_1x5(
- TD(TD_TO_MAIN), KC_MEDIA_PREV_TRACK, KC_MEDIA_NEXT_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_STOP
- ),
- [_DISCORD] = LAYOUT_ortho_1x5(
- TD(TD_TO_MAIN), TD(TD_TO_MEDIA), KC_Q, KC_R, MEH(KC_UP)
- )
- ,
- [_PHOTOSHOP] = LAYOUT_ortho_1x5(
- TD(TD_RESET_SLIDER) , C(KC_Z), C(KC_Y), KC_P, KC_G
- )
-};
-
-layer_state_t layer_state_set_user(layer_state_t state) {
-
- if (layer_state_cmp(state, _MAIN)) // this one not working
- rgblight_sethsv_at(HSV_GREEN, 0);
- if (layer_state_cmp(state, _MEDIA))
- rgblight_sethsv_at(HSV_RED, 0);
- if (layer_state_cmp(state, _DISCORD))
- rgblight_sethsv_at(HSV_BLUE, 0);
- if (layer_state_cmp(state, _PHOTOSHOP))
- rgblight_sethsv_at(HSV_PURPLE, 0);
- return state;
-}
-
-void keyboard_post_init_user(void) {
- //rgblight_mode(1);
- rgblight_sethsv_at(HSV_GREEN, 0);
-}
-
-// Tap Dance definitions
-tap_dance_action_t tap_dance_actions[] = {
- // Tap once for Escape, twice for Caps Lock
- [TD_TO_DISCORD] = ACTION_TAP_DANCE_LAYER_MOVE(KC_MUTE, _DISCORD),
- [TD_TO_PHOTOSHOP] = ACTION_TAP_DANCE_LAYER_MOVE(KC_E, _PHOTOSHOP),
- [TD_TO_MEDIA] = ACTION_TAP_DANCE_LAYER_MOVE(KC_E, _MEDIA),
- [TD_TO_MAIN] = ACTION_TAP_DANCE_LAYER_MOVE(KC_MUTE, _MAIN),
- [TD_RESET_SLIDER] = ACTION_TAP_DANCE_LAYER_MOVE(KC_0, _MAIN)
-};
diff --git a/keyboards/minimacro5/keymaps/devdev/rules.mk b/keyboards/minimacro5/keymaps/devdev/rules.mk
deleted file mode 100644
index 1c1ed316a0..0000000000
--- a/keyboards/minimacro5/keymaps/devdev/rules.mk
+++ /dev/null
@@ -1,2 +0,0 @@
-RGBLIGHT_ENABLE = yes
-TAP_DANCE_ENABLE = yes \ No newline at end of file