Add support for lazydesigners/apricot (#256)

* Add support for lazydesigners/apricot

Add support for lazydesigners/apricot

* Update info.json

* Update rules.mk
This commit is contained in:
Jacky@LAZYDESIGNERS 2022-10-07 13:27:39 +08:00 committed by GitHub
parent c47fc0bca9
commit ca7b29a063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 354 additions and 0 deletions

View File

@ -0,0 +1 @@
#include "apricot.h"

View File

@ -0,0 +1,32 @@
/*
Copyright 2022 LAZYDESIGNERS
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
#include "quantum.h"
#define LAYOUT( \
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, \
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, \
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, \
K300, K301, K302, K304, K305, K307, K308, K309 \
) { \
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009 }, \
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109 }, \
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209 }, \
{ K300, K301, K302, KC_NO, K304, K305, KC_NO, K307, K308, K309 } \
}

View File

@ -0,0 +1,58 @@
/*
Copyright 2022 LAZYDESIGNERS
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
#include "config_common.h"
/* USB Device descriptor parameter */
#define VENDOR_ID 0x4C44 // "LD"
#define PRODUCT_ID 0x0031
#define DEVICE_VER 0x0001
#define MANUFACTURER LAZYDESIGNERS
#define PRODUCT apricot
/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 10
#define MATRIX_ROW_PINS { B7, B2, D5, F7 }
#define MATRIX_COL_PINS { E6, D3, C7, D4, D6, D7, B4, B5, B6, C6 }
#define DIODE_DIRECTION COL2ROW
/* RBG underglow */
#define RGB_DI_PIN B3
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
/* #define RGBLIGHT_EFFECT_CHRISTMAS */
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
/* #define RGBLIGHT_EFFECT_KNIGHT */
/* #define RGBLIGHT_EFFECT_RGB_TEST */
/* #define RGBLIGHT_EFFECT_ALTERNATING */
/* #define RGBLIGHT_EFFECT_TWINKLE */
#define RGBLIGHT_SLEEP
#define RGBLED_NUM 4
/* #define RGBLIGHT_HUE_STEP 8 */
/* #define RGBLIGHT_SAT_STEP 8 */
/* #define RGBLIGHT_VAL_STEP 8 */
#endif

View File

@ -0,0 +1,49 @@
{
"keyboard_name": "apricot",
"url": "http://lazydesigners.cn",
"maintainer": "LAZYDESIGNERS",
"layouts": {
"LAYOUT": {
"layout": [
{"label":"K000", "x":0, "y":0},
{"label":"K001", "x":1, "y":0},
{"label":"K002", "x":2, "y":0},
{"label":"K003", "x":3, "y":0},
{"label":"K004", "x":4, "y":0},
{"label":"K005", "x":5, "y":0},
{"label":"K006", "x":6, "y":0},
{"label":"K007", "x":7, "y":0},
{"label":"K008", "x":8, "y":0},
{"label":"K009", "x":9, "y":0, "w":1.25},
{"label":"K100", "x":0, "y":1},
{"label":"K101", "x":1, "y":1},
{"label":"K102", "x":2, "y":1},
{"label":"K103", "x":3, "y":1},
{"label":"K104", "x":4, "y":1},
{"label":"K105", "x":5, "y":1},
{"label":"K106", "x":6, "y":1},
{"label":"K107", "x":7, "y":1},
{"label":"K108", "x":8, "y":1},
{"label":"K109", "x":9, "y":1, "w":1.25},
{"label":"K200", "x":0, "y":2},
{"label":"K201", "x":1, "y":2},
{"label":"K202", "x":2, "y":2},
{"label":"K203", "x":3, "y":2},
{"label":"K204", "x":4, "y":2},
{"label":"K205", "x":5, "y":2},
{"label":"K206", "x":6, "y":2},
{"label":"K207", "x":7, "y":2},
{"label":"K208", "x":8, "y":2},
{"label":"K209", "x":9, "y":2, "w":1.25},
{"label":"K300", "x":0, "y":3},
{"label":"K301", "x":1, "y":3},
{"label":"K302", "x":2, "y":3},
{"label":"K304", "x":3, "y":3, "w":2.25},
{"label":"K305", "x":5.25, "y":3, "w":2},
{"label":"K307", "x":7.25, "y":3},
{"label":"K308", "x":8.25, "y":3},
{"label":"K309", "x":9.25, "y":3}
]
}
}
}

View File

@ -0,0 +1,42 @@
/* Copyright 2022 LAZYDESIGNERS
*
* 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 QMK_KEYBOARD_H
#define LT1_SPC LT(1, KC_SPC)
// How long (in milliseconds) to wait between animation steps for each of the "Snake" animations
const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {250, 200, 150};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_UP, MO(2),
KC_LCTL, KC_LALT, KC_LGUI, LT1_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC,
KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_COMM, KC_NO, KC_NO,
KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, KC_NO
),
[2] = LAYOUT(
RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
),
};

View File

@ -0,0 +1,42 @@
/* Copyright 2022 LAZYDESIGNERS
*
* 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 QMK_KEYBOARD_H
#define LT1_SPC LT(1, KC_SPC)
// How long (in milliseconds) to wait between animation steps for each of the "Snake" animations
const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {250, 200, 150};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_UP, MO(2),
KC_LCTL, KC_LALT, KC_LGUI, LT1_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC,
KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_COMM, KC_NO, KC_NO,
KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, KC_NO
),
[2] = LAYOUT(
RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
),
};

View File

@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes

View File

@ -0,0 +1,9 @@
#define VIAL_KEYBOARD_UID {0x2A, 0xF8, 0xE3, 0xFB, 0x33, 0xBF, 0x8F, 0xBA}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 9 }
#define DYNAMIC_KEYMAP_LAYER_COUNT 4
#define LAYER_STATE_8BIT
// #define VIAL_COMBO_ENTRIES 8
// #define VIAL_TAP_DANCE_ENTRIES 8

View File

@ -0,0 +1,42 @@
/* Copyright 2022 LAZYDESIGNERS
*
* 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 QMK_KEYBOARD_H
#define LT1_SPC LT(1, KC_SPC)
// How long (in milliseconds) to wait between animation steps for each of the "Snake" animations
const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {250, 200, 150};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_UP, MO(2),
KC_LCTL, KC_LALT, KC_LGUI, LT1_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
KC_INS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC,
KC_NO, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_COMM, KC_NO, KC_NO,
KC_VOLD, KC_MUTE, KC_VOLU, KC_TRNS, KC_TRNS, RGB_TOG, RGB_MOD, KC_NO
),
[2] = LAYOUT(
RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
),
};

View File

@ -0,0 +1,7 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
VIAL_ENABLE = yes
#QMK_SETTINGS = no
KEY_OVERRIDE_ENABLE = no
#COMBO_ENABLE = no
#TAP_DANCE_ENABLE = no

View File

@ -0,0 +1,31 @@
{
"name": "LAZYDESIGNERS apricot",
"vendorId": "0x4C44",
"productId": "0x0031",
"lighting": "qmk_rgblight",
"matrix": {"rows": 4, "cols": 10},
"layouts": {
"labels": [
["Bottom Row", "Split", "Longbar"],
["Layout", "Staggered", "Ortho"]
],
"keymap": [
[
"0,0\n\n\n1,0","0,1\n\n\n1,0","0,2\n\n\n1,0","0,3\n\n\n1,0","0,4\n\n\n1,0","0,5\n\n\n1,0","0,6\n\n\n1,0","0,7\n\n\n1,0","0,8\n\n\n1,0",{"w":1.25},"0,9\n\n\n1,0",
"0,0\n\n\n1,1","0,1\n\n\n1,1","0,2\n\n\n1,1","0,3\n\n\n1,1","0,4\n\n\n1,1","0,5\n\n\n1,1","0,6\n\n\n1,1","0,7\n\n\n1,1","0,8\n\n\n1,1",{"w":1.25},"0,9\n\n\n1,1"
],
[
{"w":1.25},"1,0\n\n\n1,0","1,1\n\n\n1,0","1,2\n\n\n1,0","1,3\n\n\n1,0","1,4\n\n\n1,0","1,5\n\n\n1,0","1,6\n\n\n1,0","1,7\n\n\n1,0","1,8\n\n\n1,0","1,9\n\n\n1,0",
{"w":1},"1,0\n\n\n1,1","1,1\n\n\n1,1","1,2\n\n\n1,1","1,3\n\n\n1,1","1,4\n\n\n1,1","1,5\n\n\n1,1","1,6\n\n\n1,1","1,7\n\n\n1,1","1,8\n\n\n1,1",{"w":1.25},"1,9\n\n\n1,1"
],
[
{"w":1.75},"2,0\n\n\n1,0","2,1\n\n\n1,0","2,2\n\n\n1,0","2,3\n\n\n1,0","2,4\n\n\n1,0","2,5\n\n\n1,0","2,6\n\n\n1,0","2,7\n\n\n1,0",{"w":1.5},"2,9\n\n\n1,0",
{"w":1},"2,0\n\n\n1,1","2,1\n\n\n1,1","2,2\n\n\n1,1","2,3\n\n\n1,1","2,4\n\n\n1,1","2,5\n\n\n1,1","2,6\n\n\n1,1","2,7\n\n\n1,1","2,8\n\n\n1,1",{"w":1.25},"2,9\n\n\n1,1"
],
["3,0\n\n\n0,0","3,1\n\n\n0,0","3,2\n\n\n0,0",{"w":2.25},"3,4\n\n\n0,0",{"w":2},"3,5\n\n\n0,0","3,7\n\n\n0,0","3,8\n\n\n0,0","3,9\n\n\n0,0",
"3,0\n\n\n0,1","3,1\n\n\n0,1",{"w":6.25},"3,4\n\n\n0,1","3,8\n\n\n0,1","3,9\n\n\n0,1"
]
]
}
}

View File

@ -0,0 +1,21 @@
# apricot
![apricot](http://lazydesigners.cn/wp-content/uploads/2022/07/ALl.48.jpg)
A qaz keyboard designed and produced by [LAZYDESIGNERS](http://lazydesigners.cn).
* Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit)
* Hardware Supported: apricot
* Hardware Availability: Check [LAZYDESIGNERS's homepage.](http://lazydesigners.cn)
Make example for this keyboard (after setting up your build environment):
make lazydesigners/apricot:default
Flashing example for this keyboard:
make lazydesigners/apricot:default:flash
**Reset Key:** To enter the bootloader, either push the RESET button on the PCB or the RESET button on the FN layer.
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).

View File

@ -0,0 +1,18 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
BOOTLOADER = atmel-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output