aboutsummaryrefslogtreecommitdiff
path: root/keyboards/clawsome
diff options
context:
space:
mode:
authorAlisGraveNil <63020540+AlisGraveNil@users.noreply.github.com>2020-07-27 22:03:54 -0400
committerGitHub <noreply@github.com>2020-07-27 19:03:54 -0700
commite999ade1003359d7b2a2d95036cd8de848726047 (patch)
tree232fde5c3f1c5bd4ace6dc7f8a89cb6397207b2c /keyboards/clawsome
parentf5fe6fe5cc352760971c374ed097f2fe4ad2427e (diff)
downloadqmk_firmware-e999ade1003359d7b2a2d95036cd8de848726047.tar.gz
qmk_firmware-e999ade1003359d7b2a2d95036cd8de848726047.zip
[Keyboard] Numeros macropad (#9725)
* First Push * Update config.h * Update numeros.c * Update numeros.h * Update rules.mk * Update keyboards/clawsome/numeros/keymaps/default/keymap.c * Update keyboards/clawsome/numeros/readme.md * Update keyboards/clawsome/numeros/rules.mk * Update keyboards/clawsome/numeros/info.json * Update keyboards/clawsome/numeros/info.json * Update keyboards/clawsome/numeros/rules.mk * Update keyboards/clawsome/numeros/numeros.h * Update keyboards/clawsome/numeros/info.json * Update keyboards/clawsome/numeros/keymaps/default/keymap.c * Update keyboards/clawsome/numeros/numeros.h * Update keyboards/clawsome/numeros/keymaps/default/keymap.c * Update keyboards/clawsome/numeros/numeros.c * Update keyboards/clawsome/numeros/config.h * Update keyboards/clawsome/numeros/rules.mk * Update keyboards/clawsome/numeros/readme.md * Update keyboards/clawsome/numeros/readme.md
Diffstat (limited to 'keyboards/clawsome')
-rw-r--r--keyboards/clawsome/numeros/config.h46
-rw-r--r--keyboards/clawsome/numeros/info.json35
-rw-r--r--keyboards/clawsome/numeros/keymaps/default/keymap.c40
-rw-r--r--keyboards/clawsome/numeros/numeros.c16
-rw-r--r--keyboards/clawsome/numeros/numeros.h32
-rw-r--r--keyboards/clawsome/numeros/readme.md13
-rw-r--r--keyboards/clawsome/numeros/rules.mk24
7 files changed, 206 insertions, 0 deletions
diff --git a/keyboards/clawsome/numeros/config.h b/keyboards/clawsome/numeros/config.h
new file mode 100644
index 000000000..4c873ffb8
--- /dev/null
+++ b/keyboards/clawsome/numeros/config.h
@@ -0,0 +1,46 @@
1/*
2Copyright 2020 AAClawson (AlisGraveNil)
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x7767
24#define PRODUCT_ID 0x0000
25#define DEVICE_VER 0x0001
26#define MANUFACTURER AlisGraveNil
27#define PRODUCT Los Numeros
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 4
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { D0, C6, B2, B6, B5 }
44#define MATRIX_COL_PINS { B3, E6, D7, D4 }
45
46#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/clawsome/numeros/info.json b/keyboards/clawsome/numeros/info.json
new file mode 100644
index 000000000..9576e6221
--- /dev/null
+++ b/keyboards/clawsome/numeros/info.json
@@ -0,0 +1,35 @@
1{
2 "keyboard_name": "numeros",
3 "url": "www.clawboards.xyz",
4 "maintainer": "AAClawson (AlisGraveNil)",
5 "width": 4,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_numpad_5x4": {
9 "layout": [
10 {"x":0, "y":0},
11 {"x":1, "y":0},
12 {"x":2, "y":0},
13 {"x":3, "y":0},
14
15 {"x":0, "y":1},
16 {"x":1, "y":1},
17 {"x":2, "y":1},
18
19 {"x":0, "y":2},
20 {"x":1, "y":2},
21 {"x":2, "y":2},
22 {"x":3, "y":1, "h":2},
23
24 {"x":0, "y":3},
25 {"x":1, "y":3},
26 {"x":2, "y":3},
27
28 {"x":0, "y":4, "w":2},
29 {"x":2, "y":4},
30 {"x":3, "y":3, "h":2}
31 ]
32 }
33 }
34 ,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
35}
diff --git a/keyboards/clawsome/numeros/keymaps/default/keymap.c b/keyboards/clawsome/numeros/keymaps/default/keymap.c
new file mode 100644
index 000000000..6862913ca
--- /dev/null
+++ b/keyboards/clawsome/numeros/keymaps/default/keymap.c
@@ -0,0 +1,40 @@
1/* Copyright 2020 AAClawson (AlisGraveNil)
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 QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 /*
20 * ---------------------
21 * |NUM | / | * | - |
22 * ---------------------
23 * | 7 | 8 | 9 | + |
24 * ---------------| |
25 * | 4 | 5 | 6 | |
26 * ---------------------
27 * | 1 | 2 | 3 |ENT |
28 * ---------------| |
29 * | 0 | . | |
30 * ---------------------
31 */
32 [0] = LAYOUT_numpad_5x4(
33 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
34 KC_P7, KC_P8, KC_P9,
35 KC_P4, KC_P5, KC_P6, KC_PPLS,
36 KC_P1, KC_P2, KC_P3,
37 KC_P0, KC_PDOT, KC_PENT
38 ),
39
40};
diff --git a/keyboards/clawsome/numeros/numeros.c b/keyboards/clawsome/numeros/numeros.c
new file mode 100644
index 000000000..daa7fb1b8
--- /dev/null
+++ b/keyboards/clawsome/numeros/numeros.c
@@ -0,0 +1,16 @@
1/* Copyright 2020 AAClawson (AlisGraveNil)
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 "numeros.h"
diff --git a/keyboards/clawsome/numeros/numeros.h b/keyboards/clawsome/numeros/numeros.h
new file mode 100644
index 000000000..a7a8ee1e0
--- /dev/null
+++ b/keyboards/clawsome/numeros/numeros.h
@@ -0,0 +1,32 @@
1/* Copyright 2020 AAClawson (AlisGraveNil)
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_numpad_5x4( \
21 K00, K01, K02, K03, \
22 K10, K11, K12, \
23 K20, K21, K22, K13, \
24 K30, K31, K32, \
25 K40, K42, K33 \
26) { \
27 { K00, K01, K02, K03 }, \
28 { K10, K11, K12, K13 }, \
29 { K20, K21, K22, KC_NO }, \
30 { K30, K31, K32, K33 }, \
31 { K40, KC_NO, K42, KC_NO }, \
32}
diff --git a/keyboards/clawsome/numeros/readme.md b/keyboards/clawsome/numeros/readme.md
new file mode 100644
index 000000000..897f01304
--- /dev/null
+++ b/keyboards/clawsome/numeros/readme.md
@@ -0,0 +1,13 @@
1# Numeros
2
3This is a 5x4 numberpad.
4
5* Keyboard Maintainer: [AAClawson](https://github.com/AlisGraveNil)
6* Hardware Supported: Los Numeros, Pro Micro, Elite-C
7* Hardware Availability: www.clawboards.xyz
8
9Make example for this keyboard (after setting up your build environment):
10
11 make clawsome/numeros:default
12
13See 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/clawsome/numeros/rules.mk b/keyboards/clawsome/numeros/rules.mk
new file mode 100644
index 000000000..c0d663b11
--- /dev/null
+++ b/keyboards/clawsome/numeros/rules.mk
@@ -0,0 +1,24 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
24LAYOUTS = numpad_5x4