aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Hao Wong <54234367+wongyuhao@users.noreply.github.com>2020-07-30 06:15:53 +0800
committerGitHub <noreply@github.com>2020-07-29 15:15:53 -0700
commitb3e7a4e798080563d64527e3fe9d6475ba375d94 (patch)
tree0984deeb722e92c9706b1b5654dbe8833195be06
parent0091897cc88caa0f7241def0e5d44539162cf634 (diff)
downloadqmk_firmware-b3e7a4e798080563d64527e3fe9d6475ba375d94.tar.gz
qmk_firmware-b3e7a4e798080563d64527e3fe9d6475ba375d94.zip
Added Via keymap to Spaceman 2% Milk (#9484)
* added via support to spaceman 2% milk * changed kc trns in layers 1-3 * changed vendor and product ID per creator suggestion
-rw-r--r--keyboards/spaceman/2_milk/config.h4
-rw-r--r--keyboards/spaceman/2_milk/keymaps/via/keymap.c20
-rw-r--r--keyboards/spaceman/2_milk/keymaps/via/readme.md2
-rw-r--r--keyboards/spaceman/2_milk/keymaps/via/rules.mk2
4 files changed, 26 insertions, 2 deletions
diff --git a/keyboards/spaceman/2_milk/config.h b/keyboards/spaceman/2_milk/config.h
index 49211535d..e30243ae1 100644
--- a/keyboards/spaceman/2_milk/config.h
+++ b/keyboards/spaceman/2_milk/config.h
@@ -17,8 +17,8 @@
17#include "config_common.h" 17#include "config_common.h"
18 18
19/* USB Device descriptor parameter */ 19/* USB Device descriptor parameter */
20#define VENDOR_ID 0xFEED 20#define VENDOR_ID 0x5342 // "SB"
21#define PRODUCT_ID 0xB195 21#define PRODUCT_ID 0x3225 // "2%"
22#define DEVICE_VER 0x0001 22#define DEVICE_VER 0x0001
23#define MANUFACTURER Spaceman 23#define MANUFACTURER Spaceman
24#define PRODUCT 2% Milk 24#define PRODUCT 2% Milk
diff --git a/keyboards/spaceman/2_milk/keymaps/via/keymap.c b/keyboards/spaceman/2_milk/keymaps/via/keymap.c
new file mode 100644
index 000000000..c848d9cb5
--- /dev/null
+++ b/keyboards/spaceman/2_milk/keymaps/via/keymap.c
@@ -0,0 +1,20 @@
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 [1] = LAYOUT(
9 _______,
10 _______
11 ),
12 [2] = LAYOUT(
13 _______,
14 _______
15 ),
16 [3] = LAYOUT(
17 _______,
18 _______
19 )
20};
diff --git a/keyboards/spaceman/2_milk/keymaps/via/readme.md b/keyboards/spaceman/2_milk/keymaps/via/readme.md
new file mode 100644
index 000000000..4482bce34
--- /dev/null
+++ b/keyboards/spaceman/2_milk/keymaps/via/readme.md
@@ -0,0 +1,2 @@
1# Default keymap for 2% Milk
2![Picture](https://i.imgur.com/9PsZ6wa.png)
diff --git a/keyboards/spaceman/2_milk/keymaps/via/rules.mk b/keyboards/spaceman/2_milk/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/spaceman/2_milk/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file