1
0
Fork 0

[Keyboard] Botanical Keyboards FM2U (#8819)

* initial commit for fm2u keyboard

* add fm2u keyboard along with VIA keymap

* add meme LAYOUT support

* minor cleanups

* fixup layout macro names
This commit is contained in:
MechMerlin 2020-04-16 12:28:49 -07:00 committed by GitHub
parent 7873b49d40
commit 4a92dd327c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 285 additions and 0 deletions

View file

@ -0,0 +1,55 @@
/*
Copyright 2020 mechmerlin
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 0x6969
#define PRODUCT_ID 0x0001
#define DEVICE_VER 0x0001
#define MANUFACTURER botanicalkeyboards
#define PRODUCT fm2u
#define DESCRIPTION A 1 key macropad
/* key matrix size */
#define MATRIX_ROWS 1
#define MATRIX_COLS 1
/* Keyboard Matrix Assignments */
#define DIRECT_PINS { \
{ C4 } \
}
/*
* 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 UNUSED_PINS
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

View file

@ -0,0 +1,17 @@
/* Copyright 2020 mechmerlin
*
* 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 "fm2u.h"

View file

@ -0,0 +1,46 @@
/* Copyright 2020 mechmerlin
*
* 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"
/* This is a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT_100u( \
k00 \
) \
{ \
{ k00 } \
}
#define LAYOUT_125u LAYOUT_100u
#define LAYOUT_150u LAYOUT_100u
#define LAYOUT_175u LAYOUT_100u
#define LAYOUT_200u LAYOUT_100u
#define LAYOUT_225u LAYOUT_100u
#define LAYOUT_275u LAYOUT_100u
#define LAYOUT_300u LAYOUT_100u
#define LAYOUT_600u LAYOUT_100u
#define LAYOUT_625u LAYOUT_100u
#define LAYOUT_700u LAYOUT_100u
#define LAYOUT_iso LAYOUT_100u

View file

@ -0,0 +1,56 @@
{
"keyboard_name": "fm2u",
"url": "",
"maintainer": "qmk",
"width": 1,
"height": 1,
"layouts": {
"LAYOUT_100u": {
"layout": [{"x":0, "y":0}]
},
"LAYOUT_125u": {
"layout": [{"x":0, "y":0, "w":1.25}]
},
"LAYOUT_150u": {
"layout": [{"x":0, "y":0, "w":1.50}]
},
"LAYOUT_175u": {
"layout": [{"x":0, "y":0, "w":1.75}]
},
"LAYOUT_200u": {
"layout": [{"x":0, "y":0, "w":2.00}]
},
"LAYOUT_225u": {
"layout": [{"x":0, "y":0, "w":2.25}]
},
"LAYOUT_275u": {
"layout": [{"x":0, "y":0, "w":2.75}]
},
"LAYOUT_300u": {
"layout": [{"x":0, "y":0, "w":3.00}]
},
"LAYOUT_600u": {
"layout": [{"x":0, "y":0, "w":6.00}]
},
"LAYOUT_625u": {
"layout": [{"x":0, "y":0, "w":6.25}]
},
"LAYOUT_700u": {
"layout": [{"x":0, "y":0, "w":7.00}]
},
"LAYOUT_iso": {
"layout": [{"x":0.25, "y":0, "w":1.25, "h":2}]
}
}
}

View file

@ -0,0 +1,25 @@
/* Copyright 2020 mechmerlin
*
* 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] = {
/* Base */
[0] = LAYOUT_100u(
KC_B
)
};

View file

@ -0,0 +1,37 @@
/* Copyright 2020 mechmerlin
*
* 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] = {
/* Base */
[0] = LAYOUT_100u(
KC_B
),
[1] = LAYOUT_100u(
KC_TRNS
),
[2] = LAYOUT_100u(
KC_TRNS
),
[3] = LAYOUT_100u(
KC_TRNS
),
};

View file

@ -0,0 +1,4 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
EXTRAKEY_ENABLE = no

View file

@ -0,0 +1,13 @@
# fm2u
A 1 key macropad with USB C and atmega32u2 microcontroller.
* Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
* Hardware Supported: fm2u PCB
* Hardware Availability: TBD
Make example for this keyboard (after setting up your build environment):
make botanicalkeyboards/fm2u: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).

View file

@ -0,0 +1,32 @@
# MCU name
MCU = atmega32u2
# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = atmel-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
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
NKRO_ENABLE = no # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
MIDI_ENABLE = no # MIDI support
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
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