Add BigBoy macro pad (#16962)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
		
							parent
							
								
									81b7d6f67f
								
							
						
					
					
						commit
						7c64a2bcaa
					
				
					 8 changed files with 242 additions and 0 deletions
				
			
		
							
								
								
									
										31
									
								
								keyboards/tominabox1/bigboy/bigboy.c
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										31
									
								
								keyboards/tominabox1/bigboy/bigboy.c
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -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 */
 | 
			
		||||
							
								
								
									
										34
									
								
								keyboards/tominabox1/bigboy/bigboy.h
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										34
									
								
								keyboards/tominabox1/bigboy/bigboy.h
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -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    }, \
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										60
									
								
								keyboards/tominabox1/bigboy/config.h
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										60
									
								
								keyboards/tominabox1/bigboy/config.h
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -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 */
 | 
			
		||||
							
								
								
									
										13
									
								
								keyboards/tominabox1/bigboy/info.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								keyboards/tominabox1/bigboy/info.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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}]
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										34
									
								
								keyboards/tominabox1/bigboy/keymaps/default/keymap.c
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										34
									
								
								keyboards/tominabox1/bigboy/keymaps/default/keymap.c
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        ),
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										31
									
								
								keyboards/tominabox1/bigboy/keymaps/default_2u/keymap.c
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										31
									
								
								keyboards/tominabox1/bigboy/keymaps/default_2u/keymap.c
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        ),
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										20
									
								
								keyboards/tominabox1/bigboy/readme.md
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								keyboards/tominabox1/bigboy/readme.md
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
# BigBoy
 | 
			
		||||
 | 
			
		||||
A macropad designed by dingusxmcgee_ and tominabox1.
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
* 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).
 | 
			
		||||
							
								
								
									
										19
									
								
								keyboards/tominabox1/bigboy/rules.mk
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								keyboards/tominabox1/bigboy/rules.mk
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue