forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Fallacy * Accept suggestions * fixed build error, renamed readme, added keymap specific config to force enable NKRO * remove FORCE_NKRO on VIA keymap, fix header * fix info.json to accurately reflect keymap * remove additional empty layers from default_split_bs keymap * Accept keymap formatting suggestions * remove empty config files at keymap level
- Loading branch information
Showing
12 changed files
with
559 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* Copyright 2020 B. Fletcher (toraifu) <[email protected]> | ||
* | ||
* 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 0xBF00 | ||
#define PRODUCT_ID 0xBFFA | ||
#define DEVICE_VER 0x0001 | ||
#define MANUFACTURER SheuBox | ||
#define PRODUCT Fallacy | ||
#define DESCRIPTION Aluminum Alice Clone | ||
|
||
/* key matrix size | ||
*/ | ||
#define MATRIX_ROWS 5 | ||
#define MATRIX_COLS 15 | ||
|
||
/* key matrix pins | ||
*/ | ||
#define MATRIX_ROW_PINS { B1, B2, B3, C6, C7 } | ||
#define MATRIX_COL_PINS { E6, F0, F1, F4, F5, F6, F7, B6, B5, B4, D7, D6, D4, D5, D3 } | ||
#define UNUSED_PINS { B0, B7 } | ||
|
||
/* COL2ROW or ROW2COL | ||
*/ | ||
#define DIODE_DIRECTION COL2ROW | ||
|
||
/* IS31FL3731 driver address (for status LEDs) | ||
* Using the default defines here, but using a custom implementation | ||
*/ | ||
#define LED_DRIVER_ADDR_1 0b1110100 | ||
#define LED_DRIVER_COUNT 1 | ||
#define LED_DRIVER_LED_COUNT 3 | ||
|
||
/* Set 0 if debouncing isn't needed | ||
*/ | ||
#define DEBOUNCE 5 | ||
|
||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap | ||
*/ | ||
#define LOCKING_SUPPORT_ENABLE | ||
|
||
/* Locking resynchronize hack | ||
*/ | ||
#define LOCKING_RESYNC_ENABLE | ||
|
||
/* prevent stuck modifiers | ||
*/ | ||
#define PREVENT_STUCK_MODIFIERS | ||
|
||
#define RGB_DI_PIN D2 | ||
#define RGBLIGHT_ANIMATIONS | ||
#define RGBLED_NUM 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* Copyright 2020 B. Fletcher (toraifu) <[email protected]> | ||
* | ||
* 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 "fallacy.h" | ||
#include "indicators.h" | ||
|
||
void matrix_init_kb(void) { | ||
init_fallacy_leds(); | ||
matrix_init_user(); | ||
} | ||
|
||
void matrix_scan_kb(void) { | ||
update_fallacy_leds(); | ||
matrix_scan_user(); | ||
} | ||
|
||
/* update LED driver with usb led_state | ||
*/ | ||
bool led_update_kb(led_t led_state) { | ||
bool res = led_update_user(led_state); | ||
if(res) { | ||
set_fallacy_led(2, led_state.caps_lock); /* caps */ | ||
set_fallacy_led(1, led_state.num_lock); /* num lock */ | ||
set_fallacy_led(0, led_state.scroll_lock); /* scroll lock */ | ||
} | ||
return res; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* Copyright 2020 B. Fletcher (toraifu) <[email protected]> | ||
* | ||
* 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" | ||
|
||
/* All keys in matrix active: | ||
* - Split Backspace | ||
* - Split Right Shift | ||
*/ | ||
#define LAYOUT_all( \ | ||
K100, K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \ | ||
K200, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
K300, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \ | ||
K401, K403, K405, K406, K408, K410, K414 \ | ||
) { \ | ||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \ | ||
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | ||
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO, K214 }, \ | ||
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \ | ||
{ KC_NO, K401, KC_NO, K403, KC_NO, K405, K406, KC_NO, K408, KC_NO, K410, KC_NO, KC_NO, KC_NO, K414 } \ | ||
} | ||
|
||
/* Disable position 013 and 314 for: | ||
* - Full size Backspace | ||
* - Full size Right Shift | ||
*/ | ||
#define LAYOUT_default( \ | ||
K100, K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, \ | ||
K200, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
K300, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \ | ||
K401, K403, K405, K406, K408, K410, K414 \ | ||
) { \ | ||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, KC_NO, K014 }, \ | ||
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | ||
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO, K214 }, \ | ||
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \ | ||
{ KC_NO, K401, KC_NO, K403, KC_NO, K405, K406, KC_NO, K408, KC_NO, K410, KC_NO, KC_NO, KC_NO, K414 } \ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* Copyright 2020 B. Fletcher (toraifu) <[email protected]> | ||
* | ||
* 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 "indicators.h" | ||
#include "drivers/issi/is31fl3731-simple.h" | ||
#include "i2c_master.h" | ||
|
||
/* Set up IS31FL3731 for use in powering indicator LEDs. Absolutely overkill for this job but it was already in the design. | ||
* init IS31FL3731 and i2c | ||
*/ | ||
void init_fallacy_leds(void) { | ||
i2c_init(); | ||
IS31FL3731_init(LED_DRIVER_ADDR_1); | ||
|
||
for (int i = 0; i < LED_DRIVER_LED_COUNT; i++) { | ||
IS31FL3731_set_led_control_register(i, true); | ||
} | ||
|
||
IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_1, 0); | ||
} | ||
|
||
|
||
/* update the buffer | ||
*/ | ||
void update_fallacy_leds(void) { | ||
IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_1, 0); | ||
} | ||
|
||
|
||
/* wrapper to actually set the LED PWM | ||
*/ | ||
void set_fallacy_led(int index, bool state) { | ||
if (state) { | ||
IS31FL3731_set_value(index, 128); | ||
} | ||
else { | ||
IS31FL3731_set_value(index, 0); | ||
} | ||
} | ||
|
||
|
||
/* define LED matrix | ||
*/ | ||
const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = { | ||
{0, C1_1}, | ||
{0, C2_1}, | ||
{0, C3_1}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* Copyright 2020 B. Fletcher (toraifu) <[email protected]> | ||
* | ||
* 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" | ||
|
||
|
||
void init_fallacy_leds(void); | ||
void update_fallacy_leds(void); | ||
void set_fallacy_led(int index, bool state); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
{ | ||
"keyboard_name": "Fallacy", | ||
"maintainer": "Toraifu", | ||
"width": 18.75, | ||
"height": 5, | ||
"layouts": { | ||
"LAYOUT_all": { | ||
"layout": [ | ||
{"label":"Esc", "x":0.5, "y":0}, | ||
{"label":"~", "x":1.75, "y":0}, | ||
{"label":"!", "x":2.75, "y":0}, | ||
{"label":"@", "x":3.75, "y":0}, | ||
{"label":"#", "x":4.75, "y":0}, | ||
{"label":"$", "x":5.75, "y":0}, | ||
{"label":"%", "x":6.75, "y":0}, | ||
{"label":"^", "x":7.75, "y":0}, | ||
{"label":"&", "x":10, "y":0}, | ||
{"label":"*", "x":11, "y":0}, | ||
{"label":"(", "x":12, "y":0}, | ||
{"label":")", "x":13, "y":0}, | ||
{"label":"_", "x":14, "y":0}, | ||
{"label":"+", "x":15, "y":0}, | ||
{"label":"|", "x":16, "y":0}, | ||
{"label":"~", "x":17, "y":0}, | ||
{"label":"PgUp", "x":0.25, "y":1}, | ||
{"label":"Tab", "x":1.5, "y":1, "w":1.5}, | ||
{"label":"Q", "x":3, "y":1}, | ||
{"label":"W", "x":4, "y":1}, | ||
{"label":"E", "x":5, "y":1}, | ||
{"label":"R", "x":6, "y":1}, | ||
{"label":"T", "x":7, "y":1}, | ||
{"label":"Y", "x":9.75, "y":1}, | ||
{"label":"U", "x":10.75, "y":1}, | ||
{"label":"I", "x":11.75, "y":1}, | ||
{"label":"O", "x":12.75, "y":1}, | ||
{"label":"P", "x":13.75, "y":1}, | ||
{"label":"{", "x":14.75, "y":1}, | ||
{"label":"}", "x":15.75, "y":1}, | ||
{"label":"Backspace", "x":16.75, "y":1, "w":1.5}, | ||
{"label":"PgDn", "x":0, "y":2}, | ||
{"label":"Control", "x":1.25, "y":2, "w":1.75}, | ||
{"label":"A", "x":3, "y":2}, | ||
{"label":"S", "x":4, "y":2}, | ||
{"label":"D", "x":5, "y":2}, | ||
{"label":"F", "x":6, "y":2}, | ||
{"label":"G", "x":7, "y":2}, | ||
{"label":"H", "x":10.25, "y":2}, | ||
{"label":"J", "x":11.25, "y":2}, | ||
{"label":"K", "x":12.25, "y":2}, | ||
{"label":"L", "x":13.25, "y":2}, | ||
{"label":":", "x":14.25, "y":2}, | ||
{"label":"\"", "x":15.25, "y":2}, | ||
{"label":"Enter", "x":16.25, "y":2, "w":2.25}, | ||
{"label":"Shift", "x":1, "y":3, "w":2.25}, | ||
{"label":"Z", "x":3.25, "y":3}, | ||
{"label":"X", "x":4.25, "y":3}, | ||
{"label":"C", "x":5.25, "y":3}, | ||
{"label":"V", "x":6.25, "y":3}, | ||
{"label":"B", "x":7.25, "y":3}, | ||
{"label":"B", "x":10, "y":3}, | ||
{"label":"N", "x":11, "y":3}, | ||
{"label":"M", "x":12, "y":3}, | ||
{"label":"<", "x":13, "y":3}, | ||
{"label":">", "x":14, "y":3}, | ||
{"label":"?", "x":15, "y":3}, | ||
{"label":"Shift", "x":16, "y":3, "w":1.75}, | ||
{"label":"Fn1", "x":17.75, "y":3}, | ||
{"label":"Ctrl", "x":1, "y":4, "w":1.5}, | ||
{"label":"Alt", "x":4, "y":4, "w":1.5}, | ||
{"label":"LSpace", "x":5.5, "y":4, "w":2.25}, | ||
{"label":"Fn2", "x":7.75, "y":4}, | ||
{"label":"RSpace", "x":10, "y":4, "w":2.75}, | ||
{"label":"RAlt", "x":12.75, "y":4, "w":1.5}, | ||
{"label":"RCtl", "x":17, "y":4, "w":1.5} | ||
] | ||
}, | ||
"LAYOUT_default": { | ||
"layout": [ | ||
{"label":"Esc", "x":0.5, "y":0}, | ||
{"label":"~", "x":1.75, "y":0}, | ||
{"label":"!", "x":2.75, "y":0}, | ||
{"label":"@", "x":3.75, "y":0}, | ||
{"label":"#", "x":4.75, "y":0}, | ||
{"label":"$", "x":5.75, "y":0}, | ||
{"label":"%", "x":6.75, "y":0}, | ||
{"label":"^", "x":7.75, "y":0}, | ||
{"label":"&", "x":10, "y":0}, | ||
{"label":"*", "x":11, "y":0}, | ||
{"label":"(", "x":12, "y":0}, | ||
{"label":")", "x":13, "y":0}, | ||
{"label":"_", "x":14, "y":0}, | ||
{"label":"+", "x":15, "y":0}, | ||
{"label":"Backspace", "x":16, "y":0, "w":2}, | ||
{"label":"PgUp", "x":0.25, "y":1}, | ||
{"label":"Tab", "x":1.5, "y":1, "w":1.5}, | ||
{"label":"Q", "x":3, "y":1}, | ||
{"label":"W", "x":4, "y":1}, | ||
{"label":"E", "x":5, "y":1}, | ||
{"label":"R", "x":6, "y":1}, | ||
{"label":"T", "x":7, "y":1}, | ||
{"label":"Y", "x":9.75, "y":1}, | ||
{"label":"U", "x":10.75, "y":1}, | ||
{"label":"I", "x":11.75, "y":1}, | ||
{"label":"O", "x":12.75, "y":1}, | ||
{"label":"P", "x":13.75, "y":1}, | ||
{"label":"{", "x":14.75, "y":1}, | ||
{"label":"}", "x":15.75, "y":1}, | ||
{"label":"Backspace", "x":16.75, "y":1, "w":1.5}, | ||
{"label":"PgDn", "x":0, "y":2}, | ||
{"label":"Control", "x":1.25, "y":2, "w":1.75}, | ||
{"label":"A", "x":3, "y":2}, | ||
{"label":"S", "x":4, "y":2}, | ||
{"label":"D", "x":5, "y":2}, | ||
{"label":"F", "x":6, "y":2}, | ||
{"label":"G", "x":7, "y":2}, | ||
{"label":"H", "x":10.25, "y":2}, | ||
{"label":"J", "x":11.25, "y":2}, | ||
{"label":"K", "x":12.25, "y":2}, | ||
{"label":"L", "x":13.25, "y":2}, | ||
{"label":":", "x":14.25, "y":2}, | ||
{"label":"\"", "x":15.25, "y":2}, | ||
{"label":"Enter", "x":16.25, "y":2, "w":2.25}, | ||
{"label":"Shift", "x":1, "y":3, "w":2.25}, | ||
{"label":"Z", "x":3.25, "y":3}, | ||
{"label":"X", "x":4.25, "y":3}, | ||
{"label":"C", "x":5.25, "y":3}, | ||
{"label":"V", "x":6.25, "y":3}, | ||
{"label":"B", "x":7.25, "y":3}, | ||
{"label":"B", "x":10, "y":3}, | ||
{"label":"N", "x":11, "y":3}, | ||
{"label":"M", "x":12, "y":3}, | ||
{"label":"<", "x":13, "y":3}, | ||
{"label":">", "x":14, "y":3}, | ||
{"label":"?", "x":15, "y":3}, | ||
{"label":"Shift", "x":16, "y":3, "w":1.75}, | ||
{"label":"Fn1", "x":17.75, "y":3}, | ||
{"label":"Ctrl", "x":1, "y":4, "w":1.5}, | ||
{"label":"Alt", "x":4, "y":4, "w":1.5}, | ||
{"label":"LSpace", "x":5.5, "y":4, "w":2.25}, | ||
{"label":"Fn2", "x":7.75, "y":4}, | ||
{"label":"RSpace", "x":10, "y":4, "w":2.75}, | ||
{"label":"RAlt", "x":12.75, "y":4, "w":1.5}, | ||
{"label":"RCtl", "x":17, "y":4, "w":1.5} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.