aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/2_milk/2_milk.c16
-rw-r--r--keyboards/2_milk/2_milk.h26
-rw-r--r--keyboards/2_milk/config.h41
-rw-r--r--keyboards/2_milk/info.json15
-rw-r--r--keyboards/2_milk/keymaps/binary/keymap.c8
-rw-r--r--keyboards/2_milk/keymaps/binary/readme.md2
-rw-r--r--keyboards/2_milk/keymaps/copypasta/keymap.c9
-rw-r--r--keyboards/2_milk/keymaps/copypasta/readme.md2
-rw-r--r--keyboards/2_milk/keymaps/default/keymap.c8
-rw-r--r--keyboards/2_milk/keymaps/default/readme.md2
-rw-r--r--keyboards/2_milk/keymaps/emoji/keymap.c31
-rw-r--r--keyboards/2_milk/keymaps/emoji/readme.md2
-rw-r--r--keyboards/2_milk/keymaps/excessbread/keymap.c8
-rw-r--r--keyboards/2_milk/keymaps/excessbread/readme.md2
-rw-r--r--keyboards/2_milk/keymaps/mouse/keymap.c8
-rw-r--r--keyboards/2_milk/keymaps/mouse/readme.md2
-rw-r--r--keyboards/2_milk/readme.md19
-rw-r--r--keyboards/2_milk/rules.mk34
18 files changed, 235 insertions, 0 deletions
diff --git a/keyboards/2_milk/2_milk.c b/keyboards/2_milk/2_milk.c
new file mode 100644
index 000000000..36d50e9c7
--- /dev/null
+++ b/keyboards/2_milk/2_milk.c
@@ -0,0 +1,16 @@
1/* Copyright 2019 Sebastian Williams
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "2_milk.h"
diff --git a/keyboards/2_milk/2_milk.h b/keyboards/2_milk/2_milk.h
new file mode 100644
index 000000000..8f294817f
--- /dev/null
+++ b/keyboards/2_milk/2_milk.h
@@ -0,0 +1,26 @@
1/* Copyright 2019 Sebastian Williams
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19
20#define LAYOUT( \
21 K00, \
22 K01 \
23) { \
24 { K00 }, \
25 { K01 } \
26}
diff --git a/keyboards/2_milk/config.h b/keyboards/2_milk/config.h
new file mode 100644
index 000000000..9e7228b17
--- /dev/null
+++ b/keyboards/2_milk/config.h
@@ -0,0 +1,41 @@
1/* Copyright 2019 Sebastian Williams
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17#include "config_common.h"
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0xFEED
21#define PRODUCT_ID 0xB195
22#define DEVICE_VER 0x0001
23#define MANUFACTURER rionlion100
24#define PRODUCT 2% Milk
25#define DESCRIPTION A milk themed 2% Keyboard
26
27/* key matrix size */
28#define MATRIX_ROWS 2
29#define MATRIX_COLS 1
30
31/* Milk default pinout */
32#define DIRECT_PINS { \
33 {D4}, \
34 {C6} \
35}
36#define UNUSED_PINS
37
38#ifdef RGBLIGHT_ENABLE
39#define RGB_DI_PIN B6
40#define RGBLED_NUM 1
41#endif
diff --git a/keyboards/2_milk/info.json b/keyboards/2_milk/info.json
new file mode 100644
index 000000000..0acf002f9
--- /dev/null
+++ b/keyboards/2_milk/info.json
@@ -0,0 +1,15 @@
1{
2 "keyboard_name": "2% Milk",
3 "keyboard_folder": "2_milk",
4 "url": "",
5 "maintainer": "rionlion100",
6 "width": 1,
7 "height": 2,
8 "layouts": {
9 "LAYOUT": {
10 "key_count": 2,
11 "layout": [ {"x": 0, "y": 0 }, {"x": 0, "y": 1 }]
12 }
13 }
14}
15
diff --git a/keyboards/2_milk/keymaps/binary/keymap.c b/keyboards/2_milk/keymaps/binary/keymap.c
new file mode 100644
index 000000000..c8df8e9ff
--- /dev/null
+++ b/keyboards/2_milk/keymaps/binary/keymap.c
@@ -0,0 +1,8 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 KC_P0,
6 KC_P1
7 )
8};
diff --git a/keyboards/2_milk/keymaps/binary/readme.md b/keyboards/2_milk/keymaps/binary/readme.md
new file mode 100644
index 000000000..5ebcbd3e5
--- /dev/null
+++ b/keyboards/2_milk/keymaps/binary/readme.md
@@ -0,0 +1,2 @@
1# Binary keymap
20 and 1 that's it
diff --git a/keyboards/2_milk/keymaps/copypasta/keymap.c b/keyboards/2_milk/keymaps/copypasta/keymap.c
new file mode 100644
index 000000000..b9b8005a0
--- /dev/null
+++ b/keyboards/2_milk/keymaps/copypasta/keymap.c
@@ -0,0 +1,9 @@
1
2#include QMK_KEYBOARD_H
3
4const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5 [0] = LAYOUT(
6 RCTL(KC_C),
7 RCTL(KC_V)
8 )
9};
diff --git a/keyboards/2_milk/keymaps/copypasta/readme.md b/keyboards/2_milk/keymaps/copypasta/readme.md
new file mode 100644
index 000000000..6c2f4e8fb
--- /dev/null
+++ b/keyboards/2_milk/keymaps/copypasta/readme.md
@@ -0,0 +1,2 @@
1# Copy/Paste Keymap
2![Picture](https://i.imgur.com/7LMZZrL.png)
diff --git a/keyboards/2_milk/keymaps/default/keymap.c b/keyboards/2_milk/keymaps/default/keymap.c
new file mode 100644
index 000000000..1f327eee9
--- /dev/null
+++ b/keyboards/2_milk/keymaps/default/keymap.c
@@ -0,0 +1,8 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 KC_Z,
6 KC_X
7 )
8};
diff --git a/keyboards/2_milk/keymaps/default/readme.md b/keyboards/2_milk/keymaps/default/readme.md
new file mode 100644
index 000000000..4482bce34
--- /dev/null
+++ b/keyboards/2_milk/keymaps/default/readme.md
@@ -0,0 +1,2 @@
1# Default keymap for 2% Milk
2![Picture](https://i.imgur.com/9PsZ6wa.png)
diff --git a/keyboards/2_milk/keymaps/emoji/keymap.c b/keyboards/2_milk/keymaps/emoji/keymap.c
new file mode 100644
index 000000000..9b84df5c2
--- /dev/null
+++ b/keyboards/2_milk/keymaps/emoji/keymap.c
@@ -0,0 +1,31 @@
1#include QMK_KEYBOARD_H
2
3enum custom_keycodes {
4 DISSA,
5 SHRUG
6};
7
8const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
9 [0] = LAYOUT(
10 SHRUG,
11 DISSA
12 )
13};
14
15bool process_record_user(uint16_t keycode, keyrecord_t *record) {
16 switch (keycode) {
17 case SHRUG:
18 if (record->event.pressed) {
19 send_unicode_hex_string("00AF 005C 005F 0028 30C4 0029 005F 002F 00AF");
20 } else {
21 }
22 break;
23 case DISSA:
24 if (record->event.pressed) {
25 send_unicode_hex_string("0CA0 005F 0CA0");
26 } else {
27 }
28 break;
29 }
30 return true;
31};
diff --git a/keyboards/2_milk/keymaps/emoji/readme.md b/keyboards/2_milk/keymaps/emoji/readme.md
new file mode 100644
index 000000000..980be7dd5
--- /dev/null
+++ b/keyboards/2_milk/keymaps/emoji/readme.md
@@ -0,0 +1,2 @@
1# Emoji Keymap
2![Picture](https://i.imgur.com/1zEZ9Lq.png)
diff --git a/keyboards/2_milk/keymaps/excessbread/keymap.c b/keyboards/2_milk/keymaps/excessbread/keymap.c
new file mode 100644
index 000000000..a01b47f27
--- /dev/null
+++ b/keyboards/2_milk/keymaps/excessbread/keymap.c
@@ -0,0 +1,8 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 KC_LGUI,
6 KC_F11
7 )
8};
diff --git a/keyboards/2_milk/keymaps/excessbread/readme.md b/keyboards/2_milk/keymaps/excessbread/readme.md
new file mode 100644
index 000000000..a6535e62c
--- /dev/null
+++ b/keyboards/2_milk/keymaps/excessbread/readme.md
@@ -0,0 +1,2 @@
1# ExcessBread's keymap
2requested by excessbread
diff --git a/keyboards/2_milk/keymaps/mouse/keymap.c b/keyboards/2_milk/keymaps/mouse/keymap.c
new file mode 100644
index 000000000..a8ba44fb4
--- /dev/null
+++ b/keyboards/2_milk/keymaps/mouse/keymap.c
@@ -0,0 +1,8 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 KC_BTN1,
6 KC_BTN2
7 )
8};
diff --git a/keyboards/2_milk/keymaps/mouse/readme.md b/keyboards/2_milk/keymaps/mouse/readme.md
new file mode 100644
index 000000000..8ecb99edd
--- /dev/null
+++ b/keyboards/2_milk/keymaps/mouse/readme.md
@@ -0,0 +1,2 @@
1# left and right mouse buttons
2requested by WanderingVagrant
diff --git a/keyboards/2_milk/readme.md b/keyboards/2_milk/readme.md
new file mode 100644
index 000000000..ce0f216bb
--- /dev/null
+++ b/keyboards/2_milk/readme.md
@@ -0,0 +1,19 @@
1# 2% Milk
2
3![2%Milk](https://i.imgur.com/Ud96uXn.png)
4
5A 2% Meme board themed around a milk carton
6
7Keyboard Maintainer: [Rionlion100](https://github.com/rionlion100)
8Hardware Availability: [Open Source](https://github.com/Rionlion100/Spaceboards/tree/master/Keyboards/2%25%20Milk)
9
10Make example for this keyboard (after setting up your build environment):
11
12 make 2_milk:default
13
14See 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
16### Credits
17+ Case design by Soft
18+ PCB by PyroL
19+ Name by jetpacktuxedo
diff --git a/keyboards/2_milk/rules.mk b/keyboards/2_milk/rules.mk
new file mode 100644
index 000000000..73f55f953
--- /dev/null
+++ b/keyboards/2_milk/rules.mk
@@ -0,0 +1,34 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5F_CPU = 16000000
6
7#
8# LUFA specific
9#
10# Target architecture (see library "Board Types" documentation).
11ARCH = AVR8
12
13# Input clock frequency.
14F_USB = $(F_CPU)
15
16# Bootloader
17BOOTLOADER = caterina
18
19# Interrupt driven control endpoint task(+60)
20OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
21
22# Build Options
23# comment out to disable the options.
24#
25BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
26MOUSEKEY_ENABLE = no # Mouse keys(+4700)
27EXTRAKEY_ENABLE = no # Audio control and System control(+450)
28CONSOLE_ENABLE = yes # Console for debug(+400)
29COMMAND_ENABLE = yes # Commands for debug and configuration
30SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
31NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
32BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not be enabled
33AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below
34RGBLIGHT_ENABLE = yes # This can be enabled if a ws2812 strip is connected to the expansion port.