From 9808bfaf2616afbe837873d962bc214be3705f90 Mon Sep 17 00:00:00 2001
From: mujimanic <64090325+mujimanic@users.noreply.github.com>
Date: Thu, 3 Sep 2020 03:24:55 -0500
Subject: [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
---
keyboards/sneakbox/aliceclone/aliceclone.c | 36 +++++++++++
keyboards/sneakbox/aliceclone/aliceclone.h | 39 ++++++++++++
keyboards/sneakbox/aliceclone/config.h | 68 +++++++++++++++++++++
keyboards/sneakbox/aliceclone/info.json | 18 ++++++
.../sneakbox/aliceclone/keymaps/default/keymap.c | 55 +++++++++++++++++
keyboards/sneakbox/aliceclone/keymaps/via/keymap.c | 70 ++++++++++++++++++++++
keyboards/sneakbox/aliceclone/keymaps/via/rules.mk | 1 +
keyboards/sneakbox/aliceclone/readme.md | 15 +++++
keyboards/sneakbox/aliceclone/rules.mk | 23 +++++++
9 files changed, 325 insertions(+)
create mode 100644 keyboards/sneakbox/aliceclone/aliceclone.c
create mode 100644 keyboards/sneakbox/aliceclone/aliceclone.h
create mode 100644 keyboards/sneakbox/aliceclone/config.h
create mode 100644 keyboards/sneakbox/aliceclone/info.json
create mode 100644 keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
create mode 100644 keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
create mode 100644 keyboards/sneakbox/aliceclone/keymaps/via/rules.mk
create mode 100644 keyboards/sneakbox/aliceclone/readme.md
create mode 100644 keyboards/sneakbox/aliceclone/rules.mk
(limited to 'keyboards')
diff --git a/keyboards/sneakbox/aliceclone/aliceclone.c b/keyboards/sneakbox/aliceclone/aliceclone.c
new file mode 100644
index 0000000000..9457c641df
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/aliceclone.c
@@ -0,0 +1,36 @@
+/*
+Copyright 2020 Bryan Ong
+
+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 .
+*/
+
+#include "aliceclone.h"
+
+void keyboard_pre_init_kb() {
+ setPinOutput(D7);
+ setPinOutput(D6);
+ setPinOutput(D4);
+
+ keyboard_pre_init_user();
+}
+
+bool led_update_kb(led_t led_state) {
+ bool res = led_update_user(led_state);
+ if(res) {
+ writePin(D7, led_state.num_lock);
+ writePin(D6, led_state.caps_lock);
+ writePin(D4, led_state.scroll_lock);
+ }
+ return res;
+}
diff --git a/keyboards/sneakbox/aliceclone/aliceclone.h b/keyboards/sneakbox/aliceclone/aliceclone.h
new file mode 100644
index 0000000000..67ae7ce784
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/aliceclone.h
@@ -0,0 +1,39 @@
+/*
+Copyright 2020 Bryan Ong
+
+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 .
+*/
+
+#pragma once
+
+#include "quantum.h"
+
+#define LAYOUT_all( \
+ K020, K000, K001, K002, K003, K004, K005, K006, K010, K011, K012, K013, K014, K015, K016, K017, \
+ K040, K021, K022, K023, K024, K025, K026, K030, K031, K032, K033, K034, K035, K036, K037, \
+ K060, K041, K042, K043, K044, K045, K046, K050, K051, K052, K053, K054, K055, K056, \
+ K061, K062, K063, K064, K065, K066, K070, K071, K072, K073, K074, K075, K076, K077, \
+ K081, K083, K085, K086, K091, K093, K097 \
+) { \
+ { K000, K001, K002, K003, K004, K005, K006, KC_NO }, \
+ { K010, K011, K012, K013, K014, K015, K016, K017 }, \
+ { K020, K021, K022, K023, K024, K025, K026, KC_NO }, \
+ { K030, K031, K032, K033, K034, K035, K036, K037 }, \
+ { K040, K041, K042, K043, K044, K045, K046, KC_NO }, \
+ { K050, K051, K052, K053, K054, K055, K056, KC_NO }, \
+ { K060, K061, K062, K063, K064, K065, K066, KC_NO }, \
+ { K070, K071, K072, K073, K074, K075, K076, K077 }, \
+ { KC_NO, K081, KC_NO, K083, KC_NO, K085, K086, KC_NO }, \
+ { KC_NO, K091, KC_NO, K093, KC_NO, KC_NO, KC_NO, K097 } \
+}
diff --git a/keyboards/sneakbox/aliceclone/config.h b/keyboards/sneakbox/aliceclone/config.h
new file mode 100644
index 0000000000..492c5680b8
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/config.h
@@ -0,0 +1,68 @@
+/*
+Copyright 2020 Bryan Ong
+
+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 .
+*/
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x5342
+#define PRODUCT_ID 0x0001
+#define DEVICE_VER 0x0001
+#define MANUFACTURER Sneakbox
+#define PRODUCT AliceClone
+
+/*Bootmagic boot button, set to topmost, leftmost key */
+#define BOOTMAGIC_LITE_ROW 2
+#define BOOTMAGIC_LITE_COLUMN 0
+
+/* encoder */
+/* #define NUMBER_OF_ENCODERS 1 */
+#define ENCODERS_PAD_A { D3 }
+#define ENCODERS_PAD_B { D2 }
+#define ENCODER_RESOLUTION 1
+
+
+/* key matrix size */
+#define MATRIX_ROWS 10
+#define MATRIX_COLS 8
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { F1, E6, F4, B1, F5, B2, F6, B3, F7, B7 }
+#define MATRIX_COL_PINS { F0, D0, C7, C6, B6, B5, B4, D1 }
+#define UNUSED_PINS
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* 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
+
+
+#ifdef RGB_DI_PIN
+#define RGBLIGHT_ANIMATIONS
+#define RGBLED_NUM 0
+#define RGBLIGHT_HUE_STEP 8
+#define RGBLIGHT_SAT_STEP 8
+#define RGBLIGHT_VAL_STEP 8
+#endif
diff --git a/keyboards/sneakbox/aliceclone/info.json b/keyboards/sneakbox/aliceclone/info.json
new file mode 100644
index 0000000000..332404b56d
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/info.json
@@ -0,0 +1,18 @@
+{
+ "keyboard_name": "Alice Clone",
+ "url": "https://sneakbox.design",
+ "maintainer": "mujimanic",
+ "width": 18.25,
+ "height": 5,
+ "layouts": {
+ "LAYOUT_all": {
+ "layout": [
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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}
+ ]
+ }
+ }
+}
diff --git a/keyboards/sneakbox/aliceclone/keymaps/default/keymap.c b/keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
new file mode 100644
index 0000000000..39eb44bc9a
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/keymaps/default/keymap.c
@@ -0,0 +1,55 @@
+/*
+Copyright 2020 Bryan Ong
+
+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 .
+*/
+
+#include QMK_KEYBOARD_H
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _BASE,
+ _FN
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_all(
+ 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,
+ 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,
+ 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,
+ 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,
+ KC_LCTL, KC_LALT, KC_SPC, LT(_FN, KC_SPC), KC_SPC, KC_RALT, KC_RCTL),
+ [_FN] = LAYOUT_all(
+ 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,
+ 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,
+ 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,
+ 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
+};
+
+void encoder_update_user(uint8_t index, bool clockwise) {
+ if (index == 0) { /* First encoder */
+ if (clockwise) {
+ tap_code(KC_DOWN);
+ } else {
+ tap_code(KC_UP);
+ }
+ } else if (index == 1) { /* Second encoder */
+ if (clockwise) {
+ tap_code(KC_DOWN);
+ } else {
+ tap_code(KC_UP);
+ }
+ }
+}
diff --git a/keyboards/sneakbox/aliceclone/keymaps/via/keymap.c b/keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
new file mode 100644
index 0000000000..333b8a2162
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/keymaps/via/keymap.c
@@ -0,0 +1,70 @@
+/*
+Copyright 2020 Bryan Ong
+
+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 .
+*/
+
+#include QMK_KEYBOARD_H
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _BASE,
+ _FN,
+ _L3,
+ _L4
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [_BASE] = LAYOUT_all(
+ 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,
+ 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,
+ 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,
+ 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,
+ KC_LCTL, KC_LALT, KC_SPC, LT(_FN, KC_SPC), KC_SPC, KC_RALT, KC_RCTL),
+ [_FN] = LAYOUT_all(
+ 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,
+ 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,
+ 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,
+ 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
+ [_L3] = LAYOUT_all(
+ 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,
+ 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, 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, 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, KC_TRNS, KC_TRNS),
+ [_L4] = LAYOUT_all(
+ 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,
+ 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, 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, 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, KC_TRNS, KC_TRNS),
+};
+
+void encoder_update_user(uint8_t index, bool clockwise) {
+ if (index == 0) { /* First encoder */
+ if (clockwise) {
+ tap_code(KC_DOWN);
+ } else {
+ tap_code(KC_UP);
+ }
+ } else if (index == 1) { /* Second encoder */
+ if (clockwise) {
+ tap_code(KC_DOWN);
+ } else {
+ tap_code(KC_UP);
+ }
+ }
+}
diff --git a/keyboards/sneakbox/aliceclone/keymaps/via/rules.mk b/keyboards/sneakbox/aliceclone/keymaps/via/rules.mk
new file mode 100644
index 0000000000..036bd6d1c3
--- /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 0000000000..86ffbd9303
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/readme.md
@@ -0,0 +1,15 @@
+# Sneakbox Alice Clone PCB
+
+![Sneakbox Alice Clone PCB](https://i.imgur.com/pMZNqLXl.jpg)
+
+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)
+
+* Keyboard Maintainer: [mujimanic](https://github.com/mujimanic)
+* Hardware Supported: Any Alice-layout case.
+* Hardware Availability: [sneakbox.design](https://sneakbox.design/products/sneakbox-alice-hotswap-pcbs)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make sneakbox/aliceclone:default
+
+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 0000000000..fb12719ce8
--- /dev/null
+++ b/keyboards/sneakbox/aliceclone/rules.mk
@@ -0,0 +1,23 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+BOOTLOADER = atmel-dfu
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = no # USB Nkey Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+BLUETOOTH_ENABLE = no # Enable Bluetooth
+AUDIO_ENABLE = no # Audio output
+ENCODER_ENABLE = yes
--
cgit v1.2.3