@ -0,0 +1,19 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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 | |||||
// place overrides here |
@ -1,23 +1,33 @@ | |||||
#include "maxipad.h" | |||||
/* Copyright 2019 | |||||
* | |||||
* 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 | |||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||||
[0] = LAYOUT( /* Base */ | |||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, \ | |||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, \ | |||||
MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, \ | |||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, \ | |||||
KC_LCTL, KC_LALT, MO(1), KC_ENT,KC_GRV,KC_SPC \ | |||||
), | |||||
[1] = LAYOUT( | |||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, \ | |||||
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, \ | |||||
KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, \ | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | |||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC \ | |||||
), | |||||
}; | |||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function | |||||
{ | |||||
return MACRO_NONE; | |||||
[0] = LAYOUT( /* Base */ | |||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, \ | |||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, \ | |||||
MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, \ | |||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, \ | |||||
KC_LCTL, KC_LALT, MO(1), KC_ENT, KC_GRV, KC_SPC \ | |||||
), | |||||
[1] = LAYOUT( | |||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, \ | |||||
_______, _______, KC_UP, _______, _______, _______, \ | |||||
_______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, \ | |||||
_______, _______, _______, _______, _______, _______, \ | |||||
_______, _______, _______, _______, _______, _______ \ | |||||
), | |||||
}; | }; |
@ -0,0 +1 @@ | |||||
# The default keymap for maxipad |
@ -1 +1,16 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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 "maxipad.h" | #include "maxipad.h" |
@ -0,0 +1,39 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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" | |||||
/* key matrix size */ | |||||
#define MATRIX_ROWS 5 | |||||
#define MATRIX_COLS 6 | |||||
/* | |||||
* Keyboard Matrix Assignments | |||||
* | |||||
* Change this to how you wired your keyboard | |||||
* COLS: AVR pins used for columns, left to right | |||||
* ROWS: AVR pins used for rows, top to bottom | |||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | |||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | |||||
* | |||||
*/ | |||||
#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 } | |||||
#define MATRIX_COL_PINS { F4, C6, D7, F5, B4, B5 } | |||||
#define UNUSED_PINS | |||||
/* COL2ROW, ROW2COL*/ | |||||
#define DIODE_DIRECTION COL2ROW |
@ -0,0 +1,16 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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 "maxipad.h" |
@ -0,0 +1,20 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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 "maxipad.h" | |||||
#include "quantum.h" | |||||
@ -0,0 +1,58 @@ | |||||
# MCU name | |||||
MCU = atmega32u4 | |||||
# Processor frequency. | |||||
# This will define a symbol, F_CPU, in all source code files equal to the | |||||
# processor frequency in Hz. You can then use this symbol in your source code to | |||||
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done | |||||
# automatically to create a 32-bit value in your source code. | |||||
# | |||||
# This will be an integer division of F_USB below, as it is sourced by | |||||
# F_USB after it has run through any CPU prescalers. Note that this value | |||||
# does not *change* the processor frequency - it should merely be updated to | |||||
# reflect the processor speed set externally so that the code can use accurate | |||||
# software delays. | |||||
F_CPU = 16000000 | |||||
# | |||||
# LUFA specific | |||||
# | |||||
# Target architecture (see library "Board Types" documentation). | |||||
ARCH = AVR8 | |||||
# Input clock frequency. | |||||
# This will define a symbol, F_USB, in all source code files equal to the | |||||
# input clock frequency (before any prescaling is performed) in Hz. This value may | |||||
# differ from F_CPU if prescaling is used on the latter, and is required as the | |||||
# raw input clock is fed directly to the PLL sections of the AVR for high speed | |||||
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | |||||
# at the end, this will be done automatically to create a 32-bit value in your | |||||
# source code. | |||||
# | |||||
# If no clock division is performed on the input clock inside the AVR (via the | |||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | |||||
F_USB = $(F_CPU) | |||||
# Interrupt driven control endpoint task(+60) | |||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | |||||
# Bootloader selection | |||||
# Teensy halfkay | |||||
# Pro Micro caterina | |||||
# Atmel DFU atmel-dfu | |||||
# LUFA DFU lufa-dfu | |||||
# QMK DFU qmk-dfu | |||||
# atmega32a bootloadHID | |||||
BOOTLOADER = caterina | |||||
# If you don't know the bootloader type, then you can specify the | |||||
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | |||||
# Teensy halfKay 512 | |||||
# Teensy++ halfKay 1024 | |||||
# Atmel DFU loader 4096 | |||||
# LUFA bootloader 4096 | |||||
# USBaspLoader 2048 | |||||
# OPT_DEFS += -DBOOTLOADER_SIZE=4096 |
@ -1,17 +1,27 @@ | |||||
# Maxipad | # Maxipad | ||||
## Quantum MK Firmware | |||||
![Maxipad](https://images.bigcartel.com/product_images/193297217/product_image.jpg) | |||||
For the full Quantum feature list, see [the parent readme.md](/readme.md). | |||||
5 x 6 Gamepad/Macropad PCBs from /u/wootpatoot | |||||
If you are using a pro micro then make sure to enable USE_PRO_MICRO in the makefile | |||||
Change the config.h pinout to match your mcu!! | |||||
- Multiple layouts supported | |||||
- Full-grid | |||||
- 2u thumb-key (the 2u only works in the bottom right position). | |||||
- Multiple controllers supported | |||||
- Pro Micro | |||||
- PJRC Teensy 2.0 | |||||
Depending on which keymap you would like to use, you will have to compile slightly differently. | |||||
Keyboard Maintainer: QMK Community | |||||
Hardware Supported: Maxipad PCB | |||||
Hardware Availability: [switchtop](http://www.switchtop.com/product/gamepad-macropad-pcbs) | |||||
### Default | |||||
Make example for this keyboard (after setting up your build environment): | |||||
To build with the default keymap, simply run `make maxipad:default`. | |||||
make maxipad:default | |||||
### Other Keymaps | |||||
Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create file named `<name>.c` and see keymap document (you can find in top readme.md) and existent keymap files. | |||||
If you would like to use one of the alternative controllers: | |||||
make maxipad/promicro:default | |||||
make maxipad/teensy2:default | |||||
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). |
@ -1,76 +1,22 @@ | |||||
# MCU name | |||||
#MCU = at90usb1287 | |||||
MCU = atmega32u4 | |||||
# Processor frequency. | |||||
# This will define a symbol, F_CPU, in all source code files equal to the | |||||
# processor frequency in Hz. You can then use this symbol in your source code to | |||||
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done | |||||
# automatically to create a 32-bit value in your source code. | |||||
# | |||||
# This will be an integer division of F_USB below, as it is sourced by | |||||
# F_USB after it has run through any CPU prescalers. Note that this value | |||||
# does not *change* the processor frequency - it should merely be updated to | |||||
# reflect the processor speed set externally so that the code can use accurate | |||||
# software delays. | |||||
F_CPU = 16000000 | |||||
# | |||||
# LUFA specific | |||||
# | |||||
# Target architecture (see library "Board Types" documentation). | |||||
ARCH = AVR8 | |||||
# Input clock frequency. | |||||
# This will define a symbol, F_USB, in all source code files equal to the | |||||
# input clock frequency (before any prescaling is performed) in Hz. This value may | |||||
# differ from F_CPU if prescaling is used on the latter, and is required as the | |||||
# raw input clock is fed directly to the PLL sections of the AVR for high speed | |||||
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | |||||
# at the end, this will be done automatically to create a 32-bit value in your | |||||
# source code. | |||||
# | |||||
# If no clock division is performed on the input clock inside the AVR (via the | |||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | |||||
F_USB = $(F_CPU) | |||||
# Interrupt driven control endpoint task(+60) | |||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | |||||
# Boot Section Size in *bytes* | |||||
# Teensy halfKay 512 | |||||
# Teensy++ halfKay 1024 | |||||
# Atmel DFU loader 4096 | |||||
# LUFA bootloader 4096 | |||||
# USBaspLoader 2048 | |||||
OPT_DEFS += -DBOOTLOADER_SIZE=512 | |||||
# Build Options | # Build Options | ||||
# comment out to disable the options. | |||||
# change yes to no to disable | |||||
# | # | ||||
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | |||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | |||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | |||||
CONSOLE_ENABLE = yes # Console for debug(+400) | |||||
COMMAND_ENABLE = yes # Commands for debug and configuration | |||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | |||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | |||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | |||||
CONSOLE_ENABLE = no # Console for debug(+400) | |||||
COMMAND_ENABLE = no # Commands for debug and configuration | |||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||||
# SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | |||||
# NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | |||||
# BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | |||||
# MIDI_ENABLE = YES # MIDI controls | |||||
# UNICODE_ENABLE = YES # Unicode | |||||
# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID | |||||
USE_PRO_MICRO = yes | |||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||||
NKRO_ENABLE = no # USB Nkey Rollover | |||||
NKRO_ENABLE = yes # USB Nkey Rollover | |||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||||
MIDI_ENABLE = no # MIDI controls | |||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | |||||
MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | |||||
UNICODE_ENABLE = no # Unicode | UNICODE_ENABLE = no # Unicode | ||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||||
AUDIO_ENABLE = no # Audio output on port C6 | AUDIO_ENABLE = no # Audio output on port C6 | ||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | |||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | |||||
DEFAULT_FOLDER = maxipad/promicro |
@ -0,0 +1,39 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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" | |||||
/* key matrix size */ | |||||
#define MATRIX_ROWS 5 | |||||
#define MATRIX_COLS 6 | |||||
/* | |||||
* Keyboard Matrix Assignments | |||||
* | |||||
* Change this to how you wired your keyboard | |||||
* COLS: AVR pins used for columns, left to right | |||||
* ROWS: AVR pins used for rows, top to bottom | |||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | |||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | |||||
* | |||||
*/ | |||||
#define MATRIX_ROW_PINS { B6, F7, B2, B3, B1 } | |||||
#define MATRIX_COL_PINS { F6, C6, D7, F5, B4, B5 } | |||||
#define UNUSED_PINS | |||||
/* COL2ROW, ROW2COL*/ | |||||
#define DIODE_DIRECTION COL2ROW |
@ -0,0 +1,58 @@ | |||||
# MCU name | |||||
MCU = atmega32u4 | |||||
# Processor frequency. | |||||
# This will define a symbol, F_CPU, in all source code files equal to the | |||||
# processor frequency in Hz. You can then use this symbol in your source code to | |||||
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done | |||||
# automatically to create a 32-bit value in your source code. | |||||
# | |||||
# This will be an integer division of F_USB below, as it is sourced by | |||||
# F_USB after it has run through any CPU prescalers. Note that this value | |||||
# does not *change* the processor frequency - it should merely be updated to | |||||
# reflect the processor speed set externally so that the code can use accurate | |||||
# software delays. | |||||
F_CPU = 16000000 | |||||
# | |||||
# LUFA specific | |||||
# | |||||
# Target architecture (see library "Board Types" documentation). | |||||
ARCH = AVR8 | |||||
# Input clock frequency. | |||||
# This will define a symbol, F_USB, in all source code files equal to the | |||||
# input clock frequency (before any prescaling is performed) in Hz. This value may | |||||
# differ from F_CPU if prescaling is used on the latter, and is required as the | |||||
# raw input clock is fed directly to the PLL sections of the AVR for high speed | |||||
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | |||||
# at the end, this will be done automatically to create a 32-bit value in your | |||||
# source code. | |||||
# | |||||
# If no clock division is performed on the input clock inside the AVR (via the | |||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | |||||
F_USB = $(F_CPU) | |||||
# Interrupt driven control endpoint task(+60) | |||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | |||||
# Bootloader selection | |||||
# Teensy halfkay | |||||
# Pro Micro caterina | |||||
# Atmel DFU atmel-dfu | |||||
# LUFA DFU lufa-dfu | |||||
# QMK DFU qmk-dfu | |||||
# atmega32a bootloadHID | |||||
BOOTLOADER = halfkay | |||||
# If you don't know the bootloader type, then you can specify the | |||||
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | |||||
# Teensy halfKay 512 | |||||
# Teensy++ halfKay 1024 | |||||
# Atmel DFU loader 4096 | |||||
# LUFA bootloader 4096 | |||||
# USBaspLoader 2048 | |||||
# OPT_DEFS += -DBOOTLOADER_SIZE=4096 |
@ -0,0 +1,16 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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 "maxipad.h" |
@ -0,0 +1,19 @@ | |||||
/* Copyright 2019 | |||||
* | |||||
* 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 "maxipad.h" | |||||
#include "quantum.h" |