summaryrefslogtreecommitdiff
path: root/keyboards/winkeys
diff options
context:
space:
mode:
authorMatthew Dias <matthewdias@me.com>2022-03-07 22:23:06 -0600
committerGitHub <noreply@github.com>2022-03-07 20:23:06 -0800
commit4d2ae22690eec671dc7a45e3adfbab8ee0727fba (patch)
tree8f643bfb86579cd9435b03e2ccaa25831981f22b /keyboards/winkeys
parent996880a1da6960979430a9a5b2a154eee58e1799 (diff)
[Keyboard] Add mini winni (#15341)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/winkeys')
-rw-r--r--keyboards/winkeys/mini_winni/config.h68
-rw-r--r--keyboards/winkeys/mini_winni/info.json9
-rw-r--r--keyboards/winkeys/mini_winni/keymaps/default/keymap.c42
-rw-r--r--keyboards/winkeys/mini_winni/keymaps/via/keymap.c42
-rw-r--r--keyboards/winkeys/mini_winni/keymaps/via/rules.mk1
-rw-r--r--keyboards/winkeys/mini_winni/mini_winni.c18
-rw-r--r--keyboards/winkeys/mini_winni/mini_winni.h27
-rw-r--r--keyboards/winkeys/mini_winni/readme.md22
-rw-r--r--keyboards/winkeys/mini_winni/rules.mk18
9 files changed, 247 insertions, 0 deletions
diff --git a/keyboards/winkeys/mini_winni/config.h b/keyboards/winkeys/mini_winni/config.h
new file mode 100644
index 0000000000..821f5cdc76
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/config.h
@@ -0,0 +1,68 @@
1
2/*
3Copyright 2021 Matthew Dias
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include "config_common.h"
22
23
24/* USB Device descriptor parameter */
25#define VENDOR_ID 0x574B
26#define PRODUCT_ID 0x7770
27#define DEVICE_VER 0x0001
28#define MANUFACTURER WinKeys
29#define PRODUCT Mini Winni
30
31/* key matrix size */
32#define MATRIX_ROWS 2
33#define MATRIX_COLS 4
34
35/* key matrix pins */
36#define DIRECT_PINS { { F4, F5, B4, D7 }, { F6, F7, B6, B5 } }
37#define UNUSED_PINS
38
39/* Set 0 if debouncing isn't needed */
40#define DEBOUNCE 5
41
42#define RGB_DI_PIN E6
43#define RGBLED_NUM 4
44#define RGBLIGHT_EFFECT_BREATHING
45#define RGBLIGHT_EFFECT_RAINBOW_MOOD
46#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
47#define RGBLIGHT_EFFECT_SNAKE
48#define RGBLIGHT_EFFECT_KNIGHT
49#define RGBLIGHT_EFFECT_CHRISTMAS
50#define RGBLIGHT_EFFECT_STATIC_GRADIENT
51#define RGBLIGHT_EFFECT_RGB_TEST
52#define RGBLIGHT_EFFECT_ALTERNATING
53#define RGBLIGHT_EFFECT_TWINKLE
54
55/*
56 * Feature disable options
57 * These options are also useful to firmware size reduction.
58 */
59
60/* disable debug print */
61//#define NO_DEBUG
62
63/* disable print */
64//#define NO_PRINT
65
66/* disable these deprecated features by default */
67#define NO_ACTION_MACRO
68#define NO_ACTION_FUNCTION
diff --git a/keyboards/winkeys/mini_winni/info.json b/keyboards/winkeys/mini_winni/info.json
new file mode 100644
index 0000000000..2545073551
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/info.json
@@ -0,0 +1,9 @@
1{
2 "keyboard_name": "Mini Winni",
3 "maintainer": "Matthew Dias",
4 "layouts": {
5 "LAYOUT_all": {
6 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}]
7 }
8 }
9}
diff --git a/keyboards/winkeys/mini_winni/keymaps/default/keymap.c b/keyboards/winkeys/mini_winni/keymaps/default/keymap.c
new file mode 100644
index 0000000000..5613ca4d89
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/keymaps/default/keymap.c
@@ -0,0 +1,42 @@
1/*
2Copyright 2021 Matthew Dias
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#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22 [0] = LAYOUT_all(
23 KC_F1, KC_F2, KC_F3, KC_F4,
24 KC_F5, KC_F6, KC_F7, KC_F8
25 ),
26
27 [1] = LAYOUT_all(
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
30 ),
31
32 [2] = LAYOUT_all(
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
35 ),
36
37 [3] = LAYOUT_all(
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
40 )
41
42}; \ No newline at end of file
diff --git a/keyboards/winkeys/mini_winni/keymaps/via/keymap.c b/keyboards/winkeys/mini_winni/keymaps/via/keymap.c
new file mode 100644
index 0000000000..5613ca4d89
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/keymaps/via/keymap.c
@@ -0,0 +1,42 @@
1/*
2Copyright 2021 Matthew Dias
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#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22 [0] = LAYOUT_all(
23 KC_F1, KC_F2, KC_F3, KC_F4,
24 KC_F5, KC_F6, KC_F7, KC_F8
25 ),
26
27 [1] = LAYOUT_all(
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
30 ),
31
32 [2] = LAYOUT_all(
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
35 ),
36
37 [3] = LAYOUT_all(
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
40 )
41
42}; \ No newline at end of file
diff --git a/keyboards/winkeys/mini_winni/keymaps/via/rules.mk b/keyboards/winkeys/mini_winni/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/winkeys/mini_winni/mini_winni.c b/keyboards/winkeys/mini_winni/mini_winni.c
new file mode 100644
index 0000000000..35c75c4ad7
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/mini_winni.c
@@ -0,0 +1,18 @@
1/*
2Copyright 2021 Matthew Dias
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#include "mini_winni.h"
diff --git a/keyboards/winkeys/mini_winni/mini_winni.h b/keyboards/winkeys/mini_winni/mini_winni.h
new file mode 100644
index 0000000000..4d4374761d
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/mini_winni.h
@@ -0,0 +1,27 @@
1/*
2Copyright 2021 Matthew Dias
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 "quantum.h"
21#define LAYOUT_all( \
22 K00, K01, K02, K03, \
23 K10, K11, K12, K13 \
24) { \
25 { K00, K01, K02, K03 }, \
26 { K10, K11, K12, K13 } \
27}
diff --git a/keyboards/winkeys/mini_winni/readme.md b/keyboards/winkeys/mini_winni/readme.md
new file mode 100644
index 0000000000..e7c43995c0
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/readme.md
@@ -0,0 +1,22 @@
1# Mini Winni
2
3A 2x4 Macropad by WinKeys
4
5- Keyboard Maintainer: [matthewdias](https://github.com/matthewdias)
6- Hardware Supported: mini winni PCB
7
8Make example for this keyboard (after setting up your build environment):
9
10 make winkeys/mini_winni:default
11
12Flashing example for this keyboard:
13
14 make winkeys/mini_winni:default:flash
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).
17
18## Bootloader
19
20Enter the bootloader:
21
22- **Physical reset button**: Briefly press the button on the back of the PCB (or short the reset/ground pads, should a tactile button not be installed)
diff --git a/keyboards/winkeys/mini_winni/rules.mk b/keyboards/winkeys/mini_winni/rules.mk
new file mode 100644
index 0000000000..7b7949afcb
--- /dev/null
+++ b/keyboards/winkeys/mini_winni/rules.mk
@@ -0,0 +1,18 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output