Skip to content

Commit

Permalink
✨ add 95
Browse files Browse the repository at this point in the history
  • Loading branch information
volatile-static committed Aug 10, 2023
1 parent a3d5ee1 commit 192fe18
Show file tree
Hide file tree
Showing 17 changed files with 1,013 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 95/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2023 ZJU (@VS)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

// #define WS2812_T1H 720
// #define WS2812_T1L 355
// #define WS2812_T0H 355
// #define WS2812_T0L 680
// #define WS2812_TIMING 900

#define WS2812_PWM_DRIVER PWMD3
#define WS2812_DMA_CHANNEL 5
#define WS2812_TRST_US 160
#define WS2812_PWM_TARGET_PERIOD 1123595

#define RGB_DISABLE_WHEN_USB_SUSPENDED
#define RGB_MATRIX_LED_COUNT 94
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
22 changes: 22 additions & 0 deletions 95/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Copyright 2020 QMK
*
* 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

#define HAL_USE_PWM TRUE
#define HAL_USE_PAL TRUE

#include_next <halconf.h>
302 changes: 302 additions & 0 deletions 95/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,302 @@
{
"manufacturer": "ZJU",
"keyboard_name": "vs95",
"maintainer": "VS",
"bootloader": "stm32-dfu",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"combo": true,
"key_lock": true,
"encoder": true,
"rgblight": true,
"rgb_matrix": true
},
"encoder": {
"rotary": [
{ "pin_a": "B0", "pin_b": "B1", "resolution": 4 }
]
},
"ws2812": {
"pin": "A7",
"driver": "pwm"
},
"rgb_matrix": {
"driver": "WS2812",
"animations": {
"alphas_mods": true,
"gradient_up_down": true,
"gradient_left_right": true,
"breathing": true,
"band_sat": true,
"band_val": true,
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"rainbow_moving_chevron": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"rainbow_pinwheels": true,
"raindrops": true,
"jellybean_raindrops": true,
"hue_breathing": true,
"hue_pendulum": true,
"hue_wave": true,
"pixel_rain": true,
"pixel_flow": true,
"pixel_fractal": true,
"typing_heatmap": true,
"digital_rain": true,
"solid_reactive_simple": true,
"solid_reactive": true,
"solid_reactive_wide": true,
"solid_reactive_multiwide": true,
"solid_reactive_cross": true,
"solid_reactive_multicross": true,
"solid_reactive_nexus": true,
"solid_reactive_multinexus": true,
"splash": true,
"multisplash": true,
"solid_splash": true,
"solid_multisplash": true
},
"layout": [
{"flags": 4, "matrix": [0, 15], "x": 186.667, "y": 0},
{"flags": 4, "matrix": [0, 14], "x": 174.222, "y": 0},
{"flags": 4, "matrix": [0, 13], "x": 161.778, "y": 0},
{"flags": 4, "matrix": [0, 12], "x": 149.333, "y": 0},
{"flags": 4, "matrix": [0, 10], "x": 124.444, "y": 0},
{"flags": 4, "matrix": [0, 9], "x": 112, "y": 0},
{"flags": 4, "matrix": [0, 8], "x": 99.556, "y": 0},
{"flags": 4, "matrix": [0, 7], "x": 87.111, "y": 0},
{"flags": 4, "matrix": [0, 6], "x": 74.667, "y": 0},
{"flags": 4, "matrix": [0, 5], "x": 62.222, "y": 0},
{"flags": 4, "matrix": [0, 4], "x": 49.778, "y": 0},
{"flags": 4, "matrix": [0, 3], "x": 37.333, "y": 0},
{"flags": 4, "matrix": [0, 1], "x": 12.444, "y": 0},
{"flags": 4, "matrix": [1, 17], "x": 224, "y": 12.8},
{"flags": 4, "matrix": [1, 16], "x": 211.556, "y": 12.8},
{"flags": 4, "matrix": [1, 15], "x": 199.111, "y": 12.8},
{"flags": 4, "matrix": [1, 14], "x": 174.222, "y": 12.8},
{"flags": 4, "matrix": [1, 13], "x": 161.778, "y": 12.8},
{"flags": 4, "matrix": [1, 12], "x": 149.333, "y": 12.8},
{"flags": 4, "matrix": [1, 11], "x": 136.889, "y": 12.8},
{"flags": 4, "matrix": [1, 10], "x": 124.444, "y": 12.8},
{"flags": 4, "matrix": [1, 9], "x": 112, "y": 12.8},
{"flags": 4, "matrix": [1, 8], "x": 99.556, "y": 12.8},
{"flags": 4, "matrix": [1, 7], "x": 87.111, "y": 12.8},
{"flags": 4, "matrix": [1, 6], "x": 74.667, "y": 12.8},
{"flags": 4, "matrix": [1, 5], "x": 62.222, "y": 12.8},
{"flags": 4, "matrix": [1, 4], "x": 49.778, "y": 12.8},
{"flags": 4, "matrix": [1, 3], "x": 37.333, "y": 12.8},
{"flags": 4, "matrix": [1, 2], "x": 24.889, "y": 12.8},
{"flags": 4, "matrix": [1, 1], "x": 12.444, "y": 12.8},
{"flags": 4, "matrix": [1, 0], "x": 0, "y": 12.8},
{"flags": 4, "matrix": [2, 17], "x": 224, "y": 25.6},
{"flags": 4, "matrix": [2, 16], "x": 211.556, "y": 25.6},
{"flags": 4, "matrix": [2, 15], "x": 199.111, "y": 25.6},
{"flags": 4, "matrix": [2, 14], "x": 180.444, "y": 25.6},
{"flags": 4, "matrix": [2, 13], "x": 168, "y": 25.6},
{"flags": 4, "matrix": [2, 12], "x": 155.556, "y": 25.6},
{"flags": 4, "matrix": [2, 11], "x": 143.111, "y": 25.6},
{"flags": 4, "matrix": [2, 10], "x": 130.667, "y": 25.6},
{"flags": 4, "matrix": [2, 9], "x": 118.222, "y": 25.6},
{"flags": 4, "matrix": [2, 8], "x": 105.778, "y": 25.6},
{"flags": 4, "matrix": [2, 7], "x": 93.333, "y": 25.6},
{"flags": 4, "matrix": [2, 6], "x": 80.889, "y": 25.6},
{"flags": 4, "matrix": [2, 5], "x": 68.444, "y": 25.6},
{"flags": 4, "matrix": [2, 4], "x": 56, "y": 25.6},
{"flags": 4, "matrix": [2, 3], "x": 43.556, "y": 25.6},
{"flags": 4, "matrix": [2, 2], "x": 31.111, "y": 25.6},
{"flags": 4, "matrix": [2, 1], "x": 12.444, "y": 25.6},
{"flags": 4, "matrix": [2, 0], "x": 0, "y": 25.6},
{"flags": 4, "matrix": [3, 17], "x": 224, "y": 38.4},
{"flags": 4, "matrix": [3, 16], "x": 211.556, "y": 38.4},
{"flags": 4, "matrix": [3, 15], "x": 199.111, "y": 38.4},
{"flags": 4, "matrix": [3, 14], "x": 171.111, "y": 38.4},
{"flags": 4, "matrix": [3, 12], "x": 149.333, "y": 38.4},
{"flags": 4, "matrix": [3, 11], "x": 146.222, "y": 38.4},
{"flags": 4, "matrix": [3, 10], "x": 133.778, "y": 38.4},
{"flags": 4, "matrix": [3, 9], "x": 121.333, "y": 38.4},
{"flags": 4, "matrix": [3, 8], "x": 108.889, "y": 38.4},
{"flags": 4, "matrix": [3, 7], "x": 96.444, "y": 38.4},
{"flags": 4, "matrix": [3, 6], "x": 84, "y": 38.4},
{"flags": 4, "matrix": [3, 5], "x": 71.556, "y": 38.4},
{"flags": 4, "matrix": [3, 4], "x": 59.111, "y": 38.4},
{"flags": 4, "matrix": [3, 3], "x": 46.667, "y": 38.4},
{"flags": 4, "matrix": [3, 2], "x": 34.222, "y": 38.4},
{"flags": 4, "matrix": [3, 1], "x": 12.444, "y": 38.4},
{"flags": 4, "matrix": [3, 0], "x": 0, "y": 38.4},
{"flags": 4, "matrix": [4, 17], "x": 224, "y": 51.2},
{"flags": 4, "matrix": [4, 16], "x": 211.556, "y": 51.2},
{"flags": 4, "matrix": [4, 15], "x": 199.111, "y": 51.2},
{"flags": 4, "matrix": [4, 13], "x": 164.889, "y": 51.2},
{"flags": 4, "matrix": [4, 11], "x": 152.444, "y": 51.2},
{"flags": 4, "matrix": [4, 10], "x": 140, "y": 51.2},
{"flags": 4, "matrix": [4, 9], "x": 127.556, "y": 51.2},
{"flags": 4, "matrix": [4, 8], "x": 115.111, "y": 51.2},
{"flags": 4, "matrix": [4, 7], "x": 102.667, "y": 51.2},
{"flags": 4, "matrix": [4, 6], "x": 90.222, "y": 51.2},
{"flags": 4, "matrix": [4, 5], "x": 77.778, "y": 51.2},
{"flags": 4, "matrix": [4, 4], "x": 65.333, "y": 51.2},
{"flags": 4, "matrix": [4, 3], "x": 52.889, "y": 51.2},
{"flags": 4, "matrix": [4, 2], "x": 40.444, "y": 51.2},
{"flags": 4, "matrix": [4, 1], "x": 12.444, "y": 51.2},
{"flags": 4, "matrix": [4, 0], "x": 0, "y": 51.2},
{"flags": 4, "matrix": [5, 17], "x": 224, "y": 64},
{"flags": 4, "matrix": [5, 16], "x": 211.556, "y": 64},
{"flags": 4, "matrix": [5, 15], "x": 199.111, "y": 64},
{"flags": 4, "matrix": [5, 14], "x": 174.222, "y": 64},
{"flags": 4, "matrix": [5, 13], "x": 161.778, "y": 64},
{"flags": 4, "matrix": [5, 11], "x": 136.889, "y": 64},
{"flags": 4, "matrix": [5, 10], "x": 124.444, "y": 64},
{"flags": 4, "matrix": [5, 6], "x": 90, "y": 64},
{"flags": 4, "matrix": [5, 3], "x": 43.556, "y": 64},
{"flags": 4, "matrix": [5, 2], "x": 28, "y": 64},
{"flags": 4, "matrix": [5, 1], "x": 12.444, "y": 64},
{"flags": 4, "matrix": [5, 0], "x": 0, "y": 64}
]
},
"rgblight": {
"led_count": 11,
"animations": {
"alternating": true,
"breathing": true,
"christmas": true,
"knight": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"rgb_test": true,
"snake": true,
"static_gradient": true,
"twinkle": true
}
},
"matrix_pins": {
"custom": true,
"custom_lite": true,
"cols": ["A15", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "C13", "C14", "C15", "A0", "A1", "A4", "A5", "A6", "A8", "B14"],
"rows": ["A13", "B13", "B12", "B15", "A10", "A9"]
},
"processor": "STM32F401",
"board": "BLACKPILL_STM32_F401",
"url": "https://github.com/volatile-static/Keyboard",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"layouts": {
"LAYOUT_96_ansi": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [0, 4], "x": 4, "y": 0},
{"matrix": [0, 5], "x": 5, "y": 0},
{"matrix": [0, 6], "x": 6, "y": 0},
{"matrix": [0, 7], "x": 7, "y": 0},
{"matrix": [0, 8], "x": 8, "y": 0},
{"matrix": [0, 9], "x": 9, "y": 0},
{"matrix": [0, 10], "x": 10, "y": 0},
{"matrix": [0, 12], "x": 12, "y": 0},
{"matrix": [0, 13], "x": 13, "y": 0},
{"matrix": [0, 14], "x": 14, "y": 0},
{"matrix": [0, 15], "x": 15, "y": 0},
{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1},
{"matrix": [1, 4], "x": 4, "y": 1},
{"matrix": [1, 5], "x": 5, "y": 1},
{"matrix": [1, 6], "x": 6, "y": 1},
{"matrix": [1, 7], "x": 7, "y": 1},
{"matrix": [1, 8], "x": 8, "y": 1},
{"matrix": [1, 9], "x": 9, "y": 1},
{"matrix": [1, 10], "x": 10, "y": 1},
{"matrix": [1, 11], "x": 11, "y": 1},
{"matrix": [1, 12], "x": 12, "y": 1},
{"matrix": [1, 13], "x": 13, "y": 1},
{"matrix": [1, 14], "x": 14, "y": 1, "w": 2},
{"matrix": [1, 15], "x": 16, "y": 1},
{"matrix": [1, 16], "x": 17, "y": 1},
{"matrix": [1, 17], "x": 18, "y": 1},
{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2, "w": 1.5},
{"matrix": [2, 2], "x": 2.5, "y": 2},
{"matrix": [2, 3], "x": 3.5, "y": 2},
{"matrix": [2, 4], "x": 4.5, "y": 2},
{"matrix": [2, 5], "x": 5.5, "y": 2},
{"matrix": [2, 6], "x": 6.5, "y": 2},
{"matrix": [2, 7], "x": 7.5, "y": 2},
{"matrix": [2, 8], "x": 8.5, "y": 2},
{"matrix": [2, 9], "x": 9.5, "y": 2},
{"matrix": [2, 10], "x": 10.5, "y": 2},
{"matrix": [2, 11], "x": 11.5, "y": 2},
{"matrix": [2, 12], "x": 12.5, "y": 2},
{"matrix": [2, 13], "x": 13.5, "y": 2},
{"matrix": [2, 14], "x": 14.5, "y": 2, "w": 1.5},
{"matrix": [2, 15], "x": 16, "y": 2},
{"matrix": [2, 16], "x": 17, "y": 2},
{"matrix": [2, 17], "x": 18, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3},
{"matrix": [3, 1], "x": 1, "y": 3, "w": 1.75},
{"matrix": [3, 2], "x": 2.75, "y": 3},
{"matrix": [3, 3], "x": 3.75, "y": 3},
{"matrix": [3, 4], "x": 4.75, "y": 3},
{"matrix": [3, 5], "x": 5.75, "y": 3},
{"matrix": [3, 6], "x": 6.75, "y": 3},
{"matrix": [3, 7], "x": 7.75, "y": 3},
{"matrix": [3, 8], "x": 8.75, "y": 3},
{"matrix": [3, 9], "x": 9.75, "y": 3},
{"matrix": [3, 10], "x": 10.75, "y": 3},
{"matrix": [3, 11], "x": 11.75, "y": 3},
{"matrix": [3, 12], "x": 12, "y": 3},
{"matrix": [3, 14], "x": 13.75, "y": 3, "w": 2.25},
{"matrix": [3, 15], "x": 16, "y": 3},
{"matrix": [3, 16], "x": 17, "y": 3},
{"matrix": [3, 17], "x": 18, "y": 3},
{"matrix": [4, 0], "x": 0, "y": 4},
{"matrix": [4, 1], "x": 1, "y": 4, "w": 2.25},
{"matrix": [4, 2], "x": 3.25, "y": 4},
{"matrix": [4, 3], "x": 4.25, "y": 4},
{"matrix": [4, 4], "x": 5.25, "y": 4},
{"matrix": [4, 5], "x": 6.25, "y": 4},
{"matrix": [4, 6], "x": 7.25, "y": 4},
{"matrix": [4, 7], "x": 8.25, "y": 4},
{"matrix": [4, 8], "x": 9.25, "y": 4},
{"matrix": [4, 9], "x": 10.25, "y": 4},
{"matrix": [4, 10], "x": 11.25, "y": 4},
{"matrix": [4, 11], "x": 12.25, "y": 4},
{"matrix": [4, 13], "x": 13.25, "y": 4, "w": 1.75},
{"matrix": [4, 15], "x": 16, "y": 4},
{"matrix": [4, 16], "x": 17, "y": 4},
{"matrix": [4, 17], "x": 18, "y": 4},
{"matrix": [5, 0], "x": 0, "y": 5, "w": 1},
{"matrix": [5, 1], "x": 1, "y": 5, "w": 1.25},
{"matrix": [5, 2], "x": 2.25, "y": 5, "w": 1.25},
{"matrix": [5, 3], "x": 3.5, "y": 5, "w": 1.25},
{"matrix": [5, 6], "x": 4.75, "y": 5, "w": 6.25},
{"matrix": [5, 10], "x": 10, "y": 5},
{"matrix": [5, 11], "x": 11, "y": 5},
{"matrix": [5, 13], "x": 13, "y": 5},
{"matrix": [5, 14], "x": 14, "y": 5},
{"matrix": [5, 15], "x": 16, "y": 5},
{"matrix": [5, 16], "x": 17, "y": 5},
{"matrix": [5, 17], "x": 18, "y": 5}
]
}
}
}
Loading

0 comments on commit 192fe18

Please sign in to comment.