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

[Keyboard] Gowla Macro Board #9643

Merged
merged 21 commits into from
Jul 4, 2020
Merged
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
41 changes: 41 additions & 0 deletions keyboards/gowla/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
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/>.
*/

#ifndef CONFIG_H
#define CONFIG_H

SamGowland marked this conversation as resolved.
Show resolved Hide resolved
#include "config_common.h"

/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
#define PRODUCT_ID 0x0007
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
#define DEVICE_VER 0x0001
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
#define MANUFACTURER Gowla
#define PRODUCT Gowla Macro Board
#define DESCRIPTION 3x3 PCB

/* Matrix size */
#define MATRIX_ROWS 3
#define MATRIX_COLS 3

/* Pin-out */
#define MATRIX_ROW_PINS { D1, D0, D4 }
#define MATRIX_COL_PINS { B5, B4, E6 }
#define UNUSED_PINS

/* ROW2COL */
#define DIODE_DIRECTION ROW2COL

#endif
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
5 changes: 5 additions & 0 deletions keyboards/gowla/gowla.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "gowla.h"

void matrix_init_kb(void) {
matrix_init_user();
}
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
17 changes: 17 additions & 0 deletions keyboards/gowla/gowla.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#ifndef GOWLA_H
#define GOWLA_H

SamGowland marked this conversation as resolved.
Show resolved Hide resolved
#include "quantum.h"

#define LAYOUT( \
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
k00, k01, k02, \
k10, k11, k12, \
k20, k21, k22 \
) \
{ \
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
{ k00, k01, k02 }, \
{ k10, k11, k12 }, \
{ k20, k21, k22 } \
}

#endif
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
12 changes: 12 additions & 0 deletions keyboards/gowla/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"keyboard_name": "Gowla Macro Pad",
"url": "https://github.com/SamGowland/Gowla-Macro-Board",
"maintainer": "Gowla",
"width": 3,
"height": 3,
"layouts": {
"LAYOUT": {
"layout": [{"label":"k00", "x":0, "y":0}, {"label":"k01", "x":1, "y":0}, {"label":"k02", "x":2, "y":0}, {"label":"k10", "x":0, "y":1}, {"label":"k11", "x":1, "y":1}, {"label":"k12", "x":2, "y":1}, {"label":"k20", "x":0, "y":2}, {"label":"k21", "x":1, "y":2}, {"label":"k22", "x":2, "y":2}]
}
}
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
}
29 changes: 29 additions & 0 deletions keyboards/gowla/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT( \
LT(1, KC_MPRV), KC_MNXT, KC_MPLY, \
KC_VOLD, KC_UP, KC_VOLU, \
KC_LEFT, KC_DOWN, KC_RIGHT \
),

[1] = LAYOUT( \
KC_ESC, KC_MPLY, RESET, \
KC_P7, KC_P1, M(0), \
KC_F1, KC_F2, M(1) \
)

SamGowland marked this conversation as resolved.
Show resolved Hide resolved
};

const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
if (record->event.pressed) {
switch(id) {
case 0:
return MACRO(D(LCTL), T(C), U(LCTL), END);
case 1:
return MACRO(D(LCTL), T(V), U(LCTL), END);
}
}
return MACRO_NONE;
};
14 changes: 14 additions & 0 deletions keyboards/gowla/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Gowla Macro Board
===

Simple Compact 3x3 Macro Board for use with QMK, designed and sold by Gowla.

Keyboard Maintainer: [Gowla](https://github.com/SamGowland/)
Hardware Supported: Pro Micro ATmega32U4, Cherry Mount Switches
Hardware Availability: [Repo]https://github.com/SamGowland/Gowla-Macro-Board)

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

make gowla:default

See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
34 changes: 34 additions & 0 deletions keyboards/gowla/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = caterina

# Build Options
# change to "no" to disable the options, or define them in the Makefile in
# the appropriate keymap folder that will get included automatically
#
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
MOUSEKEY_ENABLE = no # 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 # Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
MIDI_ENABLE = no # MIDI controls
AUDIO_ENABLE = no # Audio output on port C6
UNICODE_ENABLE = yes # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
SamGowland marked this conversation as resolved.
Show resolved Hide resolved
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
API_SYSEX_ENABLE = yes
TAP_DANCE_ENABLE = no

# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
SamGowland marked this conversation as resolved.
Show resolved Hide resolved