Skip to content

Commit

Permalink
Add Big Switch Seat (qmk#16524)
Browse files Browse the repository at this point in the history
* Add Big Switch Seat

* Update keyboards/keebio/bigswitchseat/rules.mk

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/keebio/bigswitchseat/rules.mk

Co-authored-by: Ryan <fauxpark@gmail.com>

Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
  • Loading branch information
3 people authored and zykrah committed Jul 2, 2022
1 parent 77b4e77 commit 11f7f42
Show file tree
Hide file tree
Showing 10 changed files with 212 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keyboards/keebio/bigswitchseat/bigswitchseat.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later

#include "bigswitchseat.h"
12 changes: 12 additions & 0 deletions keyboards/keebio/bigswitchseat/bigswitchseat.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "quantum.h"

#define LAYOUT( \
k00 \
) { \
{ k00 } \
}
86 changes: 86 additions & 0 deletions keyboards/keebio/bigswitchseat/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0xCB10
#define PRODUCT_ID 0x1011
#define DEVICE_VER 0x0001
#define MANUFACTURER Keebio
#define PRODUCT Big Switch Seat

/* key matrix size */
#define MATRIX_ROWS 1
#define MATRIX_COLS 1

/*
* Keyboard Matrix Assignments
*/

#define MATRIX_ROW_PINS { E6 }
#define MATRIX_COL_PINS { F0 }
#define DIODE_DIRECTION COL2ROW

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* define if matrix has ghost (lacks anti-ghosting diodes) */
//#define MATRIX_HAS_GHOST

/* 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

/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
* This is useful for the Windows task manager shortcut (ctrl+shift+esc).
*/
//#define GRAVE_ESC_CTRL_OVERRIDE

/*
* Force NKRO
*
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
* makefile for this to work.)
*
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
* until the next keyboard reset.
*
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
* fully operational during normal computer usage.
*
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
* power-up.
*
*/
//#define FORCE_NKRO

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

/* disable these deprecated features by default */
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

/* Bootmagic Lite key configuration */
//#define BOOTMAGIC_LITE_ROW 0
//#define BOOTMAGIC_LITE_COLUMN 0
10 changes: 10 additions & 0 deletions keyboards/keebio/bigswitchseat/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"keyboard_name": "Big Switch Seat",
"url": "https://robotcandy.company/",
"maintainer": "nooges",
"layouts": {
"LAYOUT": {
"layout": [{"x": 0, "y": 0, "w": 4, "h": 4}]
}
}
}
27 changes: 27 additions & 0 deletions keyboards/keebio/bigswitchseat/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

// Defines names for use in layer keycodes and the keymap
enum layer_names {
_MAIN,
_FN1,
_FN2,
_FN3
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_MAIN] = LAYOUT(
KC_A
),
[_FN1] = LAYOUT(
_______
),
[_FN2] = LAYOUT(
_______
),
[_FN3] = LAYOUT(
_______
)
};
1 change: 1 addition & 0 deletions keyboards/keebio/bigswitchseat/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LTO_ENABLE = yes
27 changes: 27 additions & 0 deletions keyboards/keebio/bigswitchseat/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

// Defines names for use in layer keycodes and the keymap
enum layer_names {
_MAIN,
_FN1,
_FN2,
_FN3
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_MAIN] = LAYOUT(
KC_A
),
[_FN1] = LAYOUT(
_______
),
[_FN2] = LAYOUT(
_______
),
[_FN3] = LAYOUT(
_______
)
};
2 changes: 2 additions & 0 deletions keyboards/keebio/bigswitchseat/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
25 changes: 25 additions & 0 deletions keyboards/keebio/bigswitchseat/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Big Switch Seat

PCB for the Big Switch.

* Keyboard Maintainer: [Keebio](https://github.com/nooges)
* Hardware Supported: Big Switch Seat PCB
* Hardware Availability: [Robot Candy Company](https://robotcandy.company/)

Make example for this keyboard (after setting up your build environment):

make keebio/bigswitchseat:default

Flashing example for this keyboard:

make keebio/bigswitchseat: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,0) in the matrix (usually the top left key or Escape) 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 `RESET` if it is available
18 changes: 18 additions & 0 deletions keyboards/keebio/bigswitchseat/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output

0 comments on commit 11f7f42

Please sign in to comment.