aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Claveria <48102030+swiftrax@users.noreply.github.com>2021-06-15 14:43:18 -0700
committerGitHub <noreply@github.com>2021-06-16 07:43:18 +1000
commit3d546c085325f906e8a512c24c94fdaa2c31ec73 (patch)
tree7408bd7048e2612f34fb2ed760cf95a1df0ca0c9
parenta9525d88a349469d948bb0c21f630d97b31db731 (diff)
downloadqmk_firmware-3d546c085325f906e8a512c24c94fdaa2c31ec73.tar.gz
qmk_firmware-3d546c085325f906e8a512c24c94fdaa2c31ec73.zip
add tender/macrowo_pad (#12786)
* add tender/macrowo_pad * add another layer for via keymap Co-authored-by: Swiftrax <swiftrax@gmail.com>
-rw-r--r--keyboards/tender/macrowo_pad/config.h40
-rw-r--r--keyboards/tender/macrowo_pad/info.json12
-rw-r--r--keyboards/tender/macrowo_pad/keymaps/default/keymap.c56
-rw-r--r--keyboards/tender/macrowo_pad/keymaps/default/rules.mk1
-rw-r--r--keyboards/tender/macrowo_pad/keymaps/via/keymap.c64
-rw-r--r--keyboards/tender/macrowo_pad/keymaps/via/rules.mk2
-rw-r--r--keyboards/tender/macrowo_pad/macrowo_pad.c17
-rw-r--r--keyboards/tender/macrowo_pad/macrowo_pad.h27
-rw-r--r--keyboards/tender/macrowo_pad/readme.md16
-rw-r--r--keyboards/tender/macrowo_pad/rules.mk23
10 files changed, 258 insertions, 0 deletions
diff --git a/keyboards/tender/macrowo_pad/config.h b/keyboards/tender/macrowo_pad/config.h
new file mode 100644
index 000000000..51f8fbb14
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/config.h
@@ -0,0 +1,40 @@
1/* Copyright 2021 swiftrax
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 "config_common.h"
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0x04D8
22#define PRODUCT_ID 0xE936
23#define DEVICE_VER 0x0001
24#define MANUFACTURER Tender
25#define PRODUCT Macrowo Pad
26/* key matrix size */
27#define MATRIX_ROWS 2
28#define MATRIX_COLS 10
29
30/* key matrix pins */
31#define MATRIX_ROW_PINS { B5, D7 }
32#define MATRIX_COL_PINS { E6, B4, B6, B2, B3, B1, F7, F6, F5, F4 }
33#define UNUSED_PINS
34
35/* COL2ROW or ROW2COL */
36#define DIODE_DIRECTION COL2ROW
37
38/* Set 0 if debouncing isn't needed */
39#define DEBOUNCE 5
40
diff --git a/keyboards/tender/macrowo_pad/info.json b/keyboards/tender/macrowo_pad/info.json
new file mode 100644
index 000000000..fcfc2931e
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "Macrowo_Pad",
3 "url": "https//www.github.com/swiftrax",
4 "maintainer": "swiftrax",
5 "width": 11.5,
6 "height": 3,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [{"label":"0,1", "x":1, "y":0}, {"label":"0,3", "x":3.25, "y":0}, {"label":"0,6", "x":7.25, "y":0}, {"label":"0,8", "x":9.5, "y":0}, {"label":"0,0", "x":0, "y":0.5}, {"label":"0,2", "x":2, "y":0.5}, {"label":"0,7", "x":8.5, "y":0.5}, {"label":"0,9", "x":10.5, "y":0.5}, {"label":"0,4", "x":3.75, "y":1}, {"label":"0,5", "x":6.75, "y":1}, {"label":"1,4", "x":5.25, "y":1.25}, {"label":"1,0", "x":0, "y":1.5}, {"label":"1,2", "x":2, "y":1.5}, {"label":"1,7", "x":8.5, "y":1.5}, {"label":"1,9", "x":10.5, "y":1.5}, {"label":"1,1", "x":1, "y":2}, {"label":"1,3", "x":4.25, "y":2}, {"label":"1,5", "x":6.25, "y":2}, {"label":"1,8", "x":9.5, "y":2}]
10 }
11 }
12} \ No newline at end of file
diff --git a/keyboards/tender/macrowo_pad/keymaps/default/keymap.c b/keyboards/tender/macrowo_pad/keymaps/default/keymap.c
new file mode 100644
index 000000000..f3ee17995
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/keymaps/default/keymap.c
@@ -0,0 +1,56 @@
1/* Copyright 2021 swiftrax
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
17#include QMK_KEYBOARD_H
18
19enum custom_keycodes {
20 SAY_OWO = SAFE_RANGE,
21};
22
23bool process_record_user(uint16_t keycode, keyrecord_t *record) {
24 switch (keycode) {
25 case SAY_OWO:
26 if (record->event.pressed) {
27 // when keycode SAY_OWO is pressed
28 SEND_STRING("OWO");
29 } else {
30 // when keycode SAY_OWO is released
31 }
32 break;
33 }
34 return true;
35};
36
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38
39 [0] = LAYOUT(
40 SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO,
41 SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO),
42
43 [1] = LAYOUT(
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
46};
47
48#ifdef OLED_DRIVER_ENABLE
49oled_rotation_t oled_init_user(oled_rotation_t rotation) {
50 return OLED_ROTATION_270;
51}
52
53void oled_task_user(void) {
54 oled_write_P(PSTR("OWO\nWhat's\nthis?"), false);
55}
56#endif
diff --git a/keyboards/tender/macrowo_pad/keymaps/default/rules.mk b/keyboards/tender/macrowo_pad/keymaps/default/rules.mk
new file mode 100644
index 000000000..b898ed179
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/keymaps/default/rules.mk
@@ -0,0 +1 @@
OLED_DRIVER_ENABLE = yes # Enable Support for SSD1306 or SH1106 OLED Displays; Communicating over I2C \ No newline at end of file
diff --git a/keyboards/tender/macrowo_pad/keymaps/via/keymap.c b/keyboards/tender/macrowo_pad/keymaps/via/keymap.c
new file mode 100644
index 000000000..9f527fd9e
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/keymaps/via/keymap.c
@@ -0,0 +1,64 @@
1/* Copyright 2021 swiftrax
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
17#include QMK_KEYBOARD_H
18
19enum custom_keycodes {
20 SAY_OWO = SAFE_RANGE,
21};
22
23bool process_record_user(uint16_t keycode, keyrecord_t *record) {
24 switch (keycode) {
25 case SAY_OWO:
26 if (record->event.pressed) {
27 // when keycode SAY_OWO is pressed
28 SEND_STRING("OWO");
29 } else {
30 // when keycode SAY_OWO is released
31 }
32 break;
33 }
34 return true;
35};
36
37const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38
39 [0] = LAYOUT(
40 SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO,
41 SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO, SAY_OWO),
42
43 [1] = LAYOUT(
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
46
47 [2] = LAYOUT(
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
50
51 [3] = LAYOUT(
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
54};
55
56#ifdef OLED_DRIVER_ENABLE
57oled_rotation_t oled_init_user(oled_rotation_t rotation) {
58 return OLED_ROTATION_270;
59}
60
61void oled_task_user(void) {
62 oled_write_P(PSTR("OWO\nWhat's\nthis?"), false);
63}
64#endif
diff --git a/keyboards/tender/macrowo_pad/keymaps/via/rules.mk b/keyboards/tender/macrowo_pad/keymaps/via/rules.mk
new file mode 100644
index 000000000..0d102b41e
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2OLED_DRIVER_ENABLE = yes # Enable Support for SSD1306 or SH1106 OLED Displays; Communicating over I2C
diff --git a/keyboards/tender/macrowo_pad/macrowo_pad.c b/keyboards/tender/macrowo_pad/macrowo_pad.c
new file mode 100644
index 000000000..4dd6441e5
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/macrowo_pad.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 swiftrax
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 "macrowo_pad.h"
17 \ No newline at end of file
diff --git a/keyboards/tender/macrowo_pad/macrowo_pad.h b/keyboards/tender/macrowo_pad/macrowo_pad.h
new file mode 100644
index 000000000..b095c037a
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/macrowo_pad.h
@@ -0,0 +1,27 @@
1/* Copyright 2021 swiftrax
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( \
21 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \
22 K10, K11, K12, K13, K14, K15, K17, K18, K19 \
23) \
24{ \
25 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \
26 { K10, K11, K12, K13, K14, K15, KC_NO, K17, K18, K19 } \
27}
diff --git a/keyboards/tender/macrowo_pad/readme.md b/keyboards/tender/macrowo_pad/readme.md
new file mode 100644
index 000000000..336a06708
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/readme.md
@@ -0,0 +1,16 @@
1
2# Macrowo_Pad
3
4! Macrowo Pad
5
6Need I say more?
7
8- Keyboard Maintainer: [swiftrax](https://github.com/swiftrax)
9- Hardware Supported: Macrowo_Pad, Pro Micro, Elite-C, Proton C, BlueMicro.
10- Hardware Availability: Macrowo_Pad
11
12Make example for this keyboard (after setting up your build environment):
13
14 make tender/macrowo_pad:default
15
16See 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/tender/macrowo_pad/rules.mk b/keyboards/tender/macrowo_pad/rules.mk
new file mode 100644
index 000000000..9d5d7c8ce
--- /dev/null
+++ b/keyboards/tender/macrowo_pad/rules.mk
@@ -0,0 +1,23 @@
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
13# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
14SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
15# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
16NKRO_ENABLE = no # USB Nkey Rollover
17BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
18RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
19MIDI_ENABLE = no # MIDI support
20UNICODE_ENABLE = no # Unicode
21BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
22AUDIO_ENABLE = no # Audio output on port C6
23ENCODER_ENABLE = no # Enable support for EC11 Rotary Encoder