summaryrefslogtreecommitdiff
path: root/keyboards/tominabox1/bigboy
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/tominabox1/bigboy')
-rwxr-xr-xkeyboards/tominabox1/bigboy/bigboy.c31
-rwxr-xr-xkeyboards/tominabox1/bigboy/bigboy.h34
-rwxr-xr-xkeyboards/tominabox1/bigboy/config.h60
-rw-r--r--keyboards/tominabox1/bigboy/info.json13
-rwxr-xr-xkeyboards/tominabox1/bigboy/keymaps/default/keymap.c34
-rwxr-xr-xkeyboards/tominabox1/bigboy/keymaps/default_2u/keymap.c31
-rwxr-xr-xkeyboards/tominabox1/bigboy/readme.md20
-rwxr-xr-xkeyboards/tominabox1/bigboy/rules.mk19
8 files changed, 242 insertions, 0 deletions
diff --git a/keyboards/tominabox1/bigboy/bigboy.c b/keyboards/tominabox1/bigboy/bigboy.c
new file mode 100755
index 0000000000..3cb1ec442d
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/bigboy.c
@@ -0,0 +1,31 @@
+/* Copyright 2022 tominabox1
+ *
+ * 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 "bigboy.h"
+
+#ifdef ENCODER_ENABLE
+bool encoder_update_kb(uint8_t index, bool clockwise) {
+ if (!encoder_update_user(index, clockwise)) { return false; }
+ if (index == 0) {
+ if (clockwise) {
+ tap_code_delay(KC_VOLU, 10);
+ } else {
+ tap_code_delay(KC_VOLD, 10);
+ }
+ }
+ return true;
+}
+#endif /* ENCODER_ENABLE */
diff --git a/keyboards/tominabox1/bigboy/bigboy.h b/keyboards/tominabox1/bigboy/bigboy.h
new file mode 100755
index 0000000000..ef3b4a44f9
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/bigboy.h
@@ -0,0 +1,34 @@
+/* Copyright 2022 tominabox1
+ *
+ * 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"
+
+
+#define LAYOUT( \
+ K00, K01, K02, \
+ K10, K11, K12 \
+) { \
+ { K00, K01, K02, }, \
+ { K10, K11, K12 }, \
+}
+
+#define LAYOUT_2us( \
+ K00, K01, K02 \
+) { \
+ { K00, K01, K02 }, \
+}
diff --git a/keyboards/tominabox1/bigboy/config.h b/keyboards/tominabox1/bigboy/config.h
new file mode 100755
index 0000000000..d6cc8e7b55
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/config.h
@@ -0,0 +1,60 @@
+/* Copyright 2022 tominabox1
+ *
+ * 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 0x7431
+#define PRODUCT_ID 0x6262
+#define DEVICE_VER 0x0001
+#define MANUFACTURER tominabox1
+#define PRODUCT BigBoy
+
+/* key matrix size */
+#define DIRECT_PINS { \
+ { D0, B1, B0 }, \
+ { B7, B2, B3 } \
+}
+
+#define UNUSED_PINS
+
+#define ENCODERS_PAD_A { C6 }
+#define ENCODERS_PAD_B { B6 }
+#define ENCODER_RESOLUTION 2
+
+#define RGB_DI_PIN B5
+
+#ifdef RGB_DI_PIN
+
+ #define RGBLED_NUM 5
+
+ #define RGBLIGHT_HUE_STEP 8
+ #define RGBLIGHT_SAT_STEP 8
+ #define RGBLIGHT_VAL_STEP 8
+
+ #define RGBLIGHT_EFFECT_RAINBOW_MOOD
+ #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
+ #define RGBLIGHT_EFFECT_SNAKE
+ #define RGBLIGHT_EFFECT_KNIGHT
+ #define RGBLIGHT_EFFECT_CHRISTMAS
+ #define RGBLIGHT_EFFECT_STATIC_GRADIENT
+ #define RGBLIGHT_EFFECT_RGB_TEST
+ #define RGBLIGHT_EFFECT_ALTERNATING
+ #define RGBLIGHT_EFFECT_TWINKLE
+
+#endif /* RGB_DI_PIN */
diff --git a/keyboards/tominabox1/bigboy/info.json b/keyboards/tominabox1/bigboy/info.json
new file mode 100644
index 0000000000..49c5b16d85
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/info.json
@@ -0,0 +1,13 @@
+{
+ "keyboard_name": "BigBoy",
+ "url": "",
+ "maintainer": "tominabox1",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [{"label":"0,0", "x":0, "y":0}, {"label":"0,1", "x":1, "y":0}, {"label":"0,2", "x":2, "y":0}, {"label":"1,0", "x":0, "y":1}, {"label":"1,1", "x":1, "y":1}, {"label":"1,2", "x":2, "y":1}]
+ },
+ "LAYOUT_2us": {
+ "layout": [{"label":"0,0", "x":0, "y":0, "h":2}, {"label":"0,1", "x":1, "y":0, "h":2}, {"label":"0,2", "x":2, "y":0, "h":2}]
+ }
+ }
+}
diff --git a/keyboards/tominabox1/bigboy/keymaps/default/keymap.c b/keyboards/tominabox1/bigboy/keymaps/default/keymap.c
new file mode 100755
index 0000000000..dfb4030e68
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/keymaps/default/keymap.c
@@ -0,0 +1,34 @@
+/* Copyright 2022 tominabox1
+ *
+ * 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 QMK_KEYBOARD_H
+
+#define LT1_SPC LT(1, KC_SPC)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT(
+ KC_1, KC_2, KC_3,
+ KC_4, KC_5, MO(1)
+ ),
+ [1] = LAYOUT(
+ QK_BOOT, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO
+ ),
+ [2] = LAYOUT(
+ KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO
+ ),
+};
diff --git a/keyboards/tominabox1/bigboy/keymaps/default_2u/keymap.c b/keyboards/tominabox1/bigboy/keymaps/default_2u/keymap.c
new file mode 100755
index 0000000000..7ad83d3d6f
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/keymaps/default_2u/keymap.c
@@ -0,0 +1,31 @@
+/* Copyright 2022 tominabox1
+ *
+ * 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 QMK_KEYBOARD_H
+
+#define LT1_SPC LT(1, KC_SPC)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_2us(
+ KC_1, KC_2, MO(1)
+ ),
+ [1] = LAYOUT_2us(
+ QK_BOOT, KC_NO, KC_NO
+ ),
+ [2] = LAYOUT_2us(
+ KC_NO, KC_NO, KC_NO
+ ),
+};
diff --git a/keyboards/tominabox1/bigboy/readme.md b/keyboards/tominabox1/bigboy/readme.md
new file mode 100755
index 0000000000..c76065637c
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/readme.md
@@ -0,0 +1,20 @@
+# BigBoy
+
+A macropad designed by dingusxmcgee_ and tominabox1.
+
+![bigboy](https://i.imgur.com/oqxx6sEh.jpg)
+
+* Keyboard Maintainer: [tominabox1](https://github.com/tominabox1)
+* Hardware Supported: BigBoy
+
+Make example for this keyboard (after setting up your build environment):
+
+ make bigboy:default
+
+Flashing example for this keyboard:
+
+ make bigboy:default:flash
+
+**Reset Key:** To enter the bootloader, either push the RESET button on the PCB, hold the top left key when plugging in, or the a programmed button on the keymap.
+
+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/tominabox1/bigboy/rules.mk b/keyboards/tominabox1/bigboy/rules.mk
new file mode 100755
index 0000000000..a31774530d
--- /dev/null
+++ b/keyboards/tominabox1/bigboy/rules.mk
@@ -0,0 +1,19 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+BOOTLOADER = atmel-dfu
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+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
+NKRO_ENABLE = yes # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output
+ENCODER_ENABLE = yes