clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add source

sspaeti f8ce109a 3439f8ae

+329
+79
qmk/source/dztech/dz65rgb/v2/config.h
··· 1 + /* Copyright 2020 DZTECH <moyi4681@live.cn> 2 + * 3 + * This program is free software: you can redistribute it and/or modify 4 + * it under the terms of the GNU General Public License as published by 5 + * the Free Software Foundation, either version 2 of the License, or 6 + * (at your option) any later version. 7 + * 8 + * This program is distributed in the hope that it will be useful, 9 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 + * GNU General Public License for more details. 12 + * 13 + * You should have received a copy of the GNU General Public License 14 + * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 + */ 16 + #pragma once 17 + 18 + #ifdef RGB_MATRIX_ENABLE 19 + # define RGB_MATRIX_LED_PROCESS_LIMIT 4 20 + # define RGB_MATRIX_LED_FLUSH_LIMIT 26 21 + # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 22 + # define RGB_MATRIX_KEYPRESSES 23 + // RGB Matrix Animation modes. Explicitly enabled 24 + // For full list of effects, see: 25 + // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects 26 + # define ENABLE_RGB_MATRIX_ALPHAS_MODS 27 + // # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN 28 + # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT 29 + # define ENABLE_RGB_MATRIX_BREATHING 30 + // # define ENABLE_RGB_MATRIX_BAND_SAT 31 + # define ENABLE_RGB_MATRIX_BAND_VAL 32 + // # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT 33 + # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL 34 + // # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT 35 + # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL 36 + # define ENABLE_RGB_MATRIX_CYCLE_ALL 37 + # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT 38 + # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN 39 + # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON 40 + # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN 41 + # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL 42 + # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL 43 + # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL 44 + # define ENABLE_RGB_MATRIX_DUAL_BEACON 45 + # define ENABLE_RGB_MATRIX_RAINBOW_BEACON 46 + # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS 47 + # define ENABLE_RGB_MATRIX_RAINDROPS 48 + # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS 49 + # define ENABLE_RGB_MATRIX_HUE_BREATHING 50 + # define ENABLE_RGB_MATRIX_HUE_PENDULUM 51 + # define ENABLE_RGB_MATRIX_HUE_WAVE 52 + # define ENABLE_RGB_MATRIX_PIXEL_RAIN 53 + # define ENABLE_RGB_MATRIX_PIXEL_FLOW 54 + # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL 55 + // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined 56 + # define ENABLE_RGB_MATRIX_TYPING_HEATMAP 57 + // # define ENABLE_RGB_MATRIX_DIGITAL_RAIN 58 + // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined 59 + # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE 60 + # define ENABLE_RGB_MATRIX_SOLID_REACTIVE 61 + // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE 62 + // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE 63 + // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS 64 + // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS 65 + // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS 66 + // # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS 67 + // # define ENABLE_RGB_MATRIX_SPLASH 68 + // # define ENABLE_RGB_MATRIX_MULTISPLASH 69 + # define ENABLE_RGB_MATRIX_SOLID_SPLASH 70 + // # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH 71 + # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 72 + # define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_ALL 73 + # define DRIVER_ADDR_1 0b1110100 74 + # define DRIVER_ADDR_2 0b1110111 75 + # define DRIVER_COUNT 2 76 + # define DRIVER_1_LED_TOTAL 35 77 + # define DRIVER_2_LED_TOTAL 33 78 + # define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) 79 + #endif
+95
qmk/source/dztech/dz65rgb/v2/info.json
··· 1 + { 2 + "usb": { 3 + "pid": "0x1421", 4 + "device_version": "2.0.0" 5 + }, 6 + "rgb_matrix": { 7 + "driver": "IS31FL3731" 8 + }, 9 + "matrix_pins": { 10 + "cols": ["F7", "F6", "F5", "C7", "B0", "B1", "B2", "B3", "B4", "D7", "D6", "D4", "D5", "D3", "D2"], 11 + "rows": ["F0", "F1", "F4", "E6", "C6"] 12 + }, 13 + "diode_direction": "COL2ROW", 14 + "processor": "atmega32u4", 15 + "bootloader": "atmel-dfu", 16 + "debounce": 3, 17 + "layouts": { 18 + "LAYOUT_65_ansi": { 19 + "layout": [ 20 + {"matrix": [0, 0], "x": 0, "y": 0}, 21 + {"matrix": [0, 1], "x": 1, "y": 0}, 22 + {"matrix": [0, 2], "x": 2, "y": 0}, 23 + {"matrix": [0, 3], "x": 3, "y": 0}, 24 + {"matrix": [0, 4], "x": 4, "y": 0}, 25 + {"matrix": [0, 5], "x": 5, "y": 0}, 26 + {"matrix": [0, 6], "x": 6, "y": 0}, 27 + {"matrix": [0, 7], "x": 7, "y": 0}, 28 + {"matrix": [0, 8], "x": 8, "y": 0}, 29 + {"matrix": [0, 9], "x": 9, "y": 0}, 30 + {"matrix": [0, 10], "x": 10, "y": 0}, 31 + {"matrix": [0, 11], "x": 11, "y": 0}, 32 + {"matrix": [0, 12], "x": 12, "y": 0}, 33 + {"matrix": [0, 13], "x": 13, "y": 0, "w": 2}, 34 + {"matrix": [0, 14], "x": 15, "y": 0}, 35 + 36 + {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5}, 37 + {"matrix": [1, 1], "x": 1.5, "y": 1}, 38 + {"matrix": [1, 2], "x": 2.5, "y": 1}, 39 + {"matrix": [1, 3], "x": 3.5, "y": 1}, 40 + {"matrix": [1, 4], "x": 4.5, "y": 1}, 41 + {"matrix": [1, 5], "x": 5.5, "y": 1}, 42 + {"matrix": [1, 6], "x": 6.5, "y": 1}, 43 + {"matrix": [1, 7], "x": 7.5, "y": 1}, 44 + {"matrix": [1, 8], "x": 8.5, "y": 1}, 45 + {"matrix": [1, 9], "x": 9.5, "y": 1}, 46 + {"matrix": [1, 10], "x": 10.5, "y": 1}, 47 + {"matrix": [1, 11], "x": 11.5, "y": 1}, 48 + {"matrix": [1, 12], "x": 12.5, "y": 1}, 49 + {"matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5}, 50 + {"matrix": [1, 14], "x": 15, "y": 1}, 51 + 52 + {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75}, 53 + {"matrix": [2, 1], "x": 1.75, "y": 2}, 54 + {"matrix": [2, 2], "x": 2.75, "y": 2}, 55 + {"matrix": [2, 3], "x": 3.75, "y": 2}, 56 + {"matrix": [2, 4], "x": 4.75, "y": 2}, 57 + {"matrix": [2, 5], "x": 5.75, "y": 2}, 58 + {"matrix": [2, 6], "x": 6.75, "y": 2}, 59 + {"matrix": [2, 7], "x": 7.75, "y": 2}, 60 + {"matrix": [2, 8], "x": 8.75, "y": 2}, 61 + {"matrix": [2, 9], "x": 9.75, "y": 2}, 62 + {"matrix": [2, 10], "x": 10.75, "y": 2}, 63 + {"matrix": [2, 11], "x": 11.75, "y": 2}, 64 + {"matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25}, 65 + {"matrix": [2, 14], "x": 15, "y": 2}, 66 + 67 + {"matrix": [3, 0], "x": 0, "y": 3, "w": 2.25}, 68 + {"matrix": [3, 1], "x": 2.25, "y": 3}, 69 + {"matrix": [3, 2], "x": 3.25, "y": 3}, 70 + {"matrix": [3, 3], "x": 4.25, "y": 3}, 71 + {"matrix": [3, 4], "x": 5.25, "y": 3}, 72 + {"matrix": [3, 5], "x": 6.25, "y": 3}, 73 + {"matrix": [3, 6], "x": 7.25, "y": 3}, 74 + {"matrix": [3, 7], "x": 8.25, "y": 3}, 75 + {"matrix": [3, 8], "x": 9.25, "y": 3}, 76 + {"matrix": [3, 9], "x": 10.25, "y": 3}, 77 + {"matrix": [3, 10], "x": 11.25, "y": 3}, 78 + {"matrix": [3, 11], "x": 12.25, "y": 3, "w": 1.75}, 79 + {"matrix": [3, 13], "x": 14, "y": 3}, 80 + {"matrix": [3, 14], "x": 15, "y": 3}, 81 + 82 + {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25}, 83 + {"matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25}, 84 + {"matrix": [4, 2], "x": 2.5, "y": 4, "w": 1.25}, 85 + {"matrix": [4, 5], "x": 3.75, "y": 4, "w": 6.25}, 86 + {"matrix": [4, 8], "x": 10, "y": 4}, 87 + {"matrix": [4, 9], "x": 11, "y": 4}, 88 + {"matrix": [4, 10], "x": 12, "y": 4}, 89 + {"matrix": [4, 11], "x": 13, "y": 4}, 90 + {"matrix": [4, 13], "x": 14, "y": 4}, 91 + {"matrix": [4, 14], "x": 15, "y": 4} 92 + ] 93 + } 94 + } 95 + }
+16
qmk/source/dztech/dz65rgb/v2/readme.md
··· 1 + # DZ65RGB V2 2 + 3 + A customizable 65% RGB keyboard. 4 + 5 + * Keyboard Maintainer: [moyi4681](https://github.com/moyi4681) 6 + * Hardware Supported: DZ65RGB V2 7 + * Hardware Availability: [KBDfans](https://kbdfans.com/) 8 + 9 + ## Making firmware 10 + 11 + Make example for this keyboard (after setting up your build environment): 12 + 13 + make dztech/dz65rgb/v2:default 14 + 15 + 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). 16 +
+13
qmk/source/dztech/dz65rgb/v2/rules.mk
··· 1 + # Build Options 2 + # change yes to no to disable 3 + # 4 + BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite 5 + MOUSEKEY_ENABLE = yes # Mouse keys 6 + EXTRAKEY_ENABLE = yes # Audio control and System control 7 + CONSOLE_ENABLE = no # Console for debug 8 + COMMAND_ENABLE = no # Commands for debug and configuration 9 + NKRO_ENABLE = yes # Enable N-Key Rollover 10 + BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 11 + RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow 12 + AUDIO_ENABLE = no # Audio output 13 + RGB_MATRIX_ENABLE = yes # Use RGB matrix
+126
qmk/source/dztech/dz65rgb/v2/v2.c
··· 1 + /* Copyright 2020 DZTECH <moyi4681@live.cn> 2 + * 3 + * This program is free software: you can redistribute it and/or modify 4 + * it under the terms of the GNU General Public License as published by 5 + * the Free Software Foundation, either version 2 of the License, or 6 + * (at your option) any later version. 7 + * 8 + * This program is distributed in the hope that it will be useful, 9 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 + * GNU General Public License for more details. 12 + * 13 + * You should have received a copy of the GNU General Public License 14 + * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 + */ 16 + #include "quantum.h" 17 + 18 + #ifdef RGB_MATRIX_ENABLE 19 + const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = { 20 + { 0, C8_8, C7_8, C6_8 }, 21 + { 0, C9_8, C7_7, C6_7 }, 22 + { 0, C9_7, C8_7, C6_6 }, 23 + { 0, C9_6, C8_6, C7_6 }, 24 + { 0, C9_5, C8_5, C7_5 }, 25 + { 0, C9_4, C8_4, C7_4 }, 26 + { 0, C9_3, C8_3, C7_3 }, 27 + { 0, C9_2, C8_2, C7_2 }, 28 + { 0, C9_1, C8_1, C7_1 }, 29 + { 0, C2_9, C3_9, C4_9 }, 30 + { 0, C1_9, C3_10, C4_10 }, 31 + { 0, C1_10, C2_10, C4_11 }, 32 + { 0, C1_11, C2_11, C3_11 }, 33 + { 0, C1_13, C2_13, C3_13 }, 34 + { 0, C1_14, C2_14, C3_14 }, 35 + 36 + { 0, C1_7, C2_7, C3_7 }, 37 + { 0, C1_6, C2_6, C3_6 }, 38 + { 0, C1_5, C2_5, C3_5 }, 39 + { 0, C1_4, C2_4, C3_4 }, 40 + { 0, C1_3, C2_3, C3_3 }, 41 + { 0, C1_2, C2_2, C4_3 }, 42 + { 0, C1_1, C3_2, C4_2 }, 43 + { 0, C2_1, C3_1, C4_1 }, 44 + { 0, C9_9, C8_9, C7_9 }, 45 + { 0, C9_10, C8_10, C7_10 }, 46 + { 0, C9_11, C8_11, C7_11 }, 47 + { 0, C9_12, C8_12, C7_12 }, 48 + { 0, C9_13, C8_13, C7_13 }, 49 + { 0, C9_14, C8_14, C7_14 }, 50 + { 0, C1_15, C2_15, C3_15 }, 51 + 52 + { 0, C1_8, C2_8, C3_8 }, 53 + { 1, C9_6, C8_6, C7_6 }, 54 + { 1, C9_5, C8_5, C7_5 }, 55 + { 1, C9_4, C8_4, C7_4 }, 56 + { 1, C9_3, C8_3, C7_3 }, 57 + { 1, C9_2, C8_2, C7_2 }, 58 + { 1, C9_1, C8_1, C7_1 }, 59 + { 1, C2_9, C3_9, C4_9 }, 60 + { 1, C1_9, C3_10, C4_10 }, 61 + { 1, C1_10, C2_10, C4_11 }, 62 + { 1, C1_11, C2_11, C3_11 }, 63 + { 1, C1_12, C2_12, C3_12 }, 64 + { 1, C1_13, C2_13, C3_13 }, 65 + { 0, C1_16, C2_16, C3_16 }, 66 + 67 + { 1, C9_8, C7_7, C6_7 }, 68 + { 1, C1_5, C2_5, C3_5 }, 69 + { 1, C1_4, C2_4, C3_4 }, 70 + { 1, C1_3, C2_3, C3_3 }, 71 + { 1, C1_2, C2_2, C4_3 }, 72 + { 1, C1_1, C3_2, C4_2 }, 73 + { 1, C9_9, C8_9, C7_9 }, 74 + { 1, C9_10, C8_10, C7_10 }, 75 + { 1, C9_11, C8_11, C7_11 }, 76 + { 1, C9_12, C8_12, C7_12 }, 77 + { 1, C1_14, C2_14, C3_14 }, 78 + { 1, C1_15, C2_15, C3_15 }, 79 + { 1, C1_16, C2_16, C3_16 }, 80 + { 0, C9_15, C8_15, C6_14 }, 81 + 82 + { 1, C8_8, C7_8, C6_8 }, 83 + { 1, C1_8, C2_8, C3_8 }, 84 + { 1, C1_7, C2_7, C3_7 }, 85 + { 1, C2_1, C3_1, C4_1 }, 86 + { 1, C9_14, C8_14, C7_14 }, 87 + { 1, C9_15, C8_15, C6_14 }, 88 + { 1, C9_16, C7_15, C6_15 }, 89 + { 1, C8_16, C7_16, C6_16 }, 90 + { 0, C8_16, C7_16, C6_16 }, 91 + { 0, C9_16, C7_15, C6_15 } 92 + }; 93 + 94 + led_config_t g_led_config = { 95 + { 96 + { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }, 97 + { 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 }, 98 + { 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, NO_LED, 42, 43 }, 99 + { 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, NO_LED, 56, 57 }, 100 + { 58, 59, 60, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, 64, 65, NO_LED, 66, 67 } 101 + }, { 102 + { 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 120, 0 }, { 135, 0 }, { 150, 0 }, { 165, 0 }, { 180, 0 }, { 203, 0 }, { 224, 0 }, 103 + { 4, 16 }, { 23, 16 }, { 38, 16 }, { 53, 16 }, { 68, 16 }, { 83, 16 }, { 98, 16 }, { 113, 16 }, { 128, 16 }, { 143, 16 }, { 158, 16 }, { 173, 16 }, { 188, 16 }, { 206, 16 }, { 224, 16 }, 104 + { 6, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 176, 32 }, { 201, 32 }, { 224, 32 }, 105 + { 9, 48 }, { 34, 48 }, { 49, 48 }, { 64, 48 }, { 79, 48 }, { 94, 48 }, { 109, 48 }, { 124, 48 }, { 139, 48 }, { 154, 48 }, { 169, 48 }, { 189, 48 }, { 210, 48 }, { 224, 48 }, 106 + { 2, 64 }, { 21, 64 }, { 39, 64 }, { 96, 64 }, { 150, 64 }, { 165, 64 }, { 180, 64 }, { 195, 64 }, { 210, 64 }, { 224, 64 } 107 + }, { 108 + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 109 + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 110 + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 111 + 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 112 + 1, 1, 1, 4, 1, 1, 1, 1, 1, 1 113 + } 114 + }; 115 + 116 + 117 + bool rgb_matrix_indicators_kb(void) { 118 + if (!rgb_matrix_indicators_user()) { 119 + return false; 120 + } 121 + if (host_keyboard_led_state().caps_lock) { 122 + rgb_matrix_set_color(30, 0xFF, 0xFF, 0xFF); 123 + } 124 + return true; 125 + } 126 + #endif