Skip to content

Commit

Permalink
Add lyn TODO: add vial support
Browse files Browse the repository at this point in the history
  • Loading branch information
Patchii committed Mar 30, 2024
1 parent c487c8b commit c016765
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 0 deletions.
24 changes: 24 additions & 0 deletions keyboards/lyn/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright 2023 paatchii (@paatchii)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

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

#define EE_HANDS

#define SPLIT_USB_DETECT
90 changes: 90 additions & 0 deletions keyboards/lyn/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"manufacturer": "paatchii",
"keyboard_name": "lyn",
"maintainer": "paatchii",
"bootloader": "atmel-dfu",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": false,
"mousekey": false,
"nkro": true
},
"matrix_pins": {
"direct": [
[ null, null, "F4", "F1", null],
[ "F7", "F6", "F5", "F0", "D2"]
]
},
"encoder": {
"enabled": true,
"rotary": [
{"pin_a": "D6", "pin_b": "D7"}
]
},
"split": {
"enabled": true,
"soft_serial_pin": "D0",
"matrix_pins": {
"right": {
"direct": [
[null, "F0", "B0", null, null],
["D5", "F1", "B1", "B2", "B3"]
]
}
},
"encoder": {
"right": {
"rotary": [
{"pin_a": "D7", "pin_b": "D6"}
]
}
}
},
"processor": "atmega32u4",
"usb": {
"device_version": "1.0.0",
"pid": "0x776C",
"vid": "0xADA6"
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},

{"matrix": [2, 1], "x": 7, "y": 0},
{"matrix": [2, 2], "x": 8, "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": [3, 0], "x": 6, "y": 1},
{"matrix": [3, 1], "x": 7, "y": 1},
{"matrix": [3, 2], "x": 8, "y": 1},
{"matrix": [3, 3], "x": 9, "y": 1},
{"matrix": [3, 4], "x": 10, "y": 1}
]
}
},
"rgblight": {
"led_count": 6,
"split": true,
"split_count": [3, 3],
"max_brightness": 128,
"animations": {
"rainbow_swirl": true,
"rainbow_mood": true
}
},
"ws2812": {
"pin": "D3"
},
"build": {
"lto": true
}
}
13 changes: 13 additions & 0 deletions keyboards/lyn/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include QMK_KEYBOARD_H

enum layers {
_OSU = 0,
_ADJ
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_OSU] = LAYOUT(
RGB_TOG, KC_NO, RGB_MOD, RGB_RMOD,
KC_A, KC_S, KC_D, KC_F, KC_BSPC, KC_SPC, KC_J, KC_K, KC_L, KC_SCLN
)
};
27 changes: 27 additions & 0 deletions keyboards/lyn/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# lyn

![lyn](imgur.com image replace me!)

*A short description of the keyboard/project*

* Keyboard Maintainer: [paatchii](https://github.com/paatchii)
* Hardware Supported: *The PCBs, controllers supported*
* Hardware Availability: *Links to where you can find this hardware*

Make example for this keyboard (after setting up your build environment):

make lyn:default

Flashing example for this keyboard:

make lyn:default:flash

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).

## Bootloader

Enter the bootloader in 3 ways:

* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
2 changes: 2 additions & 0 deletions keyboards/lyn/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file intentionally left blank
RGBLIGHT_ENABLE = yes

0 comments on commit c016765

Please sign in to comment.