mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-10 01:42:09 +00:00
added nibell micropad
This commit is contained in:
parent
a6521b8521
commit
2d95cc664e
20
keyboards/nibell/mpad6/config.h
Normal file
20
keyboards/nibell/mpad6/config.h
Normal file
@ -0,0 +1,20 @@
|
||||
// Copyright 2023 nibell (@nibell)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
*/
|
||||
|
||||
/* disable debug print */
|
||||
//#define NO_DEBUG
|
||||
|
||||
/* disable print */
|
||||
//#define NO_PRINT
|
||||
|
||||
/* disable action features */
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
39
keyboards/nibell/mpad6/info.json
Normal file
39
keyboards/nibell/mpad6/info.json
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"manufacturer": "nibell",
|
||||
"keyboard_name": "nibell/mpad6",
|
||||
"maintainer": "nibell",
|
||||
"bootloader": "rp2040",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["GP12", "GP11", "GP10"],
|
||||
"rows": ["GP4", "GP5"]
|
||||
},
|
||||
"processor": "RP2040",
|
||||
"url": "",
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x0000",
|
||||
"vid": "0xFEED"
|
||||
},
|
||||
"community_layouts": ["ortho_2x3"],
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_2x3": {
|
||||
"layout": [
|
||||
{"x": 0, "y": 0, "matrix": [0, 0]},
|
||||
{"x": 1, "y": 0, "matrix": [0, 1]},
|
||||
{"x": 2, "y": 0, "matrix": [0, 2]},
|
||||
{"x": 0, "y": 1, "matrix": [1, 0]},
|
||||
{"x": 1, "y": 1, "matrix": [1, 1]},
|
||||
{"x": 2, "y": 1, "matrix": [1, 2]}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
18
keyboards/nibell/mpad6/keymaps/default/keymap.c
Normal file
18
keyboards/nibell/mpad6/keymaps/default/keymap.c
Normal file
@ -0,0 +1,18 @@
|
||||
// Copyright 2023 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* ┌───┬────────┬───────┐
|
||||
* │ 1 │ 2 │ 3 │
|
||||
* ├───┼────────┼───────┤
|
||||
* │ 4 │ RSHIFT │ RCTRL │
|
||||
* └───┴────────┴───────┘
|
||||
*/
|
||||
[0] = LAYOUT_ortho_2x3(
|
||||
KC_1, KC_2, KC_3,
|
||||
KC_4, KC_RIGHT_SHIFT, KC_RIGHT_CTRL
|
||||
)
|
||||
};
|
27
keyboards/nibell/mpad6/readme.md
Normal file
27
keyboards/nibell/mpad6/readme.md
Normal file
@ -0,0 +1,27 @@
|
||||
# nibell/mpad6
|
||||
|
||||

|
||||
|
||||
*A short description of the keyboard/project*
|
||||
|
||||
* Keyboard Maintainer: [nibell](https://github.com/nibell)
|
||||
* Hardware Supported: *The PCBs, controllers supported*
|
||||
* Hardware Availability: *Links to where you can find this hardware*
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make nibell/mpad6:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make nibell/mpad6:default:flash
|
||||
|
||||
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).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
1
keyboards/nibell/mpad6/rules.mk
Normal file
1
keyboards/nibell/mpad6/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
# This file intentionally left blank
|
22
keyboards/nibell/rp2040/config.h
Normal file
22
keyboards/nibell/rp2040/config.h
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright 2022 Stefan Kerkmann
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define DEBUG_MATRIX_SCAN_RATE
|
||||
|
||||
#define QMK_WAITING_TEST_BUSY_PIN GP8
|
||||
#define QMK_WAITING_TEST_YIELD_PIN GP9
|
||||
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
|
||||
|
||||
#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B
|
||||
|
||||
#define AUDIO_PIN GP16
|
||||
#define AUDIO_PWM_DRIVER PWMD0
|
||||
#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A
|
||||
|
||||
#define ADC_PIN GP26
|
10
keyboards/nibell/rp2040/halconf.h
Normal file
10
keyboards/nibell/rp2040/halconf.h
Normal file
@ -0,0 +1,10 @@
|
||||
// Copyright 2022 Stefan Kerkmann
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_I2C TRUE
|
||||
#define HAL_USE_PWM TRUE
|
||||
#define HAL_USE_ADC TRUE
|
||||
|
||||
#include_next <halconf.h>
|
15
keyboards/nibell/rp2040/info.json
Normal file
15
keyboards/nibell/rp2040/info.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"keyboard_name": "Onekey RP2040",
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"matrix_pins": {
|
||||
"cols": ["GP4"],
|
||||
"rows": ["GP5"]
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "GP25"
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "GP25"
|
||||
}
|
||||
}
|
7
keyboards/nibell/rp2040/keymaps/default/keymap.c
Normal file
7
keyboards/nibell/rp2040/keymaps/default/keymap.c
Normal file
@ -0,0 +1,7 @@
|
||||
// Copyright 2020 QMK
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
LAYOUT_ortho_1x1(KC_A)
|
||||
};
|
12
keyboards/nibell/rp2040/mcuconf.h
Normal file
12
keyboards/nibell/rp2040/mcuconf.h
Normal file
@ -0,0 +1,12 @@
|
||||
// Copyright 2022 Stefan Kerkmann
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
#undef RP_PWM_USE_PWM0
|
||||
#define RP_PWM_USE_PWM0 TRUE
|
||||
|
||||
#undef RP_PWM_USE_PWM4
|
||||
#define RP_PWM_USE_PWM4 TRUE
|
12
keyboards/nibell/rp2040/readme.md
Normal file
12
keyboards/nibell/rp2040/readme.md
Normal file
@ -0,0 +1,12 @@
|
||||
# Raspberry Pi 2040 onekey
|
||||
|
||||
To trigger keypress, short together pins *GP4* and *GP5*.
|
||||
|
||||
Double-tap reset to enter bootloader mode. Copy the built uf2 file to the device by dragging the file to the new USB disk.
|
||||
|
||||
## Supported Hardware
|
||||
|
||||
* Raspberry Pi Pico
|
||||
* SparkFun Pro Micro - RP2040
|
||||
* Adafruit KB2040 - RP2040 Kee Boar
|
||||
* ...and many more RP2040 based development boards
|
0
keyboards/nibell/rp2040/rules.mk
Normal file
0
keyboards/nibell/rp2040/rules.mk
Normal file
Loading…
Reference in New Issue
Block a user