From da7811f82aad8997495750c9ef70117f9934f340 Mon Sep 17 00:00:00 2001
From: SneakboxKB <67670271+SneakboxKB@users.noreply.github.com>
Date: Sun, 6 Jul 2025 00:59:20 -0500
Subject: [PATCH] Add lilBAE support (#25259)
---
keyboards/sneakbox/lilbae/keyboard.json | 69 +++++++++++++++++++
.../lilbae/keymaps/ansi_enter/keymap.c | 29 ++++++++
.../sneakbox/lilbae/keymaps/default/keymap.c | 28 ++++++++
.../sneakbox/lilbae/keymaps/iso/keymap.c | 35 ++++++++++
.../sneakbox/lilbae/keymaps/iso/rules.mk | 1 +
.../lilbae/keymaps/split_ansi_enter/keymap.c | 35 ++++++++++
.../lilbae/keymaps/split_ansi_enter/rules.mk | 1 +
keyboards/sneakbox/lilbae/readme.md | 27 ++++++++
8 files changed, 225 insertions(+)
create mode 100644 keyboards/sneakbox/lilbae/keyboard.json
create mode 100644 keyboards/sneakbox/lilbae/keymaps/ansi_enter/keymap.c
create mode 100644 keyboards/sneakbox/lilbae/keymaps/default/keymap.c
create mode 100644 keyboards/sneakbox/lilbae/keymaps/iso/keymap.c
create mode 100644 keyboards/sneakbox/lilbae/keymaps/iso/rules.mk
create mode 100644 keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/keymap.c
create mode 100644 keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/rules.mk
create mode 100644 keyboards/sneakbox/lilbae/readme.md
diff --git a/keyboards/sneakbox/lilbae/keyboard.json b/keyboards/sneakbox/lilbae/keyboard.json
new file mode 100644
index 00000000000..b1aa92cb683
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/keyboard.json
@@ -0,0 +1,69 @@
+{
+ "keyboard_name": "Lil' BAE",
+ "manufacturer": "Sneakbox",
+ "maintainer": "mujimanic",
+ "bootloader": "atmel-dfu",
+ "build": {
+ "lto": true
+ },
+ "diode_direction": "COL2ROW",
+ "encoder": {
+ "rotary": [
+ {"pin_a": "D2", "pin_b": "D3"}
+ ]
+ },
+ "bootmagic": {
+ "matrix": [0, 2]
+ },
+ "features": {
+ "bootmagic": true,
+ "encoder": true,
+ "extrakey": true,
+ "mousekey": true
+ },
+ "matrix_pins": {
+ "cols": ["B7", "D4", "D5", "D6"],
+ "rows": ["B4"]
+ },
+ "processor": "atmega32u2",
+ "url": "https://sneakbox.com",
+ "usb": {
+ "device_version": "0.0.1",
+ "pid": "0x0012",
+ "vid": "0x5342"
+ },
+ "layouts": {
+ "LAYOUT_all": {
+ "layout": [
+ {"matrix": [0, 0], "x": 1.75, "y": 0, "w": 1.5},
+ {"matrix": [0, 1], "x": 0, "y": 1},
+ {"matrix": [0, 2], "x": 1, "y": 1},
+ {"matrix": [0, 3], "x": 2, "y": 1, "w": 1.25}
+ ]
+ },
+ "LAYOUT_ansi_enter": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0.75, "y": 0, "w": 1.5},
+ {"matrix": [0, 2], "x": 0, "y": 1, "w": 2.25}
+ ]
+ },
+ "LAYOUT_bae": {
+ "layout": [
+ {"matrix": [0, 2], "x": 0, "y": 0, "w": 2.25, "h": 2}
+ ]
+ },
+ "LAYOUT_iso": {
+ "layout": [
+ {"matrix": [0, 0], "x": 1, "y": 0, "w": 1.25, "h": 2},
+ {"matrix": [0, 1], "x": 0, "y": 1}
+ ]
+ },
+ "LAYOUT_split_ansi_enter": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0.75, "y": 0, "w": 1.5},
+ {"matrix": [0, 1], "x": 0, "y": 1},
+ {"matrix": [0, 3], "x": 1, "y": 1, "w": 1.25}
+ ]
+ }
+ }
+}
diff --git a/keyboards/sneakbox/lilbae/keymaps/ansi_enter/keymap.c b/keyboards/sneakbox/lilbae/keymaps/ansi_enter/keymap.c
new file mode 100644
index 00000000000..775d33ff15c
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/keymaps/ansi_enter/keymap.c
@@ -0,0 +1,29 @@
+/*
+Copyright 2022 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
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_ansi_enter(
+ KC_BSLS,
+ KC_ENT)
+};
diff --git a/keyboards/sneakbox/lilbae/keymaps/default/keymap.c b/keyboards/sneakbox/lilbae/keymaps/default/keymap.c
new file mode 100644
index 00000000000..4a4f4c80a60
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/keymaps/default/keymap.c
@@ -0,0 +1,28 @@
+/*
+Copyright 2022 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
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_bae(
+ KC_ENT)
+};
diff --git a/keyboards/sneakbox/lilbae/keymaps/iso/keymap.c b/keyboards/sneakbox/lilbae/keymaps/iso/keymap.c
new file mode 100644
index 00000000000..3f15660c07b
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/keymaps/iso/keymap.c
@@ -0,0 +1,35 @@
+/*
+Copyright 2022 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
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_iso(
+ KC_ENT,
+ KC_UNDO )
+};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
+ [_BASE] = { ENCODER_CCW_CW(KC_1, KC_2)}
+};
+#endif
diff --git a/keyboards/sneakbox/lilbae/keymaps/iso/rules.mk b/keyboards/sneakbox/lilbae/keymaps/iso/rules.mk
new file mode 100644
index 00000000000..ee325681483
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/keymaps/iso/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes
diff --git a/keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/keymap.c b/keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/keymap.c
new file mode 100644
index 00000000000..00d44fb9354
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/keymap.c
@@ -0,0 +1,35 @@
+/*
+Copyright 2022 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
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_split_ansi_enter(
+ KC_BSLS,
+ KC_UNDO, KC_LGUI)
+};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
+ [_BASE] = { ENCODER_CCW_CW(KC_1, KC_2)}
+};
+#endif
diff --git a/keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/rules.mk b/keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/rules.mk
new file mode 100644
index 00000000000..ee325681483
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/keymaps/split_ansi_enter/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes
diff --git a/keyboards/sneakbox/lilbae/readme.md b/keyboards/sneakbox/lilbae/readme.md
new file mode 100644
index 00000000000..f637df1c1b3
--- /dev/null
+++ b/keyboards/sneakbox/lilbae/readme.md
@@ -0,0 +1,27 @@
+# Sneakbox Lil' BAE
+
+
+
+A small macropad featuring key positions for a Big-Ass Enter (Reverse L-shaped enter key)
+
+Keyboard Maintainer: [mujimanic](https://sneakbox.com)
+Hardware Supported: Lil' BAE Case
+Hardware Availability: [sneakbox.design](https://sneakbox.com/products/lil-bae-macropad)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make sneakbox/lilbae:default
+
+Flashing example for this keyboard:
+
+ make sneakbox/lilbae:default:flash
+
+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).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,2) in the matrix (position mapped to ANSI enter key) and plug in the keyboard
+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available