Skip to content

Commit 96a4388

Browse files
[Keyboard] adding keyboard: sl40 (qmk#7978)
* sl40 * Amended with collaborator suggestions Co-authored-by: ridingqwerty <[email protected]>
1 parent a86a8a2 commit 96a4388

File tree

7 files changed

+138
-0
lines changed

7 files changed

+138
-0
lines changed

keyboards/wsk/sl40/config.h

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#pragma once
2+
3+
#include "config_common.h"
4+
5+
/* USB Device descriptor parameter */
6+
#define VENDOR_ID 0xFEED
7+
#define PRODUCT_ID 0xC456
8+
#define DEVICE_VER 0x0001
9+
#define MANUFACTURER Worldspawn00
10+
#define PRODUCT SL40
11+
#define DESCRIPTION 14-column staggered 40% keyboard
12+
13+
/* key matrix size */
14+
#define MATRIX_ROWS 4
15+
#define MATRIX_COLS 14
16+
17+
/* key matrix pins */
18+
#define MATRIX_ROW_PINS { F4, F5, D2, D0 }
19+
#define MATRIX_COL_PINS { D3, D1, F6, F7, B6, B2, B3, B1, D4, C6, D7, E6, B4, B5 }
20+
#define UNUSED_PINS
21+
22+
/* COL2ROW or ROW2COL */
23+
#define DIODE_DIRECTION COL2ROW
24+
25+
/* number of backlight levels */
26+
27+
#ifdef BACKLIGHT_PIN
28+
#define BACKLIGHT_LEVELS 0
29+
#endif
30+
31+
/* Set 0 if debouncing isn't needed */
32+
#define DEBOUNCE 5
33+
34+
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
35+
#define LOCKING_SUPPORT_ENABLE
36+
37+
/* Locking resynchronize hack */
38+
#define LOCKING_RESYNC_ENABLE
39+
40+
#define RGB_DI_PIN F1
41+
#ifdef RGB_DI_PIN
42+
#define RGBLIGHT_ANIMATIONS
43+
#define RGBLED_NUM 1
44+
#define RGBLIGHT_HUE_STEP 8
45+
#define RGBLIGHT_SAT_STEP 8
46+
#define RGBLIGHT_VAL_STEP 8
47+
#endif
48+

keyboards/wsk/sl40/info.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"keyboard_name": "SL40",
3+
"url": "https://qmk.fm/keyboards",
4+
"maintainer": "worldspawn00",
5+
"width": 14,
6+
"height": 4,
7+
"layouts": {
8+
"LAYOUT": {
9+
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":0, "y":1, "w":1.25}, {"x":1.25, "y":1}, {"x":2.25, "y":1}, {"x":3.25, "y":1}, {"x":4.25, "y":1}, {"x":5.25, "y":1}, {"x":6.25, "y":1}, {"x":7.25, "y":1}, {"x":8.25, "y":1}, {"x":9.25, "y":1}, {"x":10.25, "y":1}, {"x":11.25, "y":1}, {"x":12.25, "y":1, "w":1.75}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2, "w":1.25}, {"x":12, "y":2}, {"x":13, "y":2}, {"x":0, "y":3, "w":1.25}, {"x":1.25, "y":3, "w":1.25}, {"x":2.5, "y":3, "w":1.25}, {"x":3.75, "y":3, "w":6.25}, {"x":10, "y":3}, {"x":11, "y":3}, {"x":12, "y":3}, {"x":13, "y":3}]
10+
}
11+
}
12+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include QMK_KEYBOARD_H
2+
3+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4+
5+
[0] = LAYOUT(
6+
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
7+
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
8+
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, MO(1),
9+
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
10+
11+
[1] = LAYOUT(
12+
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL,
13+
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, RESET, KC_VOLU, KC_VOLD, KC_MPRV, KC_MNXT, KC_TRNS,
14+
KC_TRNS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MPLY, KC_MSTP, KC_TRNS, KC_TRNS, KC_PGUP, KC_TRNS,
15+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END)
16+
17+
};
18+
19+

keyboards/wsk/sl40/readme.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SL40
2+
3+
![SL40](https://i.imgur.com/HeeUwVj.png)
4+
5+
The SL40 is a 14 column staggered 40% keyboard.
6+
7+
* Keyboard Maintainer: [worldspawn00](https://github.com/worldspawn00/)
8+
* Hardware Supported: The SL40 PCB and kit.
9+
* Hardware Availability: [PCB](https://github.com/worldspawn00/SL40)
10+
11+
Make example for this keyboard (after setting up your build environment):
12+
13+
make wsk/sl40: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+

keyboards/wsk/sl40/rules.mk

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# MCU name
2+
MCU = atmega32u4
3+
4+
# Bootloader selection
5+
# Teensy halfkay
6+
# Pro Micro caterina
7+
# Atmel DFU atmel-dfu
8+
# LUFA DFU lufa-dfu
9+
# QMK DFU qmk-dfu
10+
# ATmega32A bootloadHID
11+
# ATmega328P USBasp
12+
BOOTLOADER = caterina
13+
14+
# Build Options
15+
# comment out to disable the options.
16+
#
17+
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
18+
MOUSEKEY_ENABLE = yes # Mouse keys
19+
EXTRAKEY_ENABLE = yes # Audio control and System control
20+
CONSOLE_ENABLE = no # Console for debug
21+
COMMAND_ENABLE = no # Commands for debug and configuration
22+
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
23+
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
24+
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
25+
AUDIO_ENABLE = no
26+
RGBLIGHT_ENABLE = yes

keyboards/wsk/sl40/sl40.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "sl40.h"

keyboards/wsk/sl40/sl40.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#pragma once
2+
3+
#include "quantum.h"
4+
5+
#define LAYOUT( \
6+
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, \
7+
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K113, \
8+
K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
9+
K300, K301, K302, K306, K310, K311, K312, K313 \
10+
) { \
11+
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
12+
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, KC_NO, K113 }, \
13+
{ K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
14+
{ K300, K301, K302, KC_NO, KC_NO, KC_NO, K306, KC_NO, KC_NO, KC_NO, K310, K311, K312, K313 } \
15+
}
16+

0 commit comments

Comments
 (0)