mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
[Keyboard] 2% Milk addition (#5796)
* Create README.md * Update README.md * Create info.json * Create config.h * Create rules.mk * Create 2_milk.c * Create 2_milk.h * Create keymap.c * Create README.md * Create config.h * Update info.json * Update config.h * Update rules.mk * Update 2_milk.h * Update 2_milk.c * Delete config.h * Update keymap.c * Update rules.mk * added pragma once * Add files via upload * Update keyboards/2_milk/rules.mk Co-Authored-By: Rionlion100 <rionlion100@gmail.com> * Update config.h * changed default to OSU! * Create README.md * Update README.md * Create keymap.c * Update keymap.c * Create README.md * Create keymap.c * Update keymap.c * Update keymap.c * Update README.md * Update README.md * Update README.md * Update README.md * fixed pins for PCB revision * fixed maybe * Create README.md * add mouse keymap * added ExcessBread's keymap * Update README.md * Create keymap.c * Create README.md * Create keymap.c * Update rules.mk * Rename README.md to readme.md * Rename README.md to readme.md * Rename README.md to readme.md * Rename README.md to readme.md * Rename README.md to readme.md * Rename README.md to readme.md * Rename README.md to readme.md * Update keyboards/2_milk/config.h Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/2_milk/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update info.json * Update info.json * Update info.json * Update info.json * Update info.json * Add files via upload * Update readme.md * fix copyright * Update 2_milk.c * Update 2_milk.h * Update rules.mk * Update rules.mk * Update config.h * Update config.h * Update feature_bluetooth.md * Update feature_bluetooth.md * Update readme.md
This commit is contained in:
parent
a8427447bc
commit
45950bb3b6
16
keyboards/2_milk/2_milk.c
Normal file
16
keyboards/2_milk/2_milk.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* Copyright 2019 Sebastian Williams
|
||||
*
|
||||
* 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 "2_milk.h"
|
26
keyboards/2_milk/2_milk.h
Normal file
26
keyboards/2_milk/2_milk.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/* Copyright 2019 Sebastian Williams
|
||||
*
|
||||
* 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"
|
||||
|
||||
#define LAYOUT( \
|
||||
K00, \
|
||||
K01 \
|
||||
) { \
|
||||
{ K00 }, \
|
||||
{ K01 } \
|
||||
}
|
41
keyboards/2_milk/config.h
Normal file
41
keyboards/2_milk/config.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/* Copyright 2019 Sebastian Williams
|
||||
*
|
||||
* 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 0xFEED
|
||||
#define PRODUCT_ID 0xB195
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER rionlion100
|
||||
#define PRODUCT 2% Milk
|
||||
#define DESCRIPTION A milk themed 2% Keyboard
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 2
|
||||
#define MATRIX_COLS 1
|
||||
|
||||
/* Milk default pinout */
|
||||
#define DIRECT_PINS { \
|
||||
{D4}, \
|
||||
{C6} \
|
||||
}
|
||||
#define UNUSED_PINS
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
#define RGB_DI_PIN B6
|
||||
#define RGBLED_NUM 1
|
||||
#endif
|
15
keyboards/2_milk/info.json
Normal file
15
keyboards/2_milk/info.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"keyboard_name": "2% Milk",
|
||||
"keyboard_folder": "2_milk",
|
||||
"url": "",
|
||||
"maintainer": "rionlion100",
|
||||
"width": 1,
|
||||
"height": 2,
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"key_count": 2,
|
||||
"layout": [ {"x": 0, "y": 0 }, {"x": 0, "y": 1 }]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
8
keyboards/2_milk/keymaps/binary/keymap.c
Normal file
8
keyboards/2_milk/keymaps/binary/keymap.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_P0,
|
||||
KC_P1
|
||||
)
|
||||
};
|
2
keyboards/2_milk/keymaps/binary/readme.md
Normal file
2
keyboards/2_milk/keymaps/binary/readme.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Binary keymap
|
||||
0 and 1 that's it
|
9
keyboards/2_milk/keymaps/copypasta/keymap.c
Normal file
9
keyboards/2_milk/keymaps/copypasta/keymap.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
RCTL(KC_C),
|
||||
RCTL(KC_V)
|
||||
)
|
||||
};
|
2
keyboards/2_milk/keymaps/copypasta/readme.md
Normal file
2
keyboards/2_milk/keymaps/copypasta/readme.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Copy/Paste Keymap
|
||||
![Picture](https://i.imgur.com/7LMZZrL.png)
|
8
keyboards/2_milk/keymaps/default/keymap.c
Normal file
8
keyboards/2_milk/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_Z,
|
||||
KC_X
|
||||
)
|
||||
};
|
2
keyboards/2_milk/keymaps/default/readme.md
Normal file
2
keyboards/2_milk/keymaps/default/readme.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Default keymap for 2% Milk
|
||||
![Picture](https://i.imgur.com/9PsZ6wa.png)
|
31
keyboards/2_milk/keymaps/emoji/keymap.c
Normal file
31
keyboards/2_milk/keymaps/emoji/keymap.c
Normal file
|
@ -0,0 +1,31 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum custom_keycodes {
|
||||
DISSA,
|
||||
SHRUG
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
SHRUG,
|
||||
DISSA
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case SHRUG:
|
||||
if (record->event.pressed) {
|
||||
send_unicode_hex_string("00AF 005C 005F 0028 30C4 0029 005F 002F 00AF");
|
||||
} else {
|
||||
}
|
||||
break;
|
||||
case DISSA:
|
||||
if (record->event.pressed) {
|
||||
send_unicode_hex_string("0CA0 005F 0CA0");
|
||||
} else {
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
2
keyboards/2_milk/keymaps/emoji/readme.md
Normal file
2
keyboards/2_milk/keymaps/emoji/readme.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Emoji Keymap
|
||||
![Picture](https://i.imgur.com/1zEZ9Lq.png)
|
8
keyboards/2_milk/keymaps/excessbread/keymap.c
Normal file
8
keyboards/2_milk/keymaps/excessbread/keymap.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_LGUI,
|
||||
KC_F11
|
||||
)
|
||||
};
|
2
keyboards/2_milk/keymaps/excessbread/readme.md
Normal file
2
keyboards/2_milk/keymaps/excessbread/readme.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# ExcessBread's keymap
|
||||
requested by excessbread
|
8
keyboards/2_milk/keymaps/mouse/keymap.c
Normal file
8
keyboards/2_milk/keymaps/mouse/keymap.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_BTN1,
|
||||
KC_BTN2
|
||||
)
|
||||
};
|
2
keyboards/2_milk/keymaps/mouse/readme.md
Normal file
2
keyboards/2_milk/keymaps/mouse/readme.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# left and right mouse buttons
|
||||
requested by WanderingVagrant
|
19
keyboards/2_milk/readme.md
Normal file
19
keyboards/2_milk/readme.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 2% Milk
|
||||
|
||||
![2%Milk](https://i.imgur.com/Ud96uXn.png)
|
||||
|
||||
A 2% Meme board themed around a milk carton
|
||||
|
||||
Keyboard Maintainer: [Rionlion100](https://github.com/rionlion100)
|
||||
Hardware Availability: [Open Source](https://github.com/Rionlion100/Spaceboards/tree/master/Keyboards/2%25%20Milk)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make 2_milk: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).
|
||||
|
||||
### Credits
|
||||
+ Case design by Soft
|
||||
+ PCB by PyroL
|
||||
+ Name by jetpacktuxedo
|
34
keyboards/2_milk/rules.mk
Normal file
34
keyboards/2_milk/rules.mk
Normal file
|
@ -0,0 +1,34 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Processor frequency.
|
||||
F_CPU = 16000000
|
||||
|
||||
#
|
||||
# LUFA specific
|
||||
#
|
||||
# Target architecture (see library "Board Types" documentation).
|
||||
ARCH = AVR8
|
||||
|
||||
# Input clock frequency.
|
||||
F_USB = $(F_CPU)
|
||||
|
||||
# Bootloader
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Interrupt driven control endpoint task(+60)
|
||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = no # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # 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 = no # Custom backlighting code is used, so this should not be enabled
|
||||
AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below
|
||||
RGBLIGHT_ENABLE = yes # This can be enabled if a ws2812 strip is connected to the expansion port.
|
Loading…
Reference in a new issue