aboutsummaryrefslogtreecommitdiff
path: root/keyboards/sergiopoverony/creator_pro
diff options
context:
space:
mode:
authorSergioPoverony <sergiopoverony@gmail.com>2021-07-03 12:55:39 +0500
committerGitHub <noreply@github.com>2021-07-03 00:55:39 -0700
commitca4536e492c2378b916b970a786ce1ad3dcdb539 (patch)
tree2c79dfd95d6649d91038064d98bc6dedbb34ee23 /keyboards/sergiopoverony/creator_pro
parenteea89cc6363642855b577730f2ad3ce8335eacf8 (diff)
downloadqmk_firmware-ca4536e492c2378b916b970a786ce1ad3dcdb539.tar.gz
qmk_firmware-ca4536e492c2378b916b970a786ce1ad3dcdb539.zip
[Keyboard] Add Creator Pro by SergioPoverony (#13154)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/sergiopoverony/creator_pro')
-rw-r--r--keyboards/sergiopoverony/creator_pro/config.h49
-rw-r--r--keyboards/sergiopoverony/creator_pro/creator_pro.c33
-rw-r--r--keyboards/sergiopoverony/creator_pro/creator_pro.h33
-rw-r--r--keyboards/sergiopoverony/creator_pro/info.json22
-rw-r--r--keyboards/sergiopoverony/creator_pro/keymaps/default/keymap.c123
-rw-r--r--keyboards/sergiopoverony/creator_pro/keymaps/default/readme.md5
-rw-r--r--keyboards/sergiopoverony/creator_pro/keymaps/via/keymap.c123
-rw-r--r--keyboards/sergiopoverony/creator_pro/keymaps/via/rules.mk1
-rw-r--r--keyboards/sergiopoverony/creator_pro/readme.md27
-rw-r--r--keyboards/sergiopoverony/creator_pro/rules.mk23
10 files changed, 439 insertions, 0 deletions
diff --git a/keyboards/sergiopoverony/creator_pro/config.h b/keyboards/sergiopoverony/creator_pro/config.h
new file mode 100644
index 000000000..3bf7efc77
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/config.h
@@ -0,0 +1,49 @@
1/* Copyright 2020-2021 SergioPoverony
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#pragma once
18#include "config_common.h"
19
20/* vid pid */
21#define VENDOR_ID 0x8B1E
22#define PRODUCT_ID 0x0C00
23#define DEVICE_VER 0x0001
24#define MANUFACTURER SergioPoverony
25#define PRODUCT Creator Pro
26
27
28/* key matrix size pins */
29#define MATRIX_ROWS 1
30#define MATRIX_COLS 9
31#define DIRECT_PINS { \
32 { D1, D4, C6, D7, \
33 E6, \
34 B2, B3, B1, F7 } \
35}
36
37
38/*led layout indication pins*/
39#define RED_LED D0
40#define BLUE_LED B5
41#define GREEN_LED B6
42
43/* encoder pins*/
44#define ENCODERS_PAD_A { D2 }
45#define ENCODERS_PAD_B { D3 }
46#define ENCODER_RESOLUTION 1
47
48#define UNUSED_PINS
49
diff --git a/keyboards/sergiopoverony/creator_pro/creator_pro.c b/keyboards/sergiopoverony/creator_pro/creator_pro.c
new file mode 100644
index 000000000..55c0497df
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/creator_pro.c
@@ -0,0 +1,33 @@
1/* Copyright 2020-2021 SergioPoverony
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 "creator_pro.h"
18
19void matrix_init_kb(void) {
20 matrix_init_user();
21/* led pins */
22 setPinOutput(RED_LED);
23 setPinOutput(BLUE_LED);
24 setPinOutput(GREEN_LED);
25}
26void turn_off_leds(void) {
27 writePinLow(RED_LED);
28 writePinLow(BLUE_LED);
29 writePinLow(GREEN_LED);
30}
31void turn_on_led(pin_t pin) {
32 writePinHigh(pin);
33}
diff --git a/keyboards/sergiopoverony/creator_pro/creator_pro.h b/keyboards/sergiopoverony/creator_pro/creator_pro.h
new file mode 100644
index 000000000..566e94a77
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/creator_pro.h
@@ -0,0 +1,33 @@
1/* Copyright 2020-2021 SergioPoverony
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#pragma once
18#include "quantum.h"
19
20#define LAYOUT( \
21K01, K02, K03, K04, \
22 K05, \
23K06, K07, K08, K09 \
24) { { \
25K01, K02, K03, K04, \
26 K05, \
27K06, K07, K08, K09 \
28} }
29
30/*led work*/
31void turn_off_leds(void);
32void turn_on_led(pin_t pin);
33
diff --git a/keyboards/sergiopoverony/creator_pro/info.json b/keyboards/sergiopoverony/creator_pro/info.json
new file mode 100644
index 000000000..1e6bceec5
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/info.json
@@ -0,0 +1,22 @@
1{
2 "keyboard_name": "Creator Pro",
3 "url": "https://github.com/sergiopoverony",
4 "maintainer": "SergioPoverony",
5 "width": 3,
6 "height": 3,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"x":0, "y":0},
11 {"x":1, "y":0},
12 {"x":2, "y":0},
13 {"x":3, "y":0},
14 {"x":4.5, "y":0.5},
15 {"x":0, "y":1},
16 {"x":1, "y":1},
17 {"x":2, "y":1},
18 {"x":3, "y":1}
19 ]
20 }
21 }
22}
diff --git a/keyboards/sergiopoverony/creator_pro/keymaps/default/keymap.c b/keyboards/sergiopoverony/creator_pro/keymaps/default/keymap.c
new file mode 100644
index 000000000..d29621929
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/keymaps/default/keymap.c
@@ -0,0 +1,123 @@
1/* Copyright 2020-2021 SergioPoverony
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
19/* enum layers num */
20enum layer_number {
21 _HOME = 0,
22 _RED,
23 _BLUE,
24 _GREEN
25};
26
27/* Encoder function with layers function */
28bool encoder_update_user(uint8_t index, bool clockwise) {
29 if (index == 0) {
30 switch (get_highest_layer(layer_state)) {
31
32 case _HOME:
33 if (clockwise) {
34 tap_code(KC_VOLU);
35 } else {
36 tap_code(KC_VOLD);
37 }
38 break;
39
40 case _RED:
41 if (clockwise) {
42 tap_code(KC_MS_WH_UP);
43 } else {
44 tap_code(KC_MS_WH_DOWN);
45 }
46 break;
47
48 case _BLUE:
49 if (clockwise) {
50 tap_code(KC_PGUP);
51 } else {
52 tap_code(KC_PGDN);
53 }
54 break;
55
56 case _GREEN:
57 default:
58 if (clockwise) {
59 tap_code16(KC_LEFT);
60 } else {
61 tap_code16(KC_RIGHT);
62 }
63 break;
64 }
65 }
66 return true;
67}
68
69
70/* Layout */
71const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
72 [_HOME] = LAYOUT(
73 KC_1, KC_2, KC_3, KC_4,
74 TO(_RED),
75 KC_5, KC_6, KC_7, KC_8
76 ),
77
78 [_RED] = LAYOUT(
79 KC_Q, KC_W, KC_E, KC_R,
80 TO(_BLUE),
81 KC_A, KC_S, KC_D, KC_F
82 ),
83
84 [_BLUE] = LAYOUT(
85 KC_1, KC_2, KC_3, KC_4,
86 TO(_GREEN),
87 KC_5, KC_6, KC_7, KC_8
88 ),
89
90 [_GREEN] = LAYOUT(
91 KC_1, KC_2, KC_3, KC_4,
92 TO(_HOME),
93 KC_5, KC_6, KC_7, KC_8
94 ),
95};
96
97
98/* Select led layout */
99layer_state_t layer_state_set_user(layer_state_t state)
100{
101 turn_off_leds();
102
103 switch (get_highest_layer(state))
104 {
105 case _HOME:
106 turn_on_led(RED_LED);
107 turn_on_led(BLUE_LED);
108 break;
109
110 case _RED:
111 turn_on_led(RED_LED);
112 break;
113
114 case _BLUE:
115 turn_on_led(BLUE_LED);
116 break;
117
118 case _GREEN:
119 turn_on_led(GREEN_LED);
120 break;
121 }
122 return state;
123};
diff --git a/keyboards/sergiopoverony/creator_pro/keymaps/default/readme.md b/keyboards/sergiopoverony/creator_pro/keymaps/default/readme.md
new file mode 100644
index 000000000..f899eb3c1
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1![Creator Pro Layout](https://i.imgur.com/0PmpLcM.png)
2
3# Default Creator Pro Layout
4
5This is the default layout that comes flashed on every Creator Pro. The right most key (Encoder) is the rotary and the key is binded to layer switching. \ No newline at end of file
diff --git a/keyboards/sergiopoverony/creator_pro/keymaps/via/keymap.c b/keyboards/sergiopoverony/creator_pro/keymaps/via/keymap.c
new file mode 100644
index 000000000..756677246
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/keymaps/via/keymap.c
@@ -0,0 +1,123 @@
1/* Copyright 2020-2021 SergioPoverony
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
19/* enum layers num */
20enum layer_number {
21 _HOME = 0,
22 _RED,
23 _BLUE,
24 _GREEN
25};
26
27/* Encoder function with layers function */
28bool encoder_update_user(uint8_t index, bool clockwise) {
29 if (index == 0) {
30 switch (get_highest_layer(layer_state)) {
31
32 case _HOME:
33 if (clockwise) {
34 tap_code(KC_VOLU);
35 } else {
36 tap_code(KC_VOLD);
37 }
38 break;
39
40 case _RED:
41 if (clockwise) {
42 tap_code(KC_MS_WH_UP);
43 } else {
44 tap_code(KC_MS_WH_DOWN);
45 }
46 break;
47
48 case _BLUE:
49 if (clockwise) {
50 tap_code(KC_PGUP);
51 } else {
52 tap_code(KC_PGDN);
53 }
54 break;
55
56 case _GREEN:
57 default:
58 if (clockwise) {
59 tap_code16(KC_LEFT);
60 } else {
61 tap_code16(KC_RIGHT);
62 }
63 break;
64 }
65 }
66 return true;
67}
68
69
70/* Layout */
71const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
72 [_HOME] = LAYOUT(
73 KC_1, KC_2, KC_3, KC_4,
74 TO(_RED),
75 KC_5, KC_6, KC_7, KC_8
76 ),
77
78 [_RED] = LAYOUT(
79 KC_Q, KC_W, KC_E, KC_R,
80 TO(_BLUE),
81 KC_A, KC_S, KC_D, KC_F
82 ),
83
84 [_BLUE] = LAYOUT(
85 KC_1, KC_2, KC_3, KC_4,
86 TO(_GREEN),
87 KC_5, KC_6, KC_7, KC_8
88 ),
89
90 [_GREEN] = LAYOUT(
91 KC_1, KC_2, KC_3, KC_4,
92 TO(_HOME),
93 KC_5, KC_6, KC_7, KC_8
94 ),
95};
96
97
98/* Select led layout */
99layer_state_t layer_state_set_user(layer_state_t state)
100{
101 turn_off_leds();
102
103 switch (get_highest_layer(state))
104 {
105 case _HOME:
106 turn_on_led(RED_LED);
107 turn_on_led(BLUE_LED);
108 break;
109
110 case _RED:
111 turn_on_led(RED_LED);
112 break;
113
114 case _BLUE:
115 turn_on_led(BLUE_LED);
116 break;
117
118 case _GREEN:
119 turn_on_led(GREEN_LED);
120 break;
121 }
122 return state;
123};
diff --git a/keyboards/sergiopoverony/creator_pro/keymaps/via/rules.mk b/keyboards/sergiopoverony/creator_pro/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/sergiopoverony/creator_pro/readme.md b/keyboards/sergiopoverony/creator_pro/readme.md
new file mode 100644
index 000000000..601c069d9
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/readme.md
@@ -0,0 +1,27 @@
1# Creator Pro
2
3![Creator Pro Layout](https://i.imgur.com/G3Yf20D.jpg)
4
5This Keypad has 1 rows x 9 columns of keys. It has the top/default layer that
6has a few 1-8 keys as well as one dedicated encoder key for change layer. The
7 second layer has QWERASDF keys. Encoder have 4 function on any layer is
8 Volume Control, Mouse Wheel, PageUp/PageDn, Left/Righ buttons.
9The keypad also includes three RGB LEDs that show active layer.
10For enter the bootloader to flash new firmware need press hw reset button hole on the bottom
11
12Keyboard Maintainer: [SergioPoverony](https://github.com/sergiopoverony)
13
14Hardware:
15 * For enter the bootloader to flash new firmware need press hw reset button hole on the bottom
16 * Key switch holes cut fabrication in blank PCB
17 * Uses Gateron Brown switches with gray keycaps XDA profile
18 * Chassis is PCB with supports
19 * PCB fabrication
20 * Uses a Pro Micro wint MicroUSB connector
21 * Includes a reset switch accessible by a hole on the bottom
22
23Make example for this keyboard (after setting up your build environment):
24
25 make sergiopoverony/creator_pro:default
26
27See 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/sergiopoverony/creator_pro/rules.mk b/keyboards/sergiopoverony/creator_pro/rules.mk
new file mode 100644
index 000000000..aee3a1398
--- /dev/null
+++ b/keyboards/sergiopoverony/creator_pro/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 = no # 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
23ENCODER_ENABLE = yes