Skip to content

Commit

Permalink
adding files for teahouse ayleen keyboard
Browse files Browse the repository at this point in the history
Teahosue Ayleen keyboard qmk files
32u4 mcu, with 2 rgb light
  • Loading branch information
frankBTHID committed Feb 21, 2023
1 parent 2133cc1 commit 286950f
Show file tree
Hide file tree
Showing 11 changed files with 411 additions and 0 deletions.
25 changes: 25 additions & 0 deletions keyboards/teahouse/ayleen/ayleen.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* Copyright 2020 CMM.Studio Freather
*
* 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/>.
*/

#include "ayleen.h"



// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/
//add caps lock light Change
//the caps lock rgb will be able to use all animations of qmk supports. but once click the caps lock, it will turn to white color warranty
//need to find a way to scan the keyboard status of caps lock, then add set the color to the rgb
32 changes: 32 additions & 0 deletions keyboards/teahouse/ayleen/ayleen.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright 2022 %YOUR_FULL_NAME% (@%YOUR_GITHUB_USERNAME%)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "quantum.h"

#define XXX KC_NO

#define LAYOUT( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K58, K57, K56, K55, K54, K53, K52, K51, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K68, K67, K66, K65, K64, K63, K62, K61, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K78, K77, K76, K75, K74, K73, K72, K71, \
K30, K31, K32, K33, K34, K35, K36, K37, K38, K88, K87, K86, K85, \
K40, K41, K42, K43, K44, K45, K46, K47, K48, K98, K97, K96, K82, \
KA0, KA1, KA2, KA3, KA4, KA5, KA8, K93, K92, K91 \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18 }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
{ K30, K31, K32, K33, K34, K35, K36, K37, K38 }, \
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
{ XXX, K51, K52, K53, K54, K55, K56, K57, K58 }, \
{ XXX, K61, K62, K63, K64, K65, K66, K67, K68 }, \
{ XXX, K71, K72, K73, K74, K75, K76, K77, K78 }, \
{ XXX, XXX, K82, XXX, XXX, K85, K86, K87, K88 }, \
{ XXX, K91, K92, K93, XXX, XXX, K96, K97, K98 }, \
{ KA0, KA1, KA2, KA3, KA4, KA5, XXX, KA8 }, \
}

// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/
21 changes: 21 additions & 0 deletions keyboards/teahouse/ayleen/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2022 %YOUR_FULL_NAME% (@%YOUR_GITHUB_USERNAME%)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once



#define RGB_DI_PIN C7
#ifdef RGB_DI_PIN
#define RGBLED_NUM 2
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
#define RGBLIGHT_LAYERS 2
#define RGBLIGHT_LAYER_BLINK
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
#endif

// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/
130 changes: 130 additions & 0 deletions keyboards/teahouse/ayleen/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"keyboard_name": "Ayleen",
"manufacturer": "Teahouse"
"url": "",
"maintainer": "Freather",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"diode_direction":"COL2ROW",
"freatures":{
"bootmagic": false,
"command":false,
"console":false,
"extrakey": true,
"mousekey":true,
"nkro":true
},
"matrix_pins":{
"rows":["F0", "F1", "F4", "F5", "D4", "B0", "B1", "B2", "F7","D5", "D3"],
"cols":[
"F6",
"D0",
"D1",
"D2",
"D6",
"D7",
"B4",
"B5",
"B6"
]
},
"usb":{
"vid": "0x5448",
"pid": "0x4141",
"device_version": "0.0.1"
},
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "K00 (F0,B7)", "x": 0, "y": 0 },
{ "label": "K01 (F0,D0)", "x": 1.25, "y": 0 },
{ "label": "K02 (F0,D1)", "x": 2.25, "y": 0 },
{ "label": "K03 (F0,D2)", "x": 3.25, "y": 0 },
{ "label": "K04 (F0,D4)", "x": 4.25, "y": 0 },
{ "label": "K05 (F0,B4)", "x": 5.5, "y": 0 },
{ "label": "K06 (F0,D6)", "x": 6.5, "y": 0 },
{ "label": "K07 (F0,D7)", "x": 7.5, "y": 0 },
{ "label": "K08 (F0,B5)", "x": 8.5, "y": 0 },
{ "label": "K58 (B1,B5)", "x": 9.5, "y": 0 },
{ "label": "K57 (B1,D7)", "x": 10.75, "y": 0 },
{ "label": "K56 (B1,D6)", "x": 11.75, "y": 0 },
{ "label": "K55 (B1,B4)", "x": 12.75, "y": 0 },
{ "label": "K54 (B1,D4)", "x": 13.75, "y": 0 },
{ "label": "K53 (B1,D2)", "x": 15.25, "y": 0 },
{ "label": "K52 (B1,D1)", "x": 16.25, "y": 0 },
{ "label": "K51 (B1,D0)", "x": 17.25, "y": 0 },
{ "label": "K10 (F1,B7)", "x": 0, "y": 1.5 },
{ "label": "K11 (F1,D0)", "x": 1, "y": 1.5 },
{ "label": "K12 (F1,D1)", "x": 2, "y": 1.5 },
{ "label": "K13 (F1,D2)", "x": 3, "y": 1.5 },
{ "label": "K14 (F1,D4)", "x": 4, "y": 1.5 },
{ "label": "K15 (F1,B4)", "x": 5, "y": 1.5 },
{ "label": "K16 (F1,D6)", "x": 6, "y": 1.5 },
{ "label": "K17 (F1,D7)", "x": 7, "y": 1.5 },
{ "label": "K18 (F1,B5)", "x": 8, "y": 1.5 },
{ "label": "K68 (B2,B5)", "x": 9, "y": 1.5 },
{ "label": "K67 (B2,D7)", "x": 10, "y": 1.5 },
{ "label": "K66 (B2,D6)", "x": 11, "y": 1.5 },
{ "label": "K65 (B2,B4)", "x": 12, "y": 1.5 },
{ "label": "K64 (B2,D4)", "x": 13, "y": 1.5, "w": 2 },
{ "label": "K63 (B2,D2)", "x": 15.25, "y": 1.5 },
{ "label": "K62 (B2,D1)", "x": 16.25, "y": 1.5 },
{ "label": "K61 (B2,D0)", "x": 17.25, "y": 1.5 },
{ "label": "K20 (F4,B7)", "x": 0, "y": 2.5, "w": 1.5 },
{ "label": "K21 (F4,D0)", "x": 1.5, "y": 2.5 },
{ "label": "K22 (F4,D1)", "x": 2.5, "y": 2.5 },
{ "label": "K23 (F4,D2)", "x": 3.5, "y": 2.5 },
{ "label": "K24 (F4,D4)", "x": 4.5, "y": 2.5 },
{ "label": "K25 (F4,B4)", "x": 5.5, "y": 2.5 },
{ "label": "K26 (F4,D6)", "x": 6.5, "y": 2.5 },
{ "label": "K27 (F4,D7)", "x": 7.5, "y": 2.5 },
{ "label": "K28 (F4,B5)", "x": 8.5, "y": 2.5 },
{ "label": "K78 (B3,B5)", "x": 9.5, "y": 2.5 },
{ "label": "K77 (B3,D7)", "x": 10.5, "y": 2.5 },
{ "label": "K76 (B3,D6)", "x": 11.5, "y": 2.5 },
{ "label": "K75 (B3,B4)", "x": 12.5, "y": 2.5 },
{ "label": "K74 (B3,D4)", "x": 13.5, "y": 2.5, "w": 1.5 },
{ "label": "K73 (B3,D2)", "x": 15.25, "y": 2.5 },
{ "label": "K72 (B3,D1)", "x": 16.25, "y": 2.5 },
{ "label": "K71 (B3,B7)", "x": 17.25, "y": 2.5 },
{ "label": "K30 (F5,B7)", "x": 0, "y": 3.5, "w": 1.75 },
{ "label": "K31 (F5,D0)", "x": 1.75, "y": 3.5 },
{ "label": "K32 (F5,D1)", "x": 2.75, "y": 3.5 },
{ "label": "K33 (F5,D2)", "x": 3.75, "y": 3.5 },
{ "label": "K34 (F5,D4)", "x": 4.75, "y": 3.5 },
{ "label": "K35 (F5,B4)", "x": 5.75, "y": 3.5 },
{ "label": "K36 (F5,D6)", "x": 6.75, "y": 3.5 },
{ "label": "K37 (F5,D7)", "x": 7.75, "y": 3.5 },
{ "label": "K38 (F5,B5)", "x": 8.75, "y": 3.5 },
{ "label": "K88 (D3,B5)", "x": 9.75, "y": 3.5 },
{ "label": "K87 (D3,D7)", "x": 10.75, "y": 3.5 },
{ "label": "K86 (D3,D6)", "x": 11.75, "y": 3.5 },
{ "label": "K85 (D3,B4)", "x": 12.75, "y": 3.5, "w": 2.25 },
{ "label": "K40 (F6,B7)", "x": 0, "y": 4.5, "w": 2.25 },
{ "label": "K41 (F6,B7)", "x": 3.25, "y": 4.5 },
{ "label": "K42 (F6,D1)", "x": 4.25, "y": 4.5 },
{ "label": "K43 (F6,D2)", "x": 5.25, "y": 4.5 },
{ "label": "K44 (F6,D4)", "x": 6.25, "y": 4.5 },
{ "label": "K45 (F6,B4)", "x": 7.25, "y": 4.5 },
{ "label": "K46 (F6,D6)", "x": 8.25, "y": 4.5 },
{ "label": "K47 (F6,D7)", "x": 9.25, "y": 4.5 },
{ "label": "K48 (F6,B5)", "x": 10.25, "y": 0 },
{ "label": "K98 (D5,B5)", "x": 11.25, "y": 4.5 },
{ "label": "K97 (D5,D7)", "x": 12.25, "y": 4.5 },
{ "label": "K96 (D5,D6)", "x": 13.25, "y": 4.5, "w": 2.75 },
{ "label": "K82 (D3,D1)", "x": 18.25, "y": 4.5 },
{ "label": "KA0 (F7,B7)", "x": 0, "y": 5.5, "w": 1.5 },
{ "label": "KA1 (F7,D0)", "x": 1.5, "y": 5.5 },
{ "label": "KA2 (F7,D1)", "x": 2.5, "y": 5.5, "w": 1.5 },
{ "label": "KA3 (F7,D2)", "x": 4, "y": 5.5, "w": 7 },
{ "label": "KA4 (F7,D7)", "x": 11, "y": 5.5, "w": 1.5 },
{ "label": "KA5 (F7,B4)", "x": 12.5, "y": 5.5, "w": 1 },
{ "label": "KA8 (F7,B5)", "x": 13.5, "y": 5.5, "w":1.5},
{ "label": "K93 (D5,D2)", "x": 15.25, "y": 5.5 },
{ "label": "K92 (D5,D1)", "x": 16.25, "y": 5.5 },
{ "label": "K91 (D5,B7)", "x": 17.25, "y": 5.5 }
]
}
}
,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
}
26 changes: 26 additions & 0 deletions keyboards/teahouse/ayleen/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright 2022 %YOUR_FULL_NAME% (@%YOUR_GITHUB_USERNAME%)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_PSCR, KC_SLCK, KC_PAUS,
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_BSPC, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, 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_BSLS, KC_DEL, KC_END, KC_PGDN,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),

[1] = LAYOUT(
KC_SPC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

};
76 changes: 76 additions & 0 deletions keyboards/teahouse/ayleen/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// Copyright 2022 %YOUR_FULL_NAME% (@%YOUR_GITHUB_USERNAME%)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_PSCR, KC_SCRL, KC_PAUS,
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_BSPC, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, 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_BSLS, KC_DEL, KC_END, KC_PGDN,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),

[1] = LAYOUT(
KC_SPC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT(
KC_SPC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[3] = LAYOUT(
KC_SPC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

};




const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS (
{0,1,HSV_BLUE}
);
const rgblight_segment_t PROGMEM my_scrolllock_layer[] = RGBLIGHT_LAYER_SEGMENTS (
{1,1,HSV_PURPLE}
);

const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
my_capslock_layer,
my_scrolllock_layer
);

void keyboard_post_init_user(void){
//enable th led my_rgb_layers
rgblight_sethsv_at(0,0,0,0);
rgblight_layers = my_rgb_layers;
}


bool led_update_user(led_t led_state) {

rgblight_set_layer_state(0, led_state.caps_lock);
rgblight_sethsv_at(0,0,0,0);





return true;
}
1 change: 1 addition & 0 deletions keyboards/teahouse/ayleen/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIA_ENABLE = yes
Loading

0 comments on commit 286950f

Please sign in to comment.