aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEriq M. Adams <eriq.adams@gmail.com>2019-10-24 06:34:44 +0700
committernoroadsleft <18669334+noroadsleft@users.noreply.github.com>2019-10-23 16:34:44 -0700
commite264f0151da0025dbb53dfc5a70bce13105a04d8 (patch)
treec4c9fb6ac5625fe189152a7af05bb628e61bc75a
parentb62ee65c6d809bd10b4cd98c835a4a501a39b880 (diff)
downloadqmk_firmware-e264f0151da0025dbb53dfc5a70bce13105a04d8.tar.gz
qmk_firmware-e264f0151da0025dbb53dfc5a70bce13105a04d8.zip
[Keyboard] Blackplum a.k.a IMKG68 - new 68% mechanical keyboard (#7122)
* Add blackplum firmware blackplum firmware * Delete blackplum.c * Delete blackplum.h * Delete config.h * Delete info.json * Delete rules.mk * Delete keymap.c * Update readme.md * Delete readme.md * Add Blackplum * Add image: blackplum layout * Update readme.md * Update readme.md * remove _WINLCK layer, replaced with custom_keycodes * change #define LAYOUT_68 to #define LAYOUT_68_ansi * change DEBOUNCING_DELAY to DEBOUNCE, remove IS_COMMAND() * change keyboard_name, maintainer, url, width height * change some comments * Update readme * LAYOUTS = 68_ansi * update layout_68_ansi * Change LAYOUT_68 to LAYOUT_68_ansi Co-Authored-By: fauxpark <fauxpark@gmail.com> * Fix Bug * remove extern keymap_config_t keymap_config; * Update config.h * Update config.h * Update config.h * Update keyboards/blackplum/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update rules.mk * Update rules.mk * Update readme.md * Update readme.md
-rw-r--r--keyboards/blackplum/blackplum.c1
-rw-r--r--keyboards/blackplum/blackplum.h22
-rw-r--r--keyboards/blackplum/config.h39
-rw-r--r--keyboards/blackplum/info.json12
-rw-r--r--keyboards/blackplum/keymaps/default/keymap.c43
-rw-r--r--keyboards/blackplum/readme.md14
-rw-r--r--keyboards/blackplum/rules.mk27
7 files changed, 158 insertions, 0 deletions
diff --git a/keyboards/blackplum/blackplum.c b/keyboards/blackplum/blackplum.c
new file mode 100644
index 000000000..ea8d34e9d
--- /dev/null
+++ b/keyboards/blackplum/blackplum.c
@@ -0,0 +1 @@
#include "blackplum.h"
diff --git a/keyboards/blackplum/blackplum.h b/keyboards/blackplum/blackplum.h
new file mode 100644
index 000000000..fbd781473
--- /dev/null
+++ b/keyboards/blackplum/blackplum.h
@@ -0,0 +1,22 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT_68_ansi( \
6 K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K17, \
7 K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K37, \
8 K40, K50, K41, K51, K42, K52, K43, K53, K44, K54, K45, K55, K46, \
9 K60, K70, K61, K71, K62, K72, K63, K73, K64, K74, K65, K75, K66, \
10 K80, K81, K82, K83, K84, K85, K86, K76, K67, K77\
11) { \
12 { K00, K01, K02, K03, K04, K05, K06, K07 }, \
13 { K10, K11, K12, K13, K14, K15, K16, K17 }, \
14 { K20, K21, K22, K23, K24, K25, K26, K27 }, \
15 { K30, K31, K32, K33, K34, K35, K36, K37 }, \
16 { K40, K41, K42, K43, K44, K45, K46 }, \
17 { K50, K51, K52, K53, K54, K55 }, \
18 { K60, K61, K62, K63, K64, K65, K66, K67 }, \
19 { K70, K71, K72, K73, K74, K75, K76, K77 }, \
20 { K80, K81, K82, K83, K84, K85, K86 } \
21}
22
diff --git a/keyboards/blackplum/config.h b/keyboards/blackplum/config.h
new file mode 100644
index 000000000..0fd7e21cb
--- /dev/null
+++ b/keyboards/blackplum/config.h
@@ -0,0 +1,39 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0xFADE
8#define DEVICE_VER 0x0001
9#define MANUFACTURER Pixlup
10#define PRODUCT Blackplum Keeb
11#define DESCRIPTION Blackplum 68 Percent Mechanical Keyboard
12
13/* key matrix size */
14#define MATRIX_ROWS 9
15#define MATRIX_COLS 8
16
17/* key matrix pins */
18#define MATRIX_ROW_PINS { C6, B6, B4, B5, D6, D7, D5, D3, D4 }
19#define MATRIX_COL_PINS { D0, D1, D2, F7, F6, F5, F4, F1 }
20#define UNUSED_PINS
21
22/* Set 0 if debouncing isn't needed */
23#define DEBOUNCE 5
24
25/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
26#define LOCKING_SUPPORT_ENABLE
27
28/* Locking resynchronize hack */
29#define LOCKING_RESYNC_ENABLE
30
31
32/* ws2812 RGB LED */
33#define RGB_DI_PIN C7
34#define RGBLIGHT_ANIMATIONS
35#define RGBLED_NUM 16 // Number of LEDs
36#define RGBLIGHT_HUE_STEP 10
37#define RGBLIGHT_SAT_STEP 10
38#define RGBLIGHT_VAL_STEP 10
39#define RGBLIGHT_SLEEP
diff --git a/keyboards/blackplum/info.json b/keyboards/blackplum/info.json
new file mode 100644
index 000000000..8e3efc873
--- /dev/null
+++ b/keyboards/blackplum/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "blackplum",
3 "url": "www.tokopedia.com/pixlup",
4 "maintainer": "eriqadams",
5 "width": 17.25,
6 "height": 5.25,
7 "layouts": {
8 "LAYOUT_68_ansi": {
9 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0, "w":2}, {"label":"Insert", "x":15.25, "y":0}, {"label":"PgUp", "x":16.25, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Delete", "x":15.25, "y":1}, {"label":"PgDn", "x":16.25, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":2.75}, {"label":"\u2191", "x":15.25, "y":3.25}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"OS", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"Alt", "x":10, "y":4, "w":1.25}, {"label":"Fn", "x":11.25, "y":4, "w":1.25}, {"label":"Ctrl", "x":12.5, "y":4, "w":1.25}, {"label":"\u2190", "x":14.25, "y":4.25}, {"label":"\u2193", "x":15.25, "y":4.25}, {"label":"\u2192", "x":16.25, "y":4.25}]
10 }
11 }
12}
diff --git a/keyboards/blackplum/keymaps/default/keymap.c b/keyboards/blackplum/keymaps/default/keymap.c
new file mode 100644
index 000000000..5eccfd66b
--- /dev/null
+++ b/keyboards/blackplum/keymaps/default/keymap.c
@@ -0,0 +1,43 @@
1#include QMK_KEYBOARD_H
2
3// Each layer gets a name for readability, which is then used in the keymap matrix below.
4// The underscores don't mean anything - you can have a layer called STUFF or any other name.
5// Layer names don't all need to be of the same length, obviously, and you can also skip them
6// entirely and just use numbers.
7#define _BASE 0
8#define _FN 1
9
10
11
12enum custom_keycodes {
13 TG_GUI = SAFE_RANGE
14};
15
16const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
17 [_BASE] = LAYOUT_68_ansi(
18 KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_PGUP,\
19 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_PGDOWN,\
20 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,\
21 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,\
22 KC_LCTL , KC_LGUI , KC_LALT , KC_SPC , KC_RALT , MO(_FN) , KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
23 ),
24
25 [_FN] = LAYOUT_68_ansi(
26 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_MPLY, KC_HOME,\
27 _______, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUSE, _______, KC_MUTE, KC_END,\
28 _______, RGB_TOG, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______,\
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU,\
30 _______, TG_GUI,_______, RESET, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT
31 )
32};
33
34bool process_record_user(uint16_t keycode, keyrecord_t *record) {
35 if(record->event.pressed) {
36 switch(keycode) {
37 case TG_GUI:
38 keymap_config.no_gui ^= 1;
39 return false;
40 }
41 }
42 return true;
43}
diff --git a/keyboards/blackplum/readme.md b/keyboards/blackplum/readme.md
new file mode 100644
index 000000000..cd506a342
--- /dev/null
+++ b/keyboards/blackplum/readme.md
@@ -0,0 +1,14 @@
1# Blackplum
2![Blackplum](https://i.imgur.com/EOUQk4J.png)
3
4Blackplum a.k.a IMKG68 (which IMKG stands for Indonesian Mechanical Keyboard Group) is an 68% mechanical keyboard with RGB Underglow come with new layout you have never seen before. Recently the pcb and kits only available for purchase in Indonesia.
5
6Keyboard Maintainer: [eriqadams](https://github.com/eriqadams)
7Hardware Supported: Blackplum PCB, ATMEGA32u4-au MCU
8Hardware Availability: [If you're in Indonesia you can purchase here](https://tokopedia.com/pixlup)
9
10Make example for this keyboard (after setting up your build environment):
11
12 make blackplum: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).
diff --git a/keyboards/blackplum/rules.mk b/keyboards/blackplum/rules.mk
new file mode 100644
index 000000000..6465dec7f
--- /dev/null
+++ b/keyboards/blackplum/rules.mk
@@ -0,0 +1,27 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5# Teensy halfkay
6# Pro Micro caterina
7# Atmel DFU atmel-dfu
8# LUFA DFU lufa-dfu
9# QMK DFU qmk-dfu
10# ATmega32A bootloadHID
11BOOTLOADER = qmk-dfu
12
13# Build Options
14# comment out to disable the options.
15#
16BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
17MOUSEKEY_ENABLE = yes # Mouse keys
18EXTRAKEY_ENABLE = yes # Audio control and System control
19CONSOLE_ENABLE = no # Console for debug
20COMMAND_ENABLE = no # Commands for debug and configuration
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24AUDIO_ENABLE = no
25RGBLIGHT_ENABLE = yes
26
27LAYOUTS = 68_ansi