Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gBoards FaunchPad #8925

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions keyboards/gboards/k/faunchpad/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#pragma once

#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0x1337
germ marked this conversation as resolved.
Show resolved Hide resolved
#define PRODUCT_ID 0x0006
#define DEVICE_VER 1
#define MANUFACTURER g Heavy Industries
#define PRODUCT FaunchPad
#define DESCRIPTION Teeny Toiny Macropad
#define VERSION "Rev 2: Chorded Boogaloo"

#define FORCE_NKRO

/* key matrix size */
#define MATRIX_ROWS 2
#define MATRIX_COLS 4
#define MATRIX_ROW_PINS { F4, F5 }
#define MATRIX_COL_PINS { B3, B2, B1, B0}

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION ROW2COL
28 changes: 28 additions & 0 deletions keyboards/gboards/k/faunchpad/config_engine.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//#include "g/engine.h"

// Configuration options for the engine

#define C_SIZE uint32_t // type for chord
#define COMBO_MAX 4 // Longest Combo

// Key Aliases, must fit within C_SIZE!
// These are for Ginni + Asetniop
#define FP01 STN(0)
#define FP02 STN(1)
#define FP03 STN(2)
#define FP04 STN(3)
#define FP11 STN(4)
#define FP12 STN(5)
#define FP13 STN(6)
#define FP14 STN(7)

// Mapping of QMK Keycodes to chord positions
#define ENGINE_CONFIG \
ENGINE_HOOK(KC_1, FP01) \
ENGINE_HOOK(KC_2, FP02) \
ENGINE_HOOK(KC_3, FP03) \
ENGINE_HOOK(KC_4, FP04) \
ENGINE_HOOK(KC_5, FP11) \
ENGINE_HOOK(KC_6, FP12) \
ENGINE_HOOK(KC_7, FP13) \
ENGINE_HOOK(KC_8, FP14)
29 changes: 29 additions & 0 deletions keyboards/gboards/k/faunchpad/faunchpad.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Copyright 2019 Jeremy Bernhardt
*
* 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 "faunchpad.h"

// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.

void matrix_scan_kb(void) {
#ifdef DEBUG_MATRIX
for (uint8_t c = 0; c < MATRIX_COLS; c++)
for (uint8_t r = 0; r < MATRIX_ROWS; r++)
if (matrix_is_on(r, c)) xprintf("r:%d c:%d \n", r, c);
#endif
matrix_scan_user();
}
10 changes: 10 additions & 0 deletions keyboards/gboards/k/faunchpad/faunchpad.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

#include "quantum.h"

#define LAYOUT_faunch( \
k00, k01, k02, k03, k10, k11, k12, k13 \
) { \
{ k00, k01, k02, k03 }, \
{ k10, k11, k12, k13 }, \
}
8 changes: 8 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/default/dicts.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// These are the dicts used by Georgi. You can
// layer in your own and add include your files :)

#include "dicts/cats.def"
#include "dicts/num.def"
#include "dicts/move.def"
#include "dicts/media.def"
#include "dicts/special.def"
22 changes: 22 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/default/dicts/cats.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Base + Cats
SUBS( FP01 | FP11, str_cat1, "https://tenor.com/ZrF5.gif")
SUBS( FP02 | FP12, str_cat2, "https://tenor.com/MlF8.gif")
SUBS( FP03 | FP13, str_cat3, "https://tenor.com/zFTG.gif")
SUBS( FP04 | FP14, str_cat4, "https://tenor.com/3j1u.gif")

SUBS( FP01 | FP02, str_cat5, "https://tenor.com/IpA4.gif")
SUBS( FP02 | FP03, str_cat6, "https://tenor.com/Nand.gif")
SUBS( FP03 | FP04, str_cat7, "https://tenor.com/bbldB.gif")
SUBS( FP11 | FP12, str_cat8, "https://tenor.com/oohE.gif")
SUBS( FP12 | FP13, str_cat9, "https://tenor.com/w1DM.gif")
SUBS( FP13 | FP14, str_cat10, "https://tenor.com/wfEk.gif")
SUBS( FP12 | FP13 | FP02|FP03, str_cat11, "https://tenor.com/XL3s.gif")

SUBS( FP01, str_cat12, "https://tenor.com/Ain1.gif")
SUBS( FP02, str_cat13, "https://tenor.com/yiMM.gif")
SUBS( FP03, str_cat14, "https://tenor.com/Fqdy.gif")
SUBS( FP04, str_cat15, "https://tenor.com/2OG5.gif")
SUBS( FP11, str_cat16, "https://tenor.com/XFgo.gif")
SUBS( FP12, str_cat17, "https://tenor.com/uYwy.gif")
SUBS( FP13, str_cat18, "https://tenor.com/81Qj.gif")
PRES( FP14, KC_ENT)
7 changes: 7 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/default/dicts/media.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Media
PRES( MEDIA | FP13, KC_MPRV)
PRES( MEDIA | FP14, KC_MNXT)
PRES( MEDIA | FP04, KC_VOLU)
PRES( MEDIA | FP03, KC_VOLD)
PRES( MEDIA | FP03 | FP04, KC_MPLY)
PRES( MEDIA | FP02, KC_MUTE)
7 changes: 7 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/default/dicts/move.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Movement Layer
PRES( MOVE | FP12, KC_LEFT)
PRES( MOVE | FP13, KC_DOWN)
PRES( MOVE | FP03, KC_UP)
PRES( MOVE | FP14, KC_RIGHT)
PRES( MOVE | FP02, KC_PGUP)
PRES( MOVE | FP04, KC_PGDN)
11 changes: 11 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/default/dicts/num.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Numpad
PRES( NUM | FP01 | FP11, KC_4)
PRES( NUM | FP02 | FP12, KC_5)
PRES( NUM | FP03 | FP13, KC_6)
PRES( NUM | FP01, KC_1)
PRES( NUM | FP02, KC_2)
PRES( NUM | FP03, KC_3)
PRES( NUM | FP11, KC_7)
PRES( NUM | FP12, KC_8)
PRES( NUM | FP13, KC_9)
PRES( NUM | FP11 | FP12 | FP13, KC_0)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// SECRET AGENT CHORDS
SUBS( FP01 | FP02 | FP03 | FP04 | FP11 | FP12 | FP13 | FP14, str_cad, "LALT(LCTL(KC_DEL))")
SUBS( FP01 | FP02 | FP03 | FP04, str_ver, "VERSION __DATE__")
24 changes: 24 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include QMK_KEYBOARD_H
// Chord Prefixes
#define MEDIA ( FP11 | FP12 )
#define MOVE ( FP01 | FP11 )
#define NUM ( FP04 | FP14 )

#include "g/keymap_engine.h"

/*
* .---------------------------.
* | FP01 | FP02 | FP03 | FP04 |
* |---------------------------|
* | FP11 | FP12 | FP13 | FP14 |
* '---------------------------'
*/

// Don't edit your keymap here! Do it in your dicts/ !
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_faunch( KC_1, KC_2, KC_3, KC_4,
KC_5, KC_6, KC_7, KC_8)
};

// Don't fuck with this, thanks.
size_t keymapsCount = sizeof(keymaps)/sizeof(keymaps[0]);
3 changes: 3 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Engine defs
VPATH += keyboards/gboards/
SRC += g/engine.c
10 changes: 10 additions & 0 deletions keyboards/gboards/k/faunchpad/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_faunch( KC_1, KC_2, KC_3, KC_4,
KC_5, KC_6, KC_7, KC_8),
[1] = LAYOUT_faunch( KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
};

// Don't fuck with this, thanks.
size_t keymapsCount = sizeof(keymaps)/sizeof(keymaps[0]);
1 change: 1 addition & 0 deletions keyboards/gboards/k/faunchpad/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIA_ENABLE = yes
17 changes: 17 additions & 0 deletions keyboards/gboards/k/faunchpad/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# FaunchPad!

![Faunchpad](https://assets.bigcartel.com/product_images/247416671/IMG_20191025_1322045-01.jpeg)

A macropad loaded with a numpad, and a ton of cat macros. Spam some keys and push enter for cats, What more could you want from a keyboard?

* Keyboard Maintainer: [Germ](https://github.com/germ)
* Hardware Availability: [g Heavy Industries](https://www.gboards.ca/product)

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

make gboards/k/faunchpad:default

Flash to your board with
make gboards/k/faunchpad:default:dfu

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).
15 changes: 15 additions & 0 deletions keyboards/gboards/k/faunchpad/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
BOOTLOADER = atmel-dfu

MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover


OPT_DEFS += -DDEBUG_MATRIX
EXTRAFLAGS += -flto
germ marked this conversation as resolved.
Show resolved Hide resolved