diff options
| author | toraifu <braydon@kyaa.gg> | 2020-06-29 16:52:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-29 13:52:17 -0700 |
| commit | 09a53d1aa302a166cadbe7c75bc6f64a30e30fe3 (patch) | |
| tree | d1908c686f367e17edcdb35876814701a3f06540 /keyboards | |
| parent | 4f9e5d4cdef8ee0ab5a361407ccd8c55dcc186b7 (diff) | |
| download | qmk_firmware-09a53d1aa302a166cadbe7c75bc6f64a30e30fe3.tar.gz qmk_firmware-09a53d1aa302a166cadbe7c75bc6f64a30e30fe3.zip | |
[Keyboard] Fallacy (#9499)
* 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
Diffstat (limited to 'keyboards')
| -rwxr-xr-x | keyboards/fallacy/config.h | 69 | ||||
| -rwxr-xr-x | keyboards/fallacy/fallacy.c | 40 | ||||
| -rwxr-xr-x | keyboards/fallacy/fallacy.h | 54 | ||||
| -rwxr-xr-x | keyboards/fallacy/indicators.c | 61 | ||||
| -rwxr-xr-x | keyboards/fallacy/indicators.h | 23 | ||||
| -rw-r--r-- | keyboards/fallacy/info.json | 147 | ||||
| -rwxr-xr-x | keyboards/fallacy/keymaps/default/keymap.c | 34 | ||||
| -rwxr-xr-x | keyboards/fallacy/keymaps/default_split_bs/keymap.c | 33 | ||||
| -rwxr-xr-x | keyboards/fallacy/keymaps/via/keymap.c | 47 | ||||
| -rw-r--r-- | keyboards/fallacy/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/fallacy/readme.md | 21 | ||||
| -rwxr-xr-x | keyboards/fallacy/rules.mk | 29 |
12 files changed, 559 insertions, 0 deletions
diff --git a/keyboards/fallacy/config.h b/keyboards/fallacy/config.h new file mode 100755 index 000000000..6904b419e --- /dev/null +++ b/keyboards/fallacy/config.h | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter | ||
| 21 | */ | ||
| 22 | #define VENDOR_ID 0xBF00 | ||
| 23 | #define PRODUCT_ID 0xBFFA | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER SheuBox | ||
| 26 | #define PRODUCT Fallacy | ||
| 27 | #define DESCRIPTION Aluminum Alice Clone | ||
| 28 | |||
| 29 | /* key matrix size | ||
| 30 | */ | ||
| 31 | #define MATRIX_ROWS 5 | ||
| 32 | #define MATRIX_COLS 15 | ||
| 33 | |||
| 34 | /* key matrix pins | ||
| 35 | */ | ||
| 36 | #define MATRIX_ROW_PINS { B1, B2, B3, C6, C7 } | ||
| 37 | #define MATRIX_COL_PINS { E6, F0, F1, F4, F5, F6, F7, B6, B5, B4, D7, D6, D4, D5, D3 } | ||
| 38 | #define UNUSED_PINS { B0, B7 } | ||
| 39 | |||
| 40 | /* COL2ROW or ROW2COL | ||
| 41 | */ | ||
| 42 | #define DIODE_DIRECTION COL2ROW | ||
| 43 | |||
| 44 | /* IS31FL3731 driver address (for status LEDs) | ||
| 45 | * Using the default defines here, but using a custom implementation | ||
| 46 | */ | ||
| 47 | #define LED_DRIVER_ADDR_1 0b1110100 | ||
| 48 | #define LED_DRIVER_COUNT 1 | ||
| 49 | #define LED_DRIVER_LED_COUNT 3 | ||
| 50 | |||
| 51 | /* Set 0 if debouncing isn't needed | ||
| 52 | */ | ||
| 53 | #define DEBOUNCE 5 | ||
| 54 | |||
| 55 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap | ||
| 56 | */ | ||
| 57 | #define LOCKING_SUPPORT_ENABLE | ||
| 58 | |||
| 59 | /* Locking resynchronize hack | ||
| 60 | */ | ||
| 61 | #define LOCKING_RESYNC_ENABLE | ||
| 62 | |||
| 63 | /* prevent stuck modifiers | ||
| 64 | */ | ||
| 65 | #define PREVENT_STUCK_MODIFIERS | ||
| 66 | |||
| 67 | #define RGB_DI_PIN D2 | ||
| 68 | #define RGBLIGHT_ANIMATIONS | ||
| 69 | #define RGBLED_NUM 14 | ||
diff --git a/keyboards/fallacy/fallacy.c b/keyboards/fallacy/fallacy.c new file mode 100755 index 000000000..103860f0f --- /dev/null +++ b/keyboards/fallacy/fallacy.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "fallacy.h" | ||
| 18 | #include "indicators.h" | ||
| 19 | |||
| 20 | void matrix_init_kb(void) { | ||
| 21 | init_fallacy_leds(); | ||
| 22 | matrix_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | void matrix_scan_kb(void) { | ||
| 26 | update_fallacy_leds(); | ||
| 27 | matrix_scan_user(); | ||
| 28 | } | ||
| 29 | |||
| 30 | /* update LED driver with usb led_state | ||
| 31 | */ | ||
| 32 | bool led_update_kb(led_t led_state) { | ||
| 33 | bool res = led_update_user(led_state); | ||
| 34 | if(res) { | ||
| 35 | set_fallacy_led(2, led_state.caps_lock); /* caps */ | ||
| 36 | set_fallacy_led(1, led_state.num_lock); /* num lock */ | ||
| 37 | set_fallacy_led(0, led_state.scroll_lock); /* scroll lock */ | ||
| 38 | } | ||
| 39 | return res; | ||
| 40 | } | ||
diff --git a/keyboards/fallacy/fallacy.h b/keyboards/fallacy/fallacy.h new file mode 100755 index 000000000..46480e668 --- /dev/null +++ b/keyboards/fallacy/fallacy.h | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | /* All keys in matrix active: | ||
| 21 | * - Split Backspace | ||
| 22 | * - Split Right Shift | ||
| 23 | */ | ||
| 24 | #define LAYOUT_all( \ | ||
| 25 | K100, K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \ | ||
| 26 | K200, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
| 27 | K300, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
| 28 | K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \ | ||
| 29 | K401, K403, K405, K406, K408, K410, K414 \ | ||
| 30 | ) { \ | ||
| 31 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \ | ||
| 32 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | ||
| 33 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO, K214 }, \ | ||
| 34 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \ | ||
| 35 | { KC_NO, K401, KC_NO, K403, KC_NO, K405, K406, KC_NO, K408, KC_NO, K410, KC_NO, KC_NO, KC_NO, K414 } \ | ||
| 36 | } | ||
| 37 | |||
| 38 | /* Disable position 013 and 314 for: | ||
| 39 | * - Full size Backspace | ||
| 40 | * - Full size Right Shift | ||
| 41 | */ | ||
| 42 | #define LAYOUT_default( \ | ||
| 43 | K100, K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, \ | ||
| 44 | K200, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \ | ||
| 45 | K300, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, \ | ||
| 46 | K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, \ | ||
| 47 | K401, K403, K405, K406, K408, K410, K414 \ | ||
| 48 | ) { \ | ||
| 49 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, KC_NO, K014 }, \ | ||
| 50 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \ | ||
| 51 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, KC_NO, K214 }, \ | ||
| 52 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314 }, \ | ||
| 53 | { KC_NO, K401, KC_NO, K403, KC_NO, K405, K406, KC_NO, K408, KC_NO, K410, KC_NO, KC_NO, KC_NO, K414 } \ | ||
| 54 | } | ||
diff --git a/keyboards/fallacy/indicators.c b/keyboards/fallacy/indicators.c new file mode 100755 index 000000000..deda752fa --- /dev/null +++ b/keyboards/fallacy/indicators.c | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "indicators.h" | ||
| 18 | #include "drivers/issi/is31fl3731-simple.h" | ||
| 19 | #include "i2c_master.h" | ||
| 20 | |||
| 21 | /* Set up IS31FL3731 for use in powering indicator LEDs. Absolutely overkill for this job but it was already in the design. | ||
| 22 | * init IS31FL3731 and i2c | ||
| 23 | */ | ||
| 24 | void init_fallacy_leds(void) { | ||
| 25 | i2c_init(); | ||
| 26 | IS31FL3731_init(LED_DRIVER_ADDR_1); | ||
| 27 | |||
| 28 | for (int i = 0; i < LED_DRIVER_LED_COUNT; i++) { | ||
| 29 | IS31FL3731_set_led_control_register(i, true); | ||
| 30 | } | ||
| 31 | |||
| 32 | IS31FL3731_update_led_control_registers(LED_DRIVER_ADDR_1, 0); | ||
| 33 | } | ||
| 34 | |||
| 35 | |||
| 36 | /* update the buffer | ||
| 37 | */ | ||
| 38 | void update_fallacy_leds(void) { | ||
| 39 | IS31FL3731_update_pwm_buffers(LED_DRIVER_ADDR_1, 0); | ||
| 40 | } | ||
| 41 | |||
| 42 | |||
| 43 | /* wrapper to actually set the LED PWM | ||
| 44 | */ | ||
| 45 | void set_fallacy_led(int index, bool state) { | ||
| 46 | if (state) { | ||
| 47 | IS31FL3731_set_value(index, 128); | ||
| 48 | } | ||
| 49 | else { | ||
| 50 | IS31FL3731_set_value(index, 0); | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
| 54 | |||
| 55 | /* define LED matrix | ||
| 56 | */ | ||
| 57 | const is31_led g_is31_leds[LED_DRIVER_LED_COUNT] = { | ||
| 58 | {0, C1_1}, | ||
| 59 | {0, C2_1}, | ||
| 60 | {0, C3_1}, | ||
| 61 | }; | ||
diff --git a/keyboards/fallacy/indicators.h b/keyboards/fallacy/indicators.h new file mode 100755 index 000000000..6de374cda --- /dev/null +++ b/keyboards/fallacy/indicators.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | |||
| 21 | void init_fallacy_leds(void); | ||
| 22 | void update_fallacy_leds(void); | ||
| 23 | void set_fallacy_led(int index, bool state); | ||
diff --git a/keyboards/fallacy/info.json b/keyboards/fallacy/info.json new file mode 100644 index 000000000..fe30e1bfe --- /dev/null +++ b/keyboards/fallacy/info.json | |||
| @@ -0,0 +1,147 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Fallacy", | ||
| 3 | "maintainer": "Toraifu", | ||
| 4 | "width": 18.75, | ||
| 5 | "height": 5, | ||
| 6 | "layouts": { | ||
| 7 | "LAYOUT_all": { | ||
| 8 | "layout": [ | ||
| 9 | {"label":"Esc", "x":0.5, "y":0}, | ||
| 10 | {"label":"~", "x":1.75, "y":0}, | ||
| 11 | {"label":"!", "x":2.75, "y":0}, | ||
| 12 | {"label":"@", "x":3.75, "y":0}, | ||
| 13 | {"label":"#", "x":4.75, "y":0}, | ||
| 14 | {"label":"$", "x":5.75, "y":0}, | ||
| 15 | {"label":"%", "x":6.75, "y":0}, | ||
| 16 | {"label":"^", "x":7.75, "y":0}, | ||
| 17 | {"label":"&", "x":10, "y":0}, | ||
| 18 | {"label":"*", "x":11, "y":0}, | ||
| 19 | {"label":"(", "x":12, "y":0}, | ||
| 20 | {"label":")", "x":13, "y":0}, | ||
| 21 | {"label":"_", "x":14, "y":0}, | ||
| 22 | {"label":"+", "x":15, "y":0}, | ||
| 23 | {"label":"|", "x":16, "y":0}, | ||
| 24 | {"label":"~", "x":17, "y":0}, | ||
| 25 | {"label":"PgUp", "x":0.25, "y":1}, | ||
| 26 | {"label":"Tab", "x":1.5, "y":1, "w":1.5}, | ||
| 27 | {"label":"Q", "x":3, "y":1}, | ||
| 28 | {"label":"W", "x":4, "y":1}, | ||
| 29 | {"label":"E", "x":5, "y":1}, | ||
| 30 | {"label":"R", "x":6, "y":1}, | ||
| 31 | {"label":"T", "x":7, "y":1}, | ||
| 32 | {"label":"Y", "x":9.75, "y":1}, | ||
| 33 | {"label":"U", "x":10.75, "y":1}, | ||
| 34 | {"label":"I", "x":11.75, "y":1}, | ||
| 35 | {"label":"O", "x":12.75, "y":1}, | ||
| 36 | {"label":"P", "x":13.75, "y":1}, | ||
| 37 | {"label":"{", "x":14.75, "y":1}, | ||
| 38 | {"label":"}", "x":15.75, "y":1}, | ||
| 39 | {"label":"Backspace", "x":16.75, "y":1, "w":1.5}, | ||
| 40 | {"label":"PgDn", "x":0, "y":2}, | ||
| 41 | {"label":"Control", "x":1.25, "y":2, "w":1.75}, | ||
| 42 | {"label":"A", "x":3, "y":2}, | ||
| 43 | {"label":"S", "x":4, "y":2}, | ||
| 44 | {"label":"D", "x":5, "y":2}, | ||
| 45 | {"label":"F", "x":6, "y":2}, | ||
| 46 | {"label":"G", "x":7, "y":2}, | ||
| 47 | {"label":"H", "x":10.25, "y":2}, | ||
| 48 | {"label":"J", "x":11.25, "y":2}, | ||
| 49 | {"label":"K", "x":12.25, "y":2}, | ||
| 50 | {"label":"L", "x":13.25, "y":2}, | ||
| 51 | {"label":":", "x":14.25, "y":2}, | ||
| 52 | {"label":"\"", "x":15.25, "y":2}, | ||
| 53 | {"label":"Enter", "x":16.25, "y":2, "w":2.25}, | ||
| 54 | {"label":"Shift", "x":1, "y":3, "w":2.25}, | ||
| 55 | {"label":"Z", "x":3.25, "y":3}, | ||
| 56 | {"label":"X", "x":4.25, "y":3}, | ||
| 57 | {"label":"C", "x":5.25, "y":3}, | ||
| 58 | {"label":"V", "x":6.25, "y":3}, | ||
| 59 | {"label":"B", "x":7.25, "y":3}, | ||
| 60 | {"label":"B", "x":10, "y":3}, | ||
| 61 | {"label":"N", "x":11, "y":3}, | ||
| 62 | {"label":"M", "x":12, "y":3}, | ||
| 63 | {"label":"<", "x":13, "y":3}, | ||
| 64 | {"label":">", "x":14, "y":3}, | ||
| 65 | {"label":"?", "x":15, "y":3}, | ||
| 66 | {"label":"Shift", "x":16, "y":3, "w":1.75}, | ||
| 67 | {"label":"Fn1", "x":17.75, "y":3}, | ||
| 68 | {"label":"Ctrl", "x":1, "y":4, "w":1.5}, | ||
| 69 | {"label":"Alt", "x":4, "y":4, "w":1.5}, | ||
| 70 | {"label":"LSpace", "x":5.5, "y":4, "w":2.25}, | ||
| 71 | {"label":"Fn2", "x":7.75, "y":4}, | ||
| 72 | {"label":"RSpace", "x":10, "y":4, "w":2.75}, | ||
| 73 | {"label":"RAlt", "x":12.75, "y":4, "w":1.5}, | ||
| 74 | {"label":"RCtl", "x":17, "y":4, "w":1.5} | ||
| 75 | ] | ||
| 76 | }, | ||
| 77 | "LAYOUT_default": { | ||
| 78 | "layout": [ | ||
| 79 | {"label":"Esc", "x":0.5, "y":0}, | ||
| 80 | {"label":"~", "x":1.75, "y":0}, | ||
| 81 | {"label":"!", "x":2.75, "y":0}, | ||
| 82 | {"label":"@", "x":3.75, "y":0}, | ||
| 83 | {"label":"#", "x":4.75, "y":0}, | ||
| 84 | {"label":"$", "x":5.75, "y":0}, | ||
| 85 | {"label":"%", "x":6.75, "y":0}, | ||
| 86 | {"label":"^", "x":7.75, "y":0}, | ||
| 87 | {"label":"&", "x":10, "y":0}, | ||
| 88 | {"label":"*", "x":11, "y":0}, | ||
| 89 | {"label":"(", "x":12, "y":0}, | ||
| 90 | {"label":")", "x":13, "y":0}, | ||
| 91 | {"label":"_", "x":14, "y":0}, | ||
| 92 | {"label":"+", "x":15, "y":0}, | ||
| 93 | {"label":"Backspace", "x":16, "y":0, "w":2}, | ||
| 94 | {"label":"PgUp", "x":0.25, "y":1}, | ||
| 95 | {"label":"Tab", "x":1.5, "y":1, "w":1.5}, | ||
| 96 | {"label":"Q", "x":3, "y":1}, | ||
| 97 | {"label":"W", "x":4, "y":1}, | ||
| 98 | {"label":"E", "x":5, "y":1}, | ||
| 99 | {"label":"R", "x":6, "y":1}, | ||
| 100 | {"label":"T", "x":7, "y":1}, | ||
| 101 | {"label":"Y", "x":9.75, "y":1}, | ||
| 102 | {"label":"U", "x":10.75, "y":1}, | ||
| 103 | {"label":"I", "x":11.75, "y":1}, | ||
| 104 | {"label":"O", "x":12.75, "y":1}, | ||
| 105 | {"label":"P", "x":13.75, "y":1}, | ||
| 106 | {"label":"{", "x":14.75, "y":1}, | ||
| 107 | {"label":"}", "x":15.75, "y":1}, | ||
| 108 | {"label":"Backspace", "x":16.75, "y":1, "w":1.5}, | ||
| 109 | {"label":"PgDn", "x":0, "y":2}, | ||
| 110 | {"label":"Control", "x":1.25, "y":2, "w":1.75}, | ||
| 111 | {"label":"A", "x":3, "y":2}, | ||
| 112 | {"label":"S", "x":4, "y":2}, | ||
| 113 | {"label":"D", "x":5, "y":2}, | ||
| 114 | {"label":"F", "x":6, "y":2}, | ||
| 115 | {"label":"G", "x":7, "y":2}, | ||
| 116 | {"label":"H", "x":10.25, "y":2}, | ||
| 117 | {"label":"J", "x":11.25, "y":2}, | ||
| 118 | {"label":"K", "x":12.25, "y":2}, | ||
| 119 | {"label":"L", "x":13.25, "y":2}, | ||
| 120 | {"label":":", "x":14.25, "y":2}, | ||
| 121 | {"label":"\"", "x":15.25, "y":2}, | ||
| 122 | {"label":"Enter", "x":16.25, "y":2, "w":2.25}, | ||
| 123 | {"label":"Shift", "x":1, "y":3, "w":2.25}, | ||
| 124 | {"label":"Z", "x":3.25, "y":3}, | ||
| 125 | {"label":"X", "x":4.25, "y":3}, | ||
| 126 | {"label":"C", "x":5.25, "y":3}, | ||
| 127 | {"label":"V", "x":6.25, "y":3}, | ||
| 128 | {"label":"B", "x":7.25, "y":3}, | ||
| 129 | {"label":"B", "x":10, "y":3}, | ||
| 130 | {"label":"N", "x":11, "y":3}, | ||
| 131 | {"label":"M", "x":12, "y":3}, | ||
| 132 | {"label":"<", "x":13, "y":3}, | ||
| 133 | {"label":">", "x":14, "y":3}, | ||
| 134 | {"label":"?", "x":15, "y":3}, | ||
| 135 | {"label":"Shift", "x":16, "y":3, "w":1.75}, | ||
| 136 | {"label":"Fn1", "x":17.75, "y":3}, | ||
| 137 | {"label":"Ctrl", "x":1, "y":4, "w":1.5}, | ||
| 138 | {"label":"Alt", "x":4, "y":4, "w":1.5}, | ||
| 139 | {"label":"LSpace", "x":5.5, "y":4, "w":2.25}, | ||
| 140 | {"label":"Fn2", "x":7.75, "y":4}, | ||
| 141 | {"label":"RSpace", "x":10, "y":4, "w":2.75}, | ||
| 142 | {"label":"RAlt", "x":12.75, "y":4, "w":1.5}, | ||
| 143 | {"label":"RCtl", "x":17, "y":4, "w":1.5} | ||
| 144 | ] | ||
| 145 | } | ||
| 146 | } | ||
| 147 | } | ||
diff --git a/keyboards/fallacy/keymaps/default/keymap.c b/keyboards/fallacy/keymaps/default/keymap.c new file mode 100755 index 000000000..d0e32c42c --- /dev/null +++ b/keyboards/fallacy/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | [0] = LAYOUT_default( | ||
| 21 | KC_ESC, 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, | ||
| 22 | 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, | ||
| 23 | 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, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_RGUI, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 25 | KC_LCTL, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL), | ||
| 26 | |||
| 27 | [1] = LAYOUT_default( | ||
| 28 | KC_TRNS, RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F11, KC_F12, KC_TRNS, KC_TRNS, | ||
| 29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 33 | |||
| 34 | }; | ||
diff --git a/keyboards/fallacy/keymaps/default_split_bs/keymap.c b/keyboards/fallacy/keymaps/default_split_bs/keymap.c new file mode 100755 index 000000000..957e876c4 --- /dev/null +++ b/keyboards/fallacy/keymaps/default_split_bs/keymap.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | [0] = LAYOUT_all( | ||
| 21 | KC_ESC, 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_BSLS, KC_BSPC, | ||
| 22 | 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, | ||
| 23 | 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, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_RGUI, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 25 | KC_LCTL, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL), | ||
| 26 | |||
| 27 | [1] = LAYOUT_all( | ||
| 28 | KC_TRNS, RESET, 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_TRNS, KC_TRNS, | ||
| 29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 33 | }; | ||
diff --git a/keyboards/fallacy/keymaps/via/keymap.c b/keyboards/fallacy/keymaps/via/keymap.c new file mode 100755 index 000000000..d6a7b0744 --- /dev/null +++ b/keyboards/fallacy/keymaps/via/keymap.c | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* Copyright 2020 B. Fletcher (toraifu) <typefast@kyaa.gg> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | [0] = LAYOUT_all( | ||
| 21 | KC_ESC, 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_BSLS, KC_BSPC, | ||
| 22 | 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, | ||
| 23 | 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, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_RGUI, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 25 | KC_LCTL, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL), | ||
| 26 | |||
| 27 | [1] = LAYOUT_all( | ||
| 28 | KC_TRNS, RESET, 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_TRNS, KC_TRNS, | ||
| 29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 33 | |||
| 34 | [2] = LAYOUT_all( | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 40 | |||
| 41 | [3] = LAYOUT_all( | ||
| 42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 47 | }; | ||
diff --git a/keyboards/fallacy/keymaps/via/rules.mk b/keyboards/fallacy/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/fallacy/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/fallacy/readme.md b/keyboards/fallacy/readme.md new file mode 100644 index 000000000..e4a74de52 --- /dev/null +++ b/keyboards/fallacy/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Fallacy | ||
| 2 |  | ||
| 3 | |||
| 4 | A PCB designed for the Fallacy custom keyboard, but fully compatible with the Alice and its clones. | ||
| 5 | |||
| 6 | * Keyboard Maintainer: [toraifu](https://github.com/toraifu) | ||
| 7 | * Hardware: [geekhack](https://geekhack.org/index.php?topic=103728.0) | ||
| 8 | * Other general info: [fallacy](https://github.com/toraifu/fallacy) | ||
| 9 | |||
| 10 | ### Features: | ||
| 11 | * VIA support | ||
| 12 | * As minimal as possible design (no in-switch LEDs) | ||
| 13 | * Support for the use of fourteen WS2812B RGB-LEDs for keyboards for which underglow is desired. | ||
| 14 | * Misc features such as ESD protection, indicator LEDs, etc. | ||
| 15 | |||
| 16 | |||
| 17 | Make example for this keyboard (after setting up your build environment): | ||
| 18 | |||
| 19 | make fallacy:default | ||
| 20 | |||
| 21 | 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). | ||
diff --git a/keyboards/fallacy/rules.mk b/keyboards/fallacy/rules.mk new file mode 100755 index 000000000..1ab94f774 --- /dev/null +++ b/keyboards/fallacy/rules.mk | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | MIDI_ENABLE = no # MIDI support | ||
| 22 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 23 | AUDIO_ENABLE = no # Audio output | ||
| 24 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 25 | |||
| 26 | # project specific files | ||
| 27 | SRC += indicators.c \ | ||
| 28 | drivers/issi/is31fl3731-simple.c | ||
| 29 | QUANTUM_LIB_SRC += i2c_master.c | ||
