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 Fancytech Fancyalice66 #20647

Merged
merged 36 commits into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
425fb54
Add fancyalice66
adophoxia Apr 22, 2023
77909c5
Merge branch 'master' of https://github.com/qmk/qmk_firmware into fan…
adophoxia Apr 29, 2023
9d85570
Merge branch 'master' of https://github.com/qmk/qmk_firmware into fan…
adophoxia May 1, 2023
d185138
Touch-ups
adophoxia May 1, 2023
5fef5d3
Update copyright
adophoxia May 1, 2023
6f91542
Update `via` keymap.
adophoxia May 2, 2023
2638c88
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
5a56dd6
Removed extra spaces in matrix data
adophoxia May 2, 2023
7a588c5
Re-format `info.json`
adophoxia May 2, 2023
2d3fc11
Move `LED` matrix info to `info.json`
adophoxia May 2, 2023
6d25dd0
Merge branch 'master' of https://github.com/qmk/qmk_firmware into fan…
adophoxia May 2, 2023
9009629
Redo formatting
adophoxia May 2, 2023
68efa60
Merge branch 'fancytech-fancyalice66' of https://github.com/adophoxia…
adophoxia May 2, 2023
3f80d6d
Delete `RGB_DI_PIN` from `config.h`
adophoxia May 2, 2023
16454d7
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
f4d43e8
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
adeb35a
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
835f733
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
2c2404d
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
ef8760c
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
94bf82d
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
43dd386
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
16baef3
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
90c7b6d
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
f82ac30
Remove copy of `info.json` in `<kb>..c`
adophoxia May 2, 2023
4f67d41
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 2, 2023
7a92382
Merge branch 'master' of https://github.com/qmk/qmk_firmware into fan…
adophoxia May 5, 2023
ba4161b
Merge branch 'master' of https://github.com/qmk/qmk_firmware into fan…
adophoxia May 14, 2023
3a4c291
Merge branch 'fancytech-fancyalice66' of https://github.com/adophoxia…
adophoxia May 14, 2023
07361d2
Remove encoder callbacks,
adophoxia May 14, 2023
1eb6b19
Update keyboards/fancytech/fancyalice66/info.json
adophoxia May 14, 2023
9f881b5
Update keyboards/fancytech/fancyalice66/config.h
adophoxia May 14, 2023
acb1658
Update keyboards/fancytech/fancyalice66/fancyalice66.c
adophoxia May 14, 2023
6e5685a
Add missing ) from suggested commit on GitHub
adophoxia May 14, 2023
97e07e8
Merge branch 'master' of https://github.com/qmk/qmk_firmware into fan…
adophoxia May 16, 2023
214c0a4
Update keyboards/fancytech/fancyalice66/config.h
waffle87 May 18, 2023
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
12 changes: 12 additions & 0 deletions keyboards/fancytech/fancyalice66/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2022 chent7 (@chent7)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 82

adophoxia marked this conversation as resolved.
Show resolved Hide resolved
/* RGB Matrix effect */
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#endif
40 changes: 40 additions & 0 deletions keyboards/fancytech/fancyalice66/fancyalice66.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* Copyright 2023 Adophoxia <https://github.com/Adophoxia>
*
* 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:https://www.gnu.org/licenses/>.
*/

#include "quantum.h"

#ifdef RGB_MATRIX_ENABLE
bool rgb_matrix_indicators_kb(void) {
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
if (host_keyboard_led_state().caps_lock) {
rgb_matrix_set_color(43, 0xFF, 0xFF, 0xFF);
}
return true;
}
#endif

#if defined(ENCODER_ENABLE)
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) {
return false;
}
if (clockwise) {
tap_code_delay(KC_VOLU, 10);
} else {
tap_code_delay(KC_VOLD, 10);
}
return true;
}
#endif
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
247 changes: 247 additions & 0 deletions keyboards/fancytech/fancyalice66/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
{
"manufacturer": "Fancytech",
"keyboard_name": "FancyAlice66",
"maintainer": "Adophoxia",
"bootloader": "caterina",
"diode_direction": "ROW2COL",
"encoder": {
"rotary": [
{"pin_a": "F0", "pin_b": "F1", "resolution": 2}
]
},
"features": {
"bootmagic": true,
"encoder": false,
"extrakey": true,
"lto": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"matrix_pins": {
"cols": ["C6", "E6", "B5", "B4", "D7", "D6", "D4", "D5", "D3", "D2", "D1", "D0", "B7", "B3", "B2", "B1"],
"rows": ["F4", "F5", "F6", "F7", "C7"]
},
"processor": "atmega32u4",
"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,
"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_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
},
"driver": "WS2812",
"layout": [
{"flags": 1, "matrix": [0, 0], "x": 0, "y": 0},
{"flags": 4, "matrix": [0, 1], "x": 15, "y": 0},
{"flags": 4, "matrix": [0, 2], "x": 30, "y": 0},
{"flags": 4, "matrix": [0, 3], "x": 45, "y": 0},
{"flags": 4, "matrix": [0, 4], "x": 60, "y": 0},
{"flags": 4, "matrix": [0, 5], "x": 75, "y": 0},
{"flags": 4, "matrix": [0, 6], "x": 90, "y": 0},
{"flags": 4, "matrix": [0, 7], "x": 105, "y": 0},
{"flags": 4, "matrix": [0, 8], "x": 120, "y": 0},
{"flags": 4, "matrix": [0, 9], "x": 135, "y": 0},
{"flags": 4, "matrix": [0, 10], "x": 150, "y": 0},
{"flags": 4, "matrix": [0, 11], "x": 164, "y": 0},
{"flags": 4, "matrix": [0, 12], "x": 180, "y": 0},
{"flags": 1, "matrix": [0, 13], "x": 194, "y": 0},
{"flags": 4, "matrix": [0, 15], "x": 224, "y": 0},

{"flags": 1, "matrix": [1, 0], "x": 0, "y": 16},
{"flags": 4, "matrix": [1, 1], "x": 15, "y": 16},
{"flags": 4, "matrix": [1, 2], "x": 30, "y": 16},
{"flags": 4, "matrix": [1, 3], "x": 45, "y": 16},
{"flags": 4, "matrix": [1, 4], "x": 60, "y": 16},
{"flags": 4, "matrix": [1, 5], "x": 75, "y": 16},
{"flags": 4, "matrix": [1, 7], "x": 105, "y": 16},
{"flags": 4, "matrix": [1, 8], "x": 120, "y": 16},
{"flags": 4, "matrix": [1, 9], "x": 135, "y": 16},
{"flags": 4, "matrix": [1, 10], "x": 150, "y": 16},
{"flags": 4, "matrix": [1, 11], "x": 164, "y": 16},
{"flags": 4, "matrix": [1, 12], "x": 180, "y": 16},
{"flags": 4, "matrix": [1, 13], "x": 194, "y": 16},
{"flags": 4, "matrix": [1, 14], "x": 209, "y": 16},
{"flags": 4, "matrix": [1, 15], "x": 224, "y": 16},

{"flags": 1, "matrix": [2, 0], "x": 0, "y": 32},
{"flags": 4, "matrix": [2, 1], "x": 15, "y": 32},
{"flags": 4, "matrix": [2, 2], "x": 30, "y": 32},
{"flags": 4, "matrix": [2, 3], "x": 45, "y": 32},
{"flags": 4, "matrix": [2, 4], "x": 60, "y": 32},
{"flags": 4, "matrix": [2, 5], "x": 75, "y": 32},
{"flags": 4, "matrix": [2, 7], "x": 105, "y": 32},
{"flags": 4, "matrix": [2, 8], "x": 120, "y": 32},
{"flags": 4, "matrix": [2, 9], "x": 135, "y": 32},
{"flags": 4, "matrix": [2, 10], "x": 150, "y": 32},
{"flags": 4, "matrix": [2, 11], "x": 164, "y": 32},
{"flags": 4, "matrix": [2, 12], "x": 180, "y": 32},
{"flags": 1, "matrix": [2, 13], "x": 194, "y": 32},
{"flags": 4, "matrix": [2, 15], "x": 224, "y": 32},

{"flags": 1, "matrix": [3, 0], "x": 0, "y": 48},
{"flags": 4, "matrix": [3, 1], "x": 15, "y": 48},
{"flags": 4, "matrix": [3, 2], "x": 30, "y": 48},
{"flags": 4, "matrix": [3, 3], "x": 45, "y": 48},
{"flags": 4, "matrix": [3, 4], "x": 60, "y": 48},
{"flags": 4, "matrix": [3, 5], "x": 75, "y": 48},
{"flags": 4, "matrix": [3, 7], "x": 105, "y": 48},
{"flags": 4, "matrix": [3, 8], "x": 120, "y": 48},
{"flags": 4, "matrix": [3, 9], "x": 135, "y": 48},
{"flags": 4, "matrix": [3, 10], "x": 150, "y": 48},
{"flags": 4, "matrix": [3, 11], "x": 164, "y": 48},
{"flags": 4, "matrix": [3, 12], "x": 180, "y": 48},
{"flags": 4, "matrix": [3, 14], "x": 209, "y": 48},

{"flags": 1, "matrix": [4, 0], "x": 0, "y": 64},
{"flags": 1, "matrix": [4, 2], "x": 30, "y": 64},
{"flags": 4, "matrix": [4, 3], "x": 45, "y": 64},
{"flags": 1, "matrix": [4, 6], "x": 90, "y": 64},
{"flags": 4, "matrix": [4, 7], "x": 105, "y": 64},
{"flags": 1, "matrix": [4, 10], "x": 150, "y": 64},
{"flags": 4, "matrix": [4, 13], "x": 194, "y": 64},
{"flags": 4, "matrix": [4, 14], "x": 209, "y": 64},
{"flags": 4, "matrix": [4, 15], "x": 224, "y": 64},

{"flags": 2, "x": 37, "y": 64},
{"flags": 2, "x": 75, "y": 64},
{"flags": 2, "x": 112, "y": 64},
{"flags": 2, "x": 149, "y": 64},
{"flags": 2, "x": 187, "y": 64},
{"flags": 2, "x": 224, "y": 64},
{"flags": 2, "x": 224, "y": 32},
{"flags": 2, "x": 224, "y": 0},
{"flags": 2, "x": 187, "y": 0},
{"flags": 2, "x": 149, "y": 0},
{"flags": 2, "x": 112, "y": 0},
{"flags": 2, "x": 75, "y": 0},
{"flags": 2, "x": 37, "y": 0},
{"flags": 2, "x": 0, "y": 0},
{"flags": 2, "x": 0, "y": 32},
{"flags": 2, "x": 0, "y": 64}
],
"max_brightness": 200
},
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
"rgblight": {
"pin": "B0"
},
adophoxia marked this conversation as resolved.
Show resolved Hide resolved
"url": "https://www.aliexpress.com/item/1005004272392611.html",
"usb": {
"device_version": "0.0.1",
"force_nkro": true,
"pid": "0x3663",
"vid": "0xECED"
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 0.75, "y": 0.5},
{"matrix": [0, 1], "x": 1.75, "y": 0.5},
{"matrix": [0, 2], "x": 2.75, "y": 0.25},
{"matrix": [0, 3], "x": 3.75, "y": 0.5},
{"matrix": [0, 4], "x": 4.75, "y": 0.5},
{"matrix": [0, 5], "x": 5.75, "y": 0.5},
{"matrix": [0, 6], "x": 6.75, "y": 0.5},
{"matrix": [0, 7], "x": 8.75, "y": 0.5},
{"matrix": [0, 8], "x": 9.75, "y": 0.5},
{"matrix": [0, 9], "x": 10.75, "y": 0.5},
{"matrix": [0, 10], "x": 11.75, "y": 0.5},
{"matrix": [0, 11], "x": 12.75, "y": 0.25},
{"matrix": [0, 12], "x": 13.75, "y": 0.5},
{"matrix": [0, 13], "w": 2, "x": 14.75, "y": 0.5},
{"matrix": [0, 15], "x": 17, "y": 0},

{"matrix": [1, 0], "w": 1.5, "x": 0.5, "y": 1.5},
{"matrix": [1, 1], "x": 2, "y": 1.5},
{"matrix": [1, 2], "x": 3.25, "y": 1.5},
{"matrix": [1, 3], "x": 4.25, "y": 1.5},
{"matrix": [1, 4], "x": 5.25, "y": 1.5},
{"matrix": [1, 5], "x": 6.25, "y": 1.5},
{"matrix": [1, 7], "x": 8.5, "y": 1.5},
{"matrix": [1, 8], "x": 9.5, "y": 1.5},
{"matrix": [1, 9], "x": 10.5, "y": 1.5},
{"matrix": [1, 10], "x": 11.5, "y": 1.5},
{"matrix": [1, 11], "x": 12.5, "y": 1.5},
{"matrix": [1, 12], "x": 13.5, "y": 1.5},
{"matrix": [1, 13], "x": 14.5, "y": 1.5},
{"matrix": [1, 14], "w": 1.5, "x": 15.5, "y": 1.5},
{"matrix": [1, 15], "x": 17.25, "y": 1},

{"matrix": [2, 0], "w": 1.75, "x": 0.25, "y": 2.5},
{"matrix": [2, 1], "x": 2, "y": 2.5},
{"matrix": [2, 2], "x": 3.5, "y": 2.5},
{"matrix": [2, 3], "x": 4.5, "y": 2.5},
{"matrix": [2, 4], "x": 5.5, "y": 2.5},
{"matrix": [2, 5], "x": 6.5, "y": 2.5},
{"matrix": [2, 7], "x": 8.75, "y": 2.5},
{"matrix": [2, 8], "x": 9.75, "y": 2.5},
{"matrix": [2, 9], "x": 10.75, "y": 2.5},
{"matrix": [2, 10], "x": 11.75, "y": 2.5},
{"matrix": [2, 11], "x": 13, "y": 2.5},
{"matrix": [2, 12], "x": 14, "y": 2.5},
{"matrix": [2, 13], "w": 2.25, "x": 15, "y": 2.5},
{"matrix": [2, 15], "x": 17.5, "y": 2},

{"matrix": [3, 0], "w": 2.25, "x": 0, "y": 3.5},
{"matrix": [3, 1], "x": 2.25, "y": 3.5},
{"matrix": [3, 2], "x": 3.75, "y": 3.5},
{"matrix": [3, 3], "x": 4.75, "y": 3.5},
{"matrix": [3, 4], "x": 5.75, "y": 3.5},
{"matrix": [3, 5], "x": 6.75, "y": 3.5},
{"matrix": [3, 7], "x": 9, "y": 3.5},
{"matrix": [3, 8], "x": 10, "y": 3.5},
{"matrix": [3, 9], "x": 11, "y": 3.5},
{"matrix": [3, 10], "x": 12, "y": 3.5},
{"matrix": [3, 11], "x": 13.25, "y": 3.5},
{"matrix": [3, 12], "w": 1.75, "x": 14.25, "y": 3.5},
{"matrix": [3, 14], "x": 16.25, "y": 3.75},

{"matrix": [4, 0], "w": 1.5, "x": 0, "y": 4.5},
{"matrix": [4, 2], "w": 1.5, "x": 3.5, "y": 4.5},
{"matrix": [4, 3], "w": 2.25, "x": 5, "y": 4.5},
{"matrix": [4, 6], "x": 7.25, "y": 4.5},
{"matrix": [4, 7], "w": 2.75, "x": 8.75, "y": 4.5},
{"matrix": [4, 10], "w": 1.5, "x": 11.5, "y": 4.5},
{"matrix": [4, 13], "x": 15.25, "y": 4.75},
{"matrix": [4, 14], "x": 16.25, "y": 4.75},
{"matrix": [4, 15], "x": 17.25, "y": 4.75}
]
}
}
}
49 changes: 49 additions & 0 deletions keyboards/fancytech/fancyalice66/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* Copyright 2023 Adophoxia <https://github.com/Adophoxia>
*
* 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:https://www.gnu.org/licenses/>.
*/

#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

/*
* ┌───┬───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┬───────┐ ┌───┐
* │Esc│ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ │ 7 │ 8 │ 9 │ 0 │ - │ = │Backsp │ │Del│
* ┌┴───┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┘ ┌─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┴┐ └┬──┴┐
* │ Tab │ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │ [ │ ] │ \ │ │PgD│
* ┌┴─────┼───┼───┼───┼───┼───┤ └┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴──────┴┐ └┬──┴┐
* │ Caps │ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ; │ ' │ Enter │ │PgU│
* ┌┴──────┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ └─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───────┬─┬┴──┼───┘
* │ Shift │ Z │ X │ C │ V │ B │ │ N │ M │ , │ . │ / │ Shift │ │Up │
* ├─────┬──┴───┼───┴─┬─┴───┴─┬─┴─┐ ┌─┴───┴───┴┬──┴──┬┴───┴───────┬─┴─┼───┼───┐
* │ Ctl │ │ Alt │ │FN │ │ │ Alt │ │Lft│Dwn│Rgt│
* └─────┘ └─────┴───────┴───┘ └──────────┴─────┘ └───┴───┴───┘
*/

[0] = LAYOUT(
KC_ESC, 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_DEL,
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_PGUP,
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_PGDN,
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_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
),

[1] = LAYOUT(
KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, QK_BOOT, KC_PSCR,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAI, RGB_SAD, RGB_TOG, RGB_HUI,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI,
_______, _______, _______, _______, _______, RGB_MOD, _______, RGB_VAD, _______
)
};
Loading