Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add STK100 keyboard base on STM32WB55 #23583

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
path = lib/lvgl
url = https://github.com/qmk/lvgl.git
branch = release/v8.2
[submodule "lib/STM32CubeWB"]
path = lib/STM32CubeWB
url = https://github.com/JackyJia73/STM32CubeWB.git
41 changes: 41 additions & 0 deletions keyboards/smart/stk100/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* Copyright 2024 Jacky Jia <[email protected]>
*
* 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 SPI_DRIVER SPID1

#define AW20216S_CS_PIN_1 C11
#define AW20216S_CS_PIN_2 C10

#define AW20216S_EN_PIN_1 A15
#define AW20216S_EN_PIN_2 A15

#define DRIVER_1_LED_TOTAL 50
#define DRIVER_2_LED_TOTAL 51
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)

#define SPI_SCK_PIN A5
#define SPI_MOSI_PIN A6
#define SPI_MISO_PIN A7

/* Disable DIP switch in matrix data */
#define MATRIX_MASKED

/* DIP switch */
#define DIP_SWITCH_MATRIX_GRID { {6,0},{6,1} }

#define TRANSIENT_EEPROM_SIZE 2048
291 changes: 291 additions & 0 deletions keyboards/smart/stk100/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
{
"manufacturer": "SmartCloud",
"keyboard_name": "STK100",
"maintainer": "Jacky",
"bootloader": "stm32-dfu",
"bootloader_instructions": "Press ESC(ROW0COL0), Plug USB. ",
"diode_direction": "ROW2COL",
"encoder": {
"rotary": [
{"pin_a": "B4", "pin_b": "C12", "resolution": 4}
]
},
"features": {
"bootmagic": true,
"command": true,
"console": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"matrix_pins": {
"cols": ["B0", "B1", "B12", "B13", "B14", "B15", "C6", "C0", "A2", "A3", "A4", "A8", "A9", "C4", "C5", "B2", "B10", "B11"],
"rows": ["A0", "C3", "C2", "C1", "B9", "B8", "C13"]
},
"rgb_matrix": {
"animations": {
"alphas_mods": true,
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_sat": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"band_val": true,
"breathing": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"cycle_up_down": true,
"digital_rain": true,
"dual_beacon": true,
"gradient_left_right": true,
"gradient_up_down": true,
"hue_breathing": true,
"hue_pendulum": true,
"hue_wave": true,
"jellybean_raindrops": true,
"multisplash": true,
"pixel_flow": true,
"pixel_fractal": true,
"pixel_rain": true,
"rainbow_beacon": true,
"rainbow_moving_chevron": true,
"rainbow_pinwheels": true,
"raindrops": true,
"solid_multisplash": true,
"solid_reactive": true,
"solid_reactive_cross": true,
"solid_reactive_multicross": true,
"solid_reactive_multinexus": true,
"solid_reactive_multiwide": true,
"solid_reactive_nexus": true,
"solid_reactive_simple": true,
"solid_reactive_wide": true,
"solid_splash": true,
"splash": true,
"typing_heatmap": true
},
"driver": "aw20216s",
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
{"matrix": [0, 1], "x": 12, "y": 0, "flags": 4},
{"matrix": [0, 2], "x": 24, "y": 0, "flags": 4},
{"matrix": [0, 3], "x": 36, "y": 0, "flags": 4},
{"matrix": [0, 4], "x": 48, "y": 0, "flags": 4},
{"matrix": [0, 5], "x": 60, "y": 0, "flags": 4},
{"matrix": [0, 6], "x": 73, "y": 0, "flags": 4},
{"matrix": [0, 7], "x": 85, "y": 0, "flags": 4},
{"matrix": [0, 8], "x": 97, "y": 0, "flags": 4},
{"matrix": [0, 9], "x": 109, "y": 0, "flags": 4},
{"matrix": [0, 10], "x": 121, "y": 0, "flags": 4},
{"matrix": [0, 11], "x": 133, "y": 0, "flags": 4},
{"matrix": [0, 12], "x": 145, "y": 0, "flags": 4},
{"matrix": [0, 13], "x": 163, "y": 0, "flags": 4},
{"matrix": [0, 14], "x": 169, "y": 0, "flags": 4},
{"matrix": [0, 15], "x": 188, "y": 0, "flags": 4},
{"matrix": [0, 16], "x": 200, "y": 0, "flags": 4},
{"matrix": [0, 17], "x": 212, "y": 0, "flags": 4},
{"matrix": [1, 0], "x": 0, "y": 16, "flags": 4},
{"matrix": [1, 1], "x": 12, "y": 16, "flags": 4},
{"matrix": [1, 2], "x": 24, "y": 16, "flags": 4},
{"matrix": [1, 3], "x": 36, "y": 16, "flags": 4},
{"matrix": [1, 4], "x": 48, "y": 16, "flags": 4},
{"matrix": [1, 5], "x": 60, "y": 16, "flags": 4},
{"matrix": [1, 6], "x": 73, "y": 16, "flags": 4},
{"matrix": [1, 7], "x": 85, "y": 16, "flags": 4},
{"matrix": [1, 8], "x": 97, "y": 16, "flags": 4},
{"matrix": [1, 9], "x": 109, "y": 16, "flags": 4},
{"matrix": [1, 10], "x": 121, "y": 16, "flags": 4},
{"matrix": [1, 11], "x": 133, "y": 16, "flags": 4},
{"matrix": [1, 12], "x": 145, "y": 16, "flags": 4},
{"matrix": [1, 13], "x": 163, "y": 16, "flags": 4},
{"matrix": [1, 14], "x": 188, "y": 16, "flags": 4},
{"matrix": [1, 15], "x": 200, "y": 16, "flags": 4},
{"matrix": [1, 16], "x": 212, "y": 16, "flags": 4},
{"matrix": [1, 17], "x": 224, "y": 16, "flags": 4},
{"matrix": [2, 0], "x": 3, "y": 27, "flags": 4},
{"matrix": [2, 1], "x": 18, "y": 27, "flags": 4},
{"matrix": [2, 2], "x": 30, "y": 27, "flags": 4},
{"matrix": [2, 3], "x": 42, "y": 27, "flags": 4},
{"matrix": [2, 4], "x": 54, "y": 27, "flags": 4},
{"matrix": [2, 5], "x": 66, "y": 27, "flags": 4},
{"matrix": [2, 6], "x": 79, "y": 27, "flags": 4},
{"matrix": [2, 7], "x": 91, "y": 27, "flags": 4},
{"matrix": [2, 8], "x": 103, "y": 27, "flags": 4},
{"matrix": [2, 9], "x": 115, "y": 27, "flags": 4},
{"matrix": [2, 10], "x": 127, "y": 27, "flags": 4},
{"matrix": [2, 11], "x": 139, "y": 27, "flags": 4},
{"matrix": [2, 12], "x": 151, "y": 27, "flags": 4},
{"matrix": [2, 13], "x": 166, "y": 27, "flags": 4},
{"matrix": [2, 14], "x": 188, "y": 27, "flags": 4},
{"matrix": [2, 15], "x": 200, "y": 27, "flags": 4},
{"matrix": [2, 16], "x": 212, "y": 27, "flags": 4},
{"matrix": [3, 0], "x": 5, "y": 38, "flags": 4},
{"matrix": [3, 1], "x": 21, "y": 38, "flags": 4},
{"matrix": [3, 2], "x": 33, "y": 38, "flags": 4},
{"matrix": [3, 3], "x": 45, "y": 38, "flags": 4},
{"matrix": [3, 4], "x": 57, "y": 38, "flags": 4},
{"matrix": [3, 5], "x": 70, "y": 38, "flags": 4},
{"matrix": [3, 6], "x": 82, "y": 38, "flags": 4},
{"matrix": [3, 7], "x": 94, "y": 38, "flags": 4},
{"matrix": [3, 8], "x": 106, "y": 38, "flags": 4},
{"matrix": [3, 9], "x": 118, "y": 38, "flags": 4},
{"matrix": [3, 10], "x": 130, "y": 38, "flags": 4},
{"matrix": [3, 11], "x": 142, "y": 38, "flags": 4},
{"matrix": [3, 12], "x": 162, "y": 38, "flags": 4},
{"matrix": [3, 14], "x": 188, "y": 38, "flags": 4},
{"matrix": [3, 15], "x": 200, "y": 38, "flags": 4},
{"matrix": [3, 16], "x": 212, "y": 38, "flags": 4},
{"matrix": [3, 17], "x": 224, "y": 33, "flags": 4},
{"matrix": [4, 0], "x": 8, "y": 50, "flags": 5},
{"matrix": [4, 1], "x": 27, "y": 50, "flags": 4},
{"matrix": [4, 2], "x": 39, "y": 50, "flags": 4},
{"matrix": [4, 3], "x": 51, "y": 50, "flags": 4},
{"matrix": [4, 4], "x": 63, "y": 50, "flags": 4},
{"matrix": [4, 5], "x": 76, "y": 50, "flags": 4},
{"matrix": [4, 6], "x": 88, "y": 50, "flags": 4},
{"matrix": [4, 7], "x": 100, "y": 50, "flags": 4},
{"matrix": [4, 8], "x": 112, "y": 50, "flags": 4},
{"matrix": [4, 9], "x": 124, "y": 50, "flags": 4},
{"matrix": [4, 10], "x": 136, "y": 50, "flags": 4},
{"matrix": [4, 11], "x": 153, "y": 50, "flags": 5},
{"matrix": [4, 12], "x": 172, "y": 53, "flags": 4},
{"matrix": [4, 14], "x": 188, "y": 50, "flags": 4},
{"matrix": [4, 15], "x": 200, "y": 50, "flags": 4},
{"matrix": [4, 16], "x": 212, "y": 50, "flags": 4},
{"matrix": [5, 0], "x": 2, "y": 61, "flags": 5},
{"matrix": [5, 1], "x": 17, "y": 61, "flags": 4},
{"matrix": [5, 2], "x": 32, "y": 61, "flags": 5},
{"matrix": [5, 5], "x": 77, "y": 61, "flags": 4},
{"matrix": [5, 8], "x": 121, "y": 61, "flags": 5},
{"matrix": [5, 9], "x": 133, "y": 61, "flags": 4},
{"matrix": [5, 10], "x": 145, "y": 61, "flags": 5},
{"matrix": [5, 11], "x": 160, "y": 63, "flags": 4},
{"matrix": [5, 12], "x": 172, "y": 63, "flags": 4},
{"matrix": [5, 14], "x": 185, "y": 63, "flags": 4},
{"matrix": [5, 15], "x": 200, "y": 61, "flags": 4},
{"matrix": [5, 16], "x": 212, "y": 61, "flags": 4},
{"matrix": [5, 17], "x": 224, "y": 58, "flags": 4},
{"x": 179, "y": 27, "flags": 8},
{"x": 179, "y": 41, "flags": 8}
]
},
"url": "www.i-chip.cn",
"usb": {
"device_version": "1.0.0",
"no_startup_check": true,
"pid": "0x0100",
"vid": "0x5343",
"wait_for": false
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},
{"matrix": [0, 4], "x": 4, "y": 0},
{"matrix": [0, 5], "x": 5.25, "y": 0},
{"matrix": [0, 6], "x": 6.25, "y": 0},
{"matrix": [0, 7], "x": 7.25, "y": 0},
{"matrix": [0, 8], "x": 8.25, "y": 0},
{"matrix": [0, 9], "x": 9.5, "y": 0},
{"matrix": [0, 10], "x": 10.5, "y": 0},
{"matrix": [0, 11], "x": 11.5, "y": 0},
{"matrix": [0, 12], "x": 12.5, "y": 0},
{"matrix": [0, 13], "x": 14, "y": 0},
{"matrix": [0, 14], "x": 15.25, "y": 0},
{"matrix": [0, 15], "x": 16.25, "y": 0},
{"matrix": [0, 16], "x": 17.25, "y": 0},
{"matrix": [0, 17], "x": 18.25, "y": 0},
{"matrix": [2, 17], "x": 19.25, "y": 0},
{"matrix": [1, 0], "x": 0, "y": 1.5},
{"matrix": [1, 1], "x": 1, "y": 1.5},
{"matrix": [1, 2], "x": 2, "y": 1.5},
{"matrix": [1, 3], "x": 3, "y": 1.5},
{"matrix": [1, 4], "x": 4, "y": 1.5},
{"matrix": [1, 5], "x": 5, "y": 1.5},
{"matrix": [1, 6], "x": 6, "y": 1.5},
{"matrix": [1, 7], "x": 7, "y": 1.5},
{"matrix": [1, 8], "x": 8, "y": 1.5},
{"matrix": [1, 9], "x": 9, "y": 1.5},
{"matrix": [1, 10], "x": 10, "y": 1.5},
{"matrix": [1, 11], "x": 11, "y": 1.5},
{"matrix": [1, 12], "x": 12, "y": 1.5},
{"matrix": [1, 13], "x": 13, "y": 1.5, "w": 2},
{"matrix": [1, 14], "x": 15.25, "y": 1.5},
{"matrix": [1, 15], "x": 16.25, "y": 1.5},
{"matrix": [1, 16], "x": 17.25, "y": 1.5},
{"matrix": [1, 17], "x": 18.25, "y": 1.5},
{"matrix": [2, 0], "x": 0, "y": 2.5, "w": 1.5},
{"matrix": [2, 1], "x": 1.5, "y": 2.5},
{"matrix": [2, 2], "x": 2.5, "y": 2.5},
{"matrix": [2, 3], "x": 3.5, "y": 2.5},
{"matrix": [2, 4], "x": 4.5, "y": 2.5},
{"matrix": [2, 5], "x": 5.5, "y": 2.5},
{"matrix": [2, 6], "x": 6.5, "y": 2.5},
{"matrix": [2, 7], "x": 7.5, "y": 2.5},
{"matrix": [2, 8], "x": 8.5, "y": 2.5},
{"matrix": [2, 9], "x": 9.5, "y": 2.5},
{"matrix": [2, 10], "x": 10.5, "y": 2.5},
{"matrix": [2, 11], "x": 11.5, "y": 2.5},
{"matrix": [2, 12], "x": 12.5, "y": 2.5},
{"matrix": [2, 13], "x": 13.5, "y": 2.5, "w": 1.5},
{"matrix": [2, 14], "x": 15.25, "y": 2.5},
{"matrix": [2, 15], "x": 16.25, "y": 2.5},
{"matrix": [2, 16], "x": 17.25, "y": 2.5},
{"matrix": [3, 17], "x": 18.25, "y": 2.5},
{"matrix": [3, 0], "x": 0, "y": 3.5, "w": 1.75},
{"matrix": [3, 1], "x": 1.75, "y": 3.5},
{"matrix": [3, 2], "x": 2.75, "y": 3.5},
{"matrix": [3, 3], "x": 3.75, "y": 3.5},
{"matrix": [3, 4], "x": 4.75, "y": 3.5},
{"matrix": [3, 5], "x": 5.75, "y": 3.5},
{"matrix": [3, 6], "x": 6.75, "y": 3.5},
{"matrix": [3, 7], "x": 7.75, "y": 3.5},
{"matrix": [3, 8], "x": 8.75, "y": 3.5},
{"matrix": [3, 9], "x": 9.75, "y": 3.5},
{"matrix": [3, 10], "x": 10.75, "y": 3.5},
{"matrix": [3, 11], "x": 11.75, "y": 3.5},
{"matrix": [3, 12], "x": 12.75, "y": 3.5, "w": 2.25},
{"matrix": [3, 14], "x": 15.25, "y": 3.5},
{"matrix": [3, 15], "x": 16.25, "y": 3.5},
{"matrix": [3, 16], "x": 17.25, "y": 3.5},
{"matrix": [4, 0], "x": 0, "y": 4.5, "w": 2.25},
{"matrix": [4, 1], "x": 2.25, "y": 4.5},
{"matrix": [4, 2], "x": 3.25, "y": 4.5},
{"matrix": [4, 3], "x": 4.25, "y": 4.5},
{"matrix": [4, 4], "x": 5.25, "y": 4.5},
{"matrix": [4, 5], "x": 6.25, "y": 4.5},
{"matrix": [4, 6], "x": 7.25, "y": 4.5},
{"matrix": [4, 7], "x": 8.25, "y": 4.5},
{"matrix": [4, 8], "x": 9.25, "y": 4.5},
{"matrix": [4, 9], "x": 10.25, "y": 4.5},
{"matrix": [4, 10], "x": 11.25, "y": 4.5},
{"matrix": [4, 11], "x": 12.25, "y": 4.5, "w": 1.75},
{"matrix": [4, 12], "x": 14, "y": 4.75},
{"matrix": [4, 14], "x": 15.25, "y": 4.5},
{"matrix": [4, 15], "x": 16.25, "y": 4.5},
{"matrix": [4, 16], "x": 17.25, "y": 4.5},
{"matrix": [5, 17], "x": 18.25, "y": 4.5},
{"matrix": [5, 0], "x": 0, "y": 5.5, "w": 1.25},
{"matrix": [5, 1], "x": 1.25, "y": 5.5, "w": 1.25},
{"matrix": [5, 2], "x": 2.5, "y": 5.5, "w": 1.25},
{"matrix": [5, 5], "x": 3.75, "y": 5.5, "w": 5},
{"matrix": [5, 8], "x": 8.75, "y": 5.5, "w": 1.25},
{"matrix": [5, 9], "x": 10, "y": 5.5, "w": 1.25},
{"matrix": [5, 10], "x": 11.25, "y": 5.5, "w": 1.25},
{"matrix": [5, 11], "x": 13, "y": 5.75},
{"matrix": [5, 12], "x": 14, "y": 5.75},
{"matrix": [5, 14], "x": 15, "y": 5.75},
{"matrix": [5, 15], "x": 16.25, "y": 5.5},
{"matrix": [5, 16], "x": 17.25, "y": 5.5}
]
}
}
}
Loading
Loading