My new macropad (#43)
* adding support for the PASSWORD board its a project im working on and a really nice macropad * just getting rid of the old keymap * fixed * fixed again
This commit is contained in:
parent
524b182447
commit
68cc1e9e2e
55
keyboards/password/config.h
Normal file
55
keyboards/password/config.h
Normal file
@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0x6060
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER ll3macorn
|
||||
#define PRODUCT The Password
|
||||
#define DESCRIPTION breh
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 1
|
||||
#define MATRIX_COLS 8
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { B5 }
|
||||
#define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F6, F5 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* number of backlight levels */
|
||||
|
||||
#ifdef BACKLIGHT_PIN
|
||||
#define BACKLIGHT_LEVELS 0
|
||||
#endif
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCING_DELAY 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* key combination for command */
|
||||
#define IS_COMMAND() ( \
|
||||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||
)
|
||||
|
||||
/* prevent stuck modifiers */
|
||||
#define PREVENT_STUCK_MODIFIERS
|
||||
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
#define RGBLED_NUM 0
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#endif
|
22
keyboards/password/info.json
Normal file
22
keyboards/password/info.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"keyboard_name": "THE PASSWORD",
|
||||
"url": "",
|
||||
"maintainer": "ll3macorn",
|
||||
"width": 8,
|
||||
"height": 1,
|
||||
"layouts": {
|
||||
"PASSWORD": {
|
||||
"layout": [
|
||||
{"x":0, "y":0},
|
||||
{"x":1, "y":0},
|
||||
{"x":2, "y":0},
|
||||
{"x":3, "y":0},
|
||||
{"x":4, "y":0},
|
||||
{"x":5, "y":0},
|
||||
{"x":6, "y":0},
|
||||
{"x":7, "y":0}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
3
keyboards/password/keymaps/default/config.h
Normal file
3
keyboards/password/keymaps/default/config.h
Normal file
@ -0,0 +1,3 @@
|
||||
#define VIAL_KEYBOARD_UID {0xDF, 0xEB, 0xA5, 0x7B, 0xEC, 0x65, 0x2B, 0x5D}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 7 }
|
9
keyboards/password/keymaps/default/keymap.c
Normal file
9
keyboards/password/keymaps/default/keymap.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(KC_P, KC_A, KC_S, KC_S, KC_W, KC_O, KC_R, KC_D),
|
||||
[1] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
[2] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
[3] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
};
|
||||
|
0
keyboards/password/keymaps/default/rules.mk
Normal file
0
keyboards/password/keymaps/default/rules.mk
Normal file
27
keyboards/password/keymaps/default/vial.json
Normal file
27
keyboards/password/keymaps/default/vial.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "The PASSWORD",
|
||||
"vendorId": "0xFEED",
|
||||
"productId": "0x6060",
|
||||
"lighting": "none",
|
||||
"matrix": {
|
||||
"rows": 1,
|
||||
"cols": 8
|
||||
},
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
[
|
||||
{
|
||||
"c": "#00589f"
|
||||
},
|
||||
"0,0",
|
||||
"0,1",
|
||||
"0,2",
|
||||
"0,3",
|
||||
"0,4",
|
||||
"0,5",
|
||||
"0,6",
|
||||
"0,7"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
3
keyboards/password/keymaps/vial/config.h
Normal file
3
keyboards/password/keymaps/vial/config.h
Normal file
@ -0,0 +1,3 @@
|
||||
#define VIAL_KEYBOARD_UID {0xDF, 0xEB, 0xA5, 0x7B, 0xEC, 0x65, 0x2B, 0x5D}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 7 }
|
9
keyboards/password/keymaps/vial/keymap.c
Normal file
9
keyboards/password/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(KC_P, KC_A, KC_S, KC_S, KC_W, KC_O, KC_R, KC_D),
|
||||
[1] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
[2] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
[3] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
};
|
||||
|
2
keyboards/password/keymaps/vial/rules.mk
Normal file
2
keyboards/password/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,2 @@
|
||||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
27
keyboards/password/keymaps/vial/vial.json
Normal file
27
keyboards/password/keymaps/vial/vial.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "The PASSWORD",
|
||||
"vendorId": "0xFEED",
|
||||
"productId": "0x6060",
|
||||
"lighting": "none",
|
||||
"matrix": {
|
||||
"rows": 1,
|
||||
"cols": 8
|
||||
},
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
[
|
||||
{
|
||||
"c": "#00589f"
|
||||
},
|
||||
"0,0",
|
||||
"0,1",
|
||||
"0,2",
|
||||
"0,3",
|
||||
"0,4",
|
||||
"0,5",
|
||||
"0,6",
|
||||
"0,7"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
1
keyboards/password/password.c
Normal file
1
keyboards/password/password.c
Normal file
@ -0,0 +1 @@
|
||||
#include "password.h"
|
9
keyboards/password/password.h
Normal file
9
keyboards/password/password.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef KB_H
|
||||
#define KB_H
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( K00, K01, K02, K03, K04, K05, K06, K07 ) { { K00, K01, K02, K03, K04, K05, K06, K07 } }
|
||||
|
||||
|
||||
#endif
|
15
keyboards/password/rules.mk
Normal file
15
keyboards/password/rules.mk
Normal file
@ -0,0 +1,15 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE ?= no # Console for debug(+400)
|
||||
COMMAND_ENABLE ?= no # 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 # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE ?= no
|
||||
RGBLIGHT_ENABLE ?= no
|
Loading…
Reference in New Issue
Block a user