diff options
| author | mujimanic <64090325+mujimanic@users.noreply.github.com> | 2020-09-03 03:24:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-03 01:24:55 -0700 |
| commit | 9808bfaf2616afbe837873d962bc214be3705f90 (patch) | |
| tree | 3e08cea9d6b928c8aeaca10528ff494cea05bcca /keyboards/sneakbox | |
| parent | 2ab307a9402973fa7b4469d1d41d16d175d8785e (diff) | |
| download | qmk_firmware-9808bfaf2616afbe837873d962bc214be3705f90.tar.gz qmk_firmware-9808bfaf2616afbe837873d962bc214be3705f90.zip | |
[Keyboard] add Sneakbox Alice Clone (#9792)
* Initial Commit for alice clone pcb
Initial commit for alice clone pcb
* Update keyboards/sneakbox/aliceclone/config.h
Change to #pragma once. Thanks.
* Update keyboards/sneakbox/aliceclone/config.h
* Update keyboards/sneakbox/aliceclone/kb.c
* Rename kb.h to aliceclone.h
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
Got it. Thanks.
* Update keyboards/sneakbox/aliceclone/readme.md
* Update keyboards/sneakbox/aliceclone/readme.md
* Update keyboards/sneakbox/aliceclone/rules.mk
* Update keymap.c
* Rename kb.c to aliceclone.c
* Update keyboards/sneakbox/aliceclone/config.h
* Update keyboards/sneakbox/aliceclone/aliceclone.h
* Update keyboards/sneakbox/aliceclone/aliceclone.h
* Update keyboards/sneakbox/aliceclone/aliceclone.h
* Update keyboards/sneakbox/aliceclone/config.h
Got it. Thanks.
* Update keyboards/sneakbox/aliceclone/readme.md
Got it, the parent company folder needs to be added for make to find the source. Forgot that. Thanks.
* Update keyboards/sneakbox/aliceclone/config.h
* Info.json now reflects QMK configurator metadata
Previously, .json represented via metadata.
* Changed typo ) to } at end of line 9.
* Update keymap.c
Updated the spacing of the keymap layout to be more readable.
* Update keymap.c
Updated this VIA keymap for formatting to make it more readable.
* Update keymap.c
Updated formatting of the rotary encoder function
* Update keymap.c
* Update info.json
Corrected key layout and aligned for straight keymap, removed rotation references
* Update keymap.c
Adjusted formatting for key layout for readability
* Adjusted formatting for key layout for readability
Adjusted formatting for key layout for readability
* Added GPLv2 License header
* Added GPLv2 license header
* Update aliceclone.c
* Updated the LAYOUT map
LAYOUT map now resembles the actual keymap with correct KXY keys corresponding to switch position.
* GPLv2 license header added
* Update keyboards/sneakbox/aliceclone/config.h
* GPLv2 License Header added
* Updated License Header, Added keymap layers
Added total of 4 keymap layers, fixed keymap visual formatting. License header GPLv2
* Added extra layers, corrected layer references
* Updated formatting for keymap.c LAYOUT
* Update keyboards/sneakbox/aliceclone/aliceclone.h
Updated
* Update keyboards/sneakbox/aliceclone/info.json
Updated
* Update keyboards/sneakbox/aliceclone/info.json
Updated
* Update keyboards/sneakbox/aliceclone/info.json
Updated formatting
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
Reviewed and approved. Thanks.
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
Reviewed. Understood. Thanks.
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
Got it. Removed.
* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
Agreed. Thanks for the suggestion.
* Update keyboards/sneakbox/aliceclone/readme.md
* Update keyboards/sneakbox/aliceclone/readme.md
* Update keymap.c
tabs spaces formatting
* Update keymap.c
Tabs and spaces. Remove L3 L4
* syntax in enum layer_names
removed comma after "_FN"
* Update aliceclone.h
renamed LAYOUT_all to LAYOUT
* Update keymap.c
Updated keymap
* Update keymap.c
* Update keyboards/sneakbox/aliceclone/readme.md
* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
* Update keyboards/sneakbox/aliceclone/aliceclone.h
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
* Update keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
Diffstat (limited to 'keyboards/sneakbox')
| -rw-r--r-- | keyboards/sneakbox/aliceclone/aliceclone.c | 36 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/aliceclone.h | 39 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/config.h | 68 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/info.json | 18 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/keymaps/default/keymap.c | 55 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/keymaps/via/keymap.c | 70 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/sneakbox/aliceclone/rules.mk | 23 |
9 files changed, 325 insertions, 0 deletions
diff --git a/keyboards/sneakbox/aliceclone/aliceclone.c b/keyboards/sneakbox/aliceclone/aliceclone.c new file mode 100644 index 000000000..9457c641d --- /dev/null +++ b/keyboards/sneakbox/aliceclone/aliceclone.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Bryan Ong | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include "aliceclone.h" | ||
| 19 | |||
| 20 | void keyboard_pre_init_kb() { | ||
| 21 | setPinOutput(D7); | ||
| 22 | setPinOutput(D6); | ||
| 23 | setPinOutput(D4); | ||
| 24 | |||
| 25 | keyboard_pre_init_user(); | ||
| 26 | } | ||
| 27 | |||
| 28 | bool led_update_kb(led_t led_state) { | ||
| 29 | bool res = led_update_user(led_state); | ||
| 30 | if(res) { | ||
| 31 | writePin(D7, led_state.num_lock); | ||
| 32 | writePin(D6, led_state.caps_lock); | ||
| 33 | writePin(D4, led_state.scroll_lock); | ||
| 34 | } | ||
| 35 | return res; | ||
| 36 | } | ||
diff --git a/keyboards/sneakbox/aliceclone/aliceclone.h b/keyboards/sneakbox/aliceclone/aliceclone.h new file mode 100644 index 000000000..67ae7ce78 --- /dev/null +++ b/keyboards/sneakbox/aliceclone/aliceclone.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Bryan Ong | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT_all( \ | ||
| 23 | K020, K000, K001, K002, K003, K004, K005, K006, K010, K011, K012, K013, K014, K015, K016, K017, \ | ||
| 24 | K040, K021, K022, K023, K024, K025, K026, K030, K031, K032, K033, K034, K035, K036, K037, \ | ||
| 25 | K060, K041, K042, K043, K044, K045, K046, K050, K051, K052, K053, K054, K055, K056, \ | ||
| 26 | K061, K062, K063, K064, K065, K066, K070, K071, K072, K073, K074, K075, K076, K077, \ | ||
| 27 | K081, K083, K085, K086, K091, K093, K097 \ | ||
| 28 | ) { \ | ||
| 29 | { K000, K001, K002, K003, K004, K005, K006, KC_NO }, \ | ||
| 30 | { K010, K011, K012, K013, K014, K015, K016, K017 }, \ | ||
| 31 | { K020, K021, K022, K023, K024, K025, K026, KC_NO }, \ | ||
| 32 | { K030, K031, K032, K033, K034, K035, K036, K037 }, \ | ||
| 33 | { K040, K041, K042, K043, K044, K045, K046, KC_NO }, \ | ||
| 34 | { K050, K051, K052, K053, K054, K055, K056, KC_NO }, \ | ||
| 35 | { K060, K061, K062, K063, K064, K065, K066, KC_NO }, \ | ||
| 36 | { K070, K071, K072, K073, K074, K075, K076, K077 }, \ | ||
| 37 | { KC_NO, K081, KC_NO, K083, KC_NO, K085, K086, KC_NO }, \ | ||
| 38 | { KC_NO, K091, KC_NO, K093, KC_NO, KC_NO, KC_NO, K097 } \ | ||
| 39 | } | ||
diff --git a/keyboards/sneakbox/aliceclone/config.h b/keyboards/sneakbox/aliceclone/config.h new file mode 100644 index 000000000..492c5680b --- /dev/null +++ b/keyboards/sneakbox/aliceclone/config.h | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Bryan Ong | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x5342 | ||
| 24 | #define PRODUCT_ID 0x0001 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Sneakbox | ||
| 27 | #define PRODUCT AliceClone | ||
| 28 | |||
| 29 | /*Bootmagic boot button, set to topmost, leftmost key */ | ||
| 30 | #define BOOTMAGIC_LITE_ROW 2 | ||
| 31 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
| 32 | |||
| 33 | /* encoder */ | ||
| 34 | /* #define NUMBER_OF_ENCODERS 1 */ | ||
| 35 | #define ENCODERS_PAD_A { D3 } | ||
| 36 | #define ENCODERS_PAD_B { D2 } | ||
| 37 | #define ENCODER_RESOLUTION 1 | ||
| 38 | |||
| 39 | |||
| 40 | /* key matrix size */ | ||
| 41 | #define MATRIX_ROWS 10 | ||
| 42 | #define MATRIX_COLS 8 | ||
| 43 | |||
| 44 | /* key matrix pins */ | ||
| 45 | #define MATRIX_ROW_PINS { F1, E6, F4, B1, F5, B2, F6, B3, F7, B7 } | ||
| 46 | #define MATRIX_COL_PINS { F0, D0, C7, C6, B6, B5, B4, D1 } | ||
| 47 | #define UNUSED_PINS | ||
| 48 | |||
| 49 | /* COL2ROW or ROW2COL */ | ||
| 50 | #define DIODE_DIRECTION COL2ROW | ||
| 51 | |||
| 52 | /* Set 0 if debouncing isn't needed */ | ||
| 53 | #define DEBOUNCE 5 | ||
| 54 | |||
| 55 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 56 | #define LOCKING_SUPPORT_ENABLE | ||
| 57 | |||
| 58 | /* Locking resynchronize hack */ | ||
| 59 | #define LOCKING_RESYNC_ENABLE | ||
| 60 | |||
| 61 | |||
| 62 | #ifdef RGB_DI_PIN | ||
| 63 | #define RGBLIGHT_ANIMATIONS | ||
| 64 | #define RGBLED_NUM 0 | ||
| 65 | #define RGBLIGHT_HUE_STEP 8 | ||
| 66 | #define RGBLIGHT_SAT_STEP 8 | ||
| 67 | #define RGBLIGHT_VAL_STEP 8 | ||
| 68 | #endif | ||
diff --git a/keyboards/sneakbox/aliceclone/info.json b/keyboards/sneakbox/aliceclone/info.json new file mode 100644 index 000000000..332404b56 --- /dev/null +++ b/keyboards/sneakbox/aliceclone/info.json | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Alice Clone", | ||
| 3 | "url": "https://sneakbox.design", | ||
| 4 | "maintainer": "mujimanic", | ||
| 5 | "width": 18.25, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, {"x":1.25, "y":0}, {"x":2.25, "y":0}, {"x":3.25, "y":0}, {"x":4.25, "y":0}, {"x":5.25, "y":0}, {"x":6.25, "y":0}, {"x":7.25, "y":0}, {"x":10.25, "y":0}, {"x":11.25, "y":0}, {"x":12.25, "y":0}, {"x":13.25, "y":0}, {"x":14.25, "y":0}, {"x":15.25, "y":0}, {"x":16.25, "y":0}, {"x":17.25, "y":0}, | ||
| 11 | {"x":0, "y":1}, {"x":1.25, "y":1, "w":1.5}, {"x":2.75, "y":1}, {"x":3.75, "y":1}, {"x":4.75, "y":1}, {"x":5.75, "y":1}, {"x":6.75, "y":1}, {"x":9.75, "y":1}, {"x":10.75, "y":1}, {"x":11.75, "y":1}, {"x":12.75, "y":1}, {"x":13.75, "y":1}, {"x":14.75, "y":1}, {"x":15.75, "y":1}, {"x":16.75, "y":1, "w":1.5}, | ||
| 12 | {"x":0, "y":2}, {"x":1.25, "y":2, "w":1.75}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":12, "y":2}, {"x":13, "y":2}, {"x":14, "y":2}, {"x":15, "y":2}, {"x":16, "y":2, "w":2.25}, | ||
| 13 | {"x":1.25, "y":3, "w":2.25}, {"x":3.5, "y":3}, {"x":4.5, "y":3}, {"x":5.5, "y":3}, {"x":6.5, "y":3}, {"x":7.5, "y":3}, {"x":9.5, "y":3}, {"x":10.5, "y":3}, {"x":11.5, "y":3}, {"x":12.5, "y":3}, {"x":13.5, "y":3}, {"x":14.5, "y":3}, {"x":15.5, "y":3, "w":1.75}, {"x":17.25, "y":3}, | ||
| 14 | {"x":1.25, "y":4, "w":1.5}, {"x":4, "y":4, "w":1.5}, {"x":5.5, "y":4, "w":2.25}, {"x":7.75, "y":4}, {"x":9.75, "y":4, "w":2.75}, {"x":12.5, "y":4, "w":1.5}, {"x":16.75, "y":4, "w":1.5} | ||
| 15 | ] | ||
| 16 | } | ||
| 17 | } | ||
| 18 | } | ||
diff --git a/keyboards/sneakbox/aliceclone/keymaps/default/keymap.c b/keyboards/sneakbox/aliceclone/keymaps/default/keymap.c new file mode 100644 index 000000000..39eb44bc9 --- /dev/null +++ b/keyboards/sneakbox/aliceclone/keymaps/default/keymap.c | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Bryan Ong | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | // Defines names for use in layer keycodes and the keymap | ||
| 21 | enum layer_names { | ||
| 22 | _BASE, | ||
| 23 | _FN | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | [_BASE] = LAYOUT_all( | ||
| 28 | 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, KC_BSPC, | ||
| 29 | 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, | ||
| 30 | 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, | ||
| 31 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LGUI, | ||
| 32 | KC_LCTL, KC_LALT, KC_SPC, LT(_FN, KC_SPC), KC_SPC, KC_RALT, KC_RCTL), | ||
| 33 | [_FN] = LAYOUT_all( | ||
| 34 | KC_TRNS, KC_TRNS, 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, | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 36 | RESET, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, 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), | ||
| 39 | }; | ||
| 40 | |||
| 41 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 42 | if (index == 0) { /* First encoder */ | ||
| 43 | if (clockwise) { | ||
| 44 | tap_code(KC_DOWN); | ||
| 45 | } else { | ||
| 46 | tap_code(KC_UP); | ||
| 47 | } | ||
| 48 | } else if (index == 1) { /* Second encoder */ | ||
| 49 | if (clockwise) { | ||
| 50 | tap_code(KC_DOWN); | ||
| 51 | } else { | ||
| 52 | tap_code(KC_UP); | ||
| 53 | } | ||
| 54 | } | ||
| 55 | } | ||
diff --git a/keyboards/sneakbox/aliceclone/keymaps/via/keymap.c b/keyboards/sneakbox/aliceclone/keymaps/via/keymap.c new file mode 100644 index 000000000..333b8a216 --- /dev/null +++ b/keyboards/sneakbox/aliceclone/keymaps/via/keymap.c | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Bryan Ong | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | // Defines names for use in layer keycodes and the keymap | ||
| 21 | enum layer_names { | ||
| 22 | _BASE, | ||
| 23 | _FN, | ||
| 24 | _L3, | ||
| 25 | _L4 | ||
| 26 | }; | ||
| 27 | |||
| 28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 29 | |||
| 30 | [_BASE] = LAYOUT_all( | ||
| 31 | 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, KC_BSPC, | ||
| 32 | 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, | ||
| 33 | 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, | ||
| 34 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LGUI, | ||
| 35 | KC_LCTL, KC_LALT, KC_SPC, LT(_FN, KC_SPC), KC_SPC, KC_RALT, KC_RCTL), | ||
| 36 | [_FN] = LAYOUT_all( | ||
| 37 | KC_TRNS, KC_TRNS, 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, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | RESET, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | 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, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 42 | [_L3] = LAYOUT_all( | ||
| 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 48 | [_L4] = LAYOUT_all( | ||
| 49 | 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, | ||
| 50 | 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, | ||
| 51 | 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, | ||
| 52 | 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, | ||
| 53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 54 | }; | ||
| 55 | |||
| 56 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 57 | if (index == 0) { /* First encoder */ | ||
| 58 | if (clockwise) { | ||
| 59 | tap_code(KC_DOWN); | ||
| 60 | } else { | ||
| 61 | tap_code(KC_UP); | ||
| 62 | } | ||
| 63 | } else if (index == 1) { /* Second encoder */ | ||
| 64 | if (clockwise) { | ||
| 65 | tap_code(KC_DOWN); | ||
| 66 | } else { | ||
| 67 | tap_code(KC_UP); | ||
| 68 | } | ||
| 69 | } | ||
| 70 | } | ||
diff --git a/keyboards/sneakbox/aliceclone/keymaps/via/rules.mk b/keyboards/sneakbox/aliceclone/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/sneakbox/aliceclone/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/sneakbox/aliceclone/readme.md b/keyboards/sneakbox/aliceclone/readme.md new file mode 100644 index 000000000..86ffbd930 --- /dev/null +++ b/keyboards/sneakbox/aliceclone/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Sneakbox Alice Clone PCB | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | An Alice-compatible PCB with hotswap, and pushbutton rotary encoder socket placed at the top left key position. Firmware covers all USB-connector variants of the Sneakbox Alice Clone PCB (Top USB-C, Bottom USB-C) | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [mujimanic](https://github.com/mujimanic) | ||
| 8 | * Hardware Supported: Any Alice-layout case. | ||
| 9 | * Hardware Availability: [sneakbox.design](https://sneakbox.design/products/sneakbox-alice-hotswap-pcbs) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make sneakbox/aliceclone:default | ||
| 14 | |||
| 15 | 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/sneakbox/aliceclone/rules.mk b/keyboards/sneakbox/aliceclone/rules.mk new file mode 100644 index 000000000..fb12719ce --- /dev/null +++ b/keyboards/sneakbox/aliceclone/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 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 = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes | ||
