diff options
author | skullydazed <skullydazed@users.noreply.github.com> | 2019-10-23 21:14:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-23 21:14:00 -0700 |
commit | 9160405d39d82ba787bac07ab569aa74d86d5082 (patch) | |
tree | dbccad39153c2e8f5366cced5256943a49d2c405 | |
parent | 23f89ff7cf4bce42d46e99183a977c5c74384c57 (diff) | |
download | qmk_firmware-9160405d39d82ba787bac07ab569aa74d86d5082.tar.gz qmk_firmware-9160405d39d82ba787bac07ab569aa74d86d5082.zip |
Support for the upcoming 1UP Keyboards Sweet 16 rev2 (#7125)
* Support for the upcoming 1up Keyboards Sweet 16 rev2
* Update keyboards/1upkeyboards/sweet16/rev1/readme.md
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/1upkeyboards/sweet16/rev1/readme.md
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/1upkeyboards/sweet16/rev2/promicro/readme.md
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/1upkeyboards/sweet16/rev2/proton_c/readme.md
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/1upkeyboards/sweet16/readme.md
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/1upkeyboards/sweet16/rev1/rev1.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rev1/rev1.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rev1/rev1.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rev1/rev1.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rev1/rev1.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rev1/rev1.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/1upkeyboards/sweet16/rev1/rules.mk
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/1upkeyboards/sweet16/rev2/promicro/rules.mk
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* tweak readme wording per @noroadsleft
* Change rev to V
* remove extraneous info.json files
20 files changed, 286 insertions, 74 deletions
diff --git a/keyboards/1upkeyboards/sweet16/config.h b/keyboards/1upkeyboards/sweet16/config.h index 23b590c2c..803d9f115 100644 --- a/keyboards/1upkeyboards/sweet16/config.h +++ b/keyboards/1upkeyboards/sweet16/config.h | |||
@@ -4,8 +4,6 @@ | |||
4 | 4 | ||
5 | /* USB Device descriptor parameter */ | 5 | /* USB Device descriptor parameter */ |
6 | #define VENDOR_ID 0xFEED | 6 | #define VENDOR_ID 0xFEED |
7 | #define PRODUCT_ID 0x2010 | ||
8 | #define DEVICE_VER 0x0001 | ||
9 | #define MANUFACTURER 1up Keyboards | 7 | #define MANUFACTURER 1up Keyboards |
10 | #define PRODUCT Sweet16 | 8 | #define PRODUCT Sweet16 |
11 | #define DESCRIPTION 4x4 grid | 9 | #define DESCRIPTION 4x4 grid |
@@ -14,34 +12,11 @@ | |||
14 | #define MATRIX_ROWS 4 | 12 | #define MATRIX_ROWS 4 |
15 | #define MATRIX_COLS 4 | 13 | #define MATRIX_COLS 4 |
16 | 14 | ||
17 | /* key matrix pins */ | ||
18 | #define MATRIX_ROW_PINS { F4, F5, F6, F7 } | ||
19 | #define MATRIX_COL_PINS { D1, D0, D4, C6 } | ||
20 | #define UNUSED_PINS | ||
21 | |||
22 | /* COL2ROW or ROW2COL */ | ||
23 | #define DIODE_DIRECTION COL2ROW | ||
24 | |||
25 | /* number of backlight levels */ | 15 | /* number of backlight levels */ |
26 | 16 | #define BACKLIGHT_LEVELS 10 | |
27 | #ifdef BACKLIGHT_PIN | ||
28 | #define BACKLIGHT_LEVELS 3 | ||
29 | #endif | ||
30 | |||
31 | /* Set 0 if debouncing isn't needed */ | ||
32 | #define DEBOUNCE 5 | ||
33 | 17 | ||
34 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 18 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
35 | #define LOCKING_SUPPORT_ENABLE | 19 | #define LOCKING_SUPPORT_ENABLE |
36 | 20 | ||
37 | /* Locking resynchronize hack */ | 21 | /* Locking resynchronize hack */ |
38 | #define LOCKING_RESYNC_ENABLE | 22 | #define LOCKING_RESYNC_ENABLE |
39 | |||
40 | #define RGB_DI_PIN B1 | ||
41 | #ifdef RGB_DI_PIN | ||
42 | #define RGBLIGHT_ANIMATIONS | ||
43 | #define RGBLED_NUM 1 | ||
44 | #define RGBLIGHT_HUE_STEP 8 | ||
45 | #define RGBLIGHT_SAT_STEP 8 | ||
46 | #define RGBLIGHT_VAL_STEP 8 | ||
47 | #endif | ||
diff --git a/keyboards/1upkeyboards/sweet16/info.json b/keyboards/1upkeyboards/sweet16/info.json index 445a5909e..c292f0364 100644 --- a/keyboards/1upkeyboards/sweet16/info.json +++ b/keyboards/1upkeyboards/sweet16/info.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "keyboard_name": "Sweet 16", | 2 | "keyboard_name": "Sweet 16", |
3 | "url": "", | 3 | "url": "", |
4 | "maintainer": "qmk", | 4 | "maintainer": "skullydazed", |
5 | "width": 4, | 5 | "width": 4, |
6 | "height": 4, | 6 | "height": 4, |
7 | "layouts": { | 7 | "layouts": { |
diff --git a/keyboards/1upkeyboards/sweet16/keymaps/default/keymap.c b/keyboards/1upkeyboards/sweet16/keymaps/default/keymap.c index 4cc754dc1..4778d2108 100644 --- a/keyboards/1upkeyboards/sweet16/keymaps/default/keymap.c +++ b/keyboards/1upkeyboards/sweet16/keymaps/default/keymap.c | |||
@@ -25,21 +25,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
25 | return true; | 25 | return true; |
26 | } | 26 | } |
27 | 27 | ||
28 | void led_set_user(uint8_t usb_led) { | 28 | #ifdef ENCODER_ENABLE |
29 | 29 | #include "encoder.h" | |
30 | #ifndef CONVERT_TO_PROTON_C | 30 | void encoder_update_user(int8_t index, bool clockwise) { |
31 | /* Map RXLED to USB_LED_NUM_LOCK */ | 31 | if (index == 0) { /* First encoder */ |
32 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | 32 | if (clockwise) { |
33 | DDRB |= (1 << 0); PORTB &= ~(1 << 0); | 33 | tap_code(KC_VOLU); |
34 | } else { | 34 | } else { |
35 | DDRB &= ~(1 << 0); PORTB &= ~(1 << 0); | 35 | tap_code(KC_VOLD); |
36 | } | 36 | } |
37 | 37 | } | |
38 | /* Map TXLED to USB_LED_CAPS_LOCK */ | ||
39 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
40 | DDRD |= (1 << 5); PORTD &= ~(1 << 5); | ||
41 | } else { | ||
42 | DDRD &= ~(1 << 5); PORTD &= ~(1 << 5); | ||
43 | } | ||
44 | #endif | ||
45 | } | 38 | } |
39 | #endif | ||
diff --git a/keyboards/1upkeyboards/sweet16/readme.md b/keyboards/1upkeyboards/sweet16/readme.md index f096a5fc9..0e3cbcaa6 100644 --- a/keyboards/1upkeyboards/sweet16/readme.md +++ b/keyboards/1upkeyboards/sweet16/readme.md | |||
@@ -1,13 +1,12 @@ | |||
1 | # Sweet 16 Macropad | 1 | # Sweet 16 Macropad |
2 | 2 | ||
3 | A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Bishop Keyboards | 3 | A 4x4 numpad/macro pad sold by 1up Keyboards. |
4 | 4 | ||
5 | Keyboard Maintainer: QMK Community | 5 | * Keyboard Maintainer: skullydazed |
6 | Hardware Supported: Sweet16 Keyboard PCB | 6 | * Hardware Supported: Sweet16 Keyboard PCB |
7 | Hardware Availability: [1up Keyboards](https://1upkeyboards.com/) | 7 | * Hardware Availability: [1up Keyboards](https://1upkeyboards.com/) |
8 | 8 | ||
9 | Make example for this keyboard (after setting up your build environment): | 9 | Revisions: |
10 | 10 | * [v1](./v1/)- The original macropad, designed by Bishop Keyboards | |
11 | make 1upkeyboards/sweet16:default | 11 | * [v2/promicro](./v2/promicro)- The second macropad built with a Pro Micro, designed by Clueboard |
12 | 12 | * [v2/proton_c](./v2/proton_c)- The second macropad built with a Proton C, designed by Clueboard | |
13 | 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). | ||
diff --git a/keyboards/1upkeyboards/sweet16/rules.mk b/keyboards/1upkeyboards/sweet16/rules.mk index 6e1a5eec9..d7e57eb33 100644 --- a/keyboards/1upkeyboards/sweet16/rules.mk +++ b/keyboards/1upkeyboards/sweet16/rules.mk | |||
@@ -1,27 +1,12 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | # Teensy halfkay | ||
6 | # Pro Micro caterina | ||
7 | # Atmel DFU atmel-dfu | ||
8 | # LUFA DFU lufa-dfu | ||
9 | # QMK DFU qmk-dfu | ||
10 | # ATmega32A bootloadHID | ||
11 | # ATmega328P USBasp | ||
12 | BOOTLOADER = caterina | ||
13 | |||
14 | # Build Options | 1 | # Build Options |
15 | # comment out to disable the options. | ||
16 | # | 2 | # |
17 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 3 | DEFAULT_FOLDER = 1upkeyboards/sweet16/v1 |
18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 4 | #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration |
19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 5 | MOUSEKEY_ENABLE = yes # Mouse keys |
20 | CONSOLE_ENABLE = no # Console for debug(+400) | 6 | EXTRAKEY_ENABLE = yes # Audio control and System control |
7 | CONSOLE_ENABLE = no # Console for debug | ||
21 | COMMAND_ENABLE = no # Commands for debug and configuration | 8 | COMMAND_ENABLE = no # Commands for debug and configuration |
22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 9 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
23 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 10 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
24 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
25 | AUDIO_ENABLE = no | 11 | AUDIO_ENABLE = no |
26 | RGBLIGHT_ENABLE = yes | 12 | RGBLIGHT_ENABLE = no |
27 | EXTRAFLAGS += -flto | ||
diff --git a/keyboards/1upkeyboards/sweet16/v1/config.h b/keyboards/1upkeyboards/sweet16/v1/config.h new file mode 100644 index 000000000..56fd16650 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v1/config.h | |||
@@ -0,0 +1,28 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | /* USB Device descriptor parameter */ | ||
6 | #define PRODUCT_ID 0x2010 | ||
7 | #define DEVICE_VER 0x0001 | ||
8 | |||
9 | /* key matrix pins */ | ||
10 | #define MATRIX_ROW_PINS { F4, F5, F6, F7 } | ||
11 | #define MATRIX_COL_PINS { D1, D0, D4, C6 } | ||
12 | #define UNUSED_PINS | ||
13 | |||
14 | /* COL2ROW or ROW2COL */ | ||
15 | #define DIODE_DIRECTION COL2ROW | ||
16 | |||
17 | /* Set 0 if debouncing isn't needed */ | ||
18 | #define DEBOUNCE 5 | ||
19 | |||
20 | /* Underglow options */ | ||
21 | #define RGB_DI_PIN B1 | ||
22 | #ifdef RGB_DI_PIN | ||
23 | #define RGBLIGHT_ANIMATIONS | ||
24 | #define RGBLED_NUM 1 | ||
25 | #define RGBLIGHT_HUE_STEP 8 | ||
26 | #define RGBLIGHT_SAT_STEP 8 | ||
27 | #define RGBLIGHT_VAL_STEP 8 | ||
28 | #endif | ||
diff --git a/keyboards/1upkeyboards/sweet16/v1/readme.md b/keyboards/1upkeyboards/sweet16/v1/readme.md new file mode 100644 index 000000000..a36197006 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v1/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # Sweet16 V1 | ||
2 | |||
3 | A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Bishop Keyboards | ||
4 | |||
5 | * Keyboard Maintainer: QMK Community | ||
6 | * Hardware Supported: Sweet16 V1 PCB | ||
7 | * Hardware Availability: [1up Keyboards](https://1upkeyboards.com/) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make 1upkeyboards/sweet16/v1:default | ||
12 | |||
13 | 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). | ||
diff --git a/keyboards/1upkeyboards/sweet16/v1/rules.mk b/keyboards/1upkeyboards/sweet16/v1/rules.mk new file mode 100644 index 000000000..0defba1f1 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v1/rules.mk | |||
@@ -0,0 +1,5 @@ | |||
1 | MCU = atmega32u4 | ||
2 | BOOTLOADER = caterina | ||
3 | LINK_TIME_OPTIMIZATION_ENABLE=yes | ||
4 | RGBLIGHT_ENABLE = yes | ||
5 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
diff --git a/keyboards/1upkeyboards/sweet16/v1/v1.c b/keyboards/1upkeyboards/sweet16/v1/v1.c new file mode 100644 index 000000000..053620d33 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v1/v1.c | |||
@@ -0,0 +1,21 @@ | |||
1 | #include "v1.h" | ||
2 | |||
3 | void led_set_kb(uint8_t usb_led) { | ||
4 | #ifndef CONVERT_TO_PROTON_C | ||
5 | /* Map RXLED to USB_LED_NUM_LOCK */ | ||
6 | if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { | ||
7 | setPinOutput(B0); | ||
8 | writePinLow(B0); | ||
9 | } else { | ||
10 | setPinInput(B0); | ||
11 | } | ||
12 | |||
13 | /* Map TXLED to USB_LED_CAPS_LOCK */ | ||
14 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
15 | setPinOutput(D5); | ||
16 | writePinLow(D5); | ||
17 | } else { | ||
18 | setPinInput(D5); | ||
19 | } | ||
20 | #endif | ||
21 | } | ||
diff --git a/keyboards/1upkeyboards/sweet16/v1/v1.h b/keyboards/1upkeyboards/sweet16/v1/v1.h new file mode 100644 index 000000000..7320ccd9e --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v1/v1.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | // Any changes to the layout names and/or definitions must also be made to info.json | ||
6 | |||
7 | #define LAYOUT_ortho_4x4( \ | ||
8 | K00, K01, K02, K03, \ | ||
9 | K10, K11, K12, K13, \ | ||
10 | K20, K21, K22, K23, \ | ||
11 | K30, K31, K32, K33 \ | ||
12 | ) { \ | ||
13 | { K00, K01, K02, K03 }, \ | ||
14 | { K10, K11, K12, K13 }, \ | ||
15 | { K20, K21, K22, K23 }, \ | ||
16 | { K30, K31, K32, K33 } \ | ||
17 | } | ||
18 | |||
19 | #define LAYOUT_numpad_4x4( \ | ||
20 | K00, K01, K02, K03, \ | ||
21 | K10, K11, K12, \ | ||
22 | K20, K21, K22, K23, \ | ||
23 | K31, K32 \ | ||
24 | ) { \ | ||
25 | { K00, K01, K02, K03 }, \ | ||
26 | { K10, K11, K12, KC_NO }, \ | ||
27 | { K20, K21, K22, K23 }, \ | ||
28 | { KC_NO, K31, K32, KC_NO } \ | ||
29 | } | ||
30 | |||
diff --git a/keyboards/1upkeyboards/sweet16/v2/promicro/config.h b/keyboards/1upkeyboards/sweet16/v2/promicro/config.h new file mode 100644 index 000000000..bd50b6960 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/promicro/config.h | |||
@@ -0,0 +1,31 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | /* USB Device descriptor parameter */ | ||
6 | #define PRODUCT_ID 0x2011 | ||
7 | #define DEVICE_VER 0x0001 | ||
8 | |||
9 | /* key matrix pins */ | ||
10 | #define MATRIX_ROW_PINS { D4, D1, E6, B5 } | ||
11 | #define MATRIX_COL_PINS { F7, F6, D2, D3 } | ||
12 | #define UNUSED_PINS | ||
13 | |||
14 | /* COL2ROW or ROW2COL */ | ||
15 | #define DIODE_DIRECTION ROW2COL | ||
16 | |||
17 | /* Set 0 if debouncing isn't needed */ | ||
18 | #define DEBOUNCE 5 | ||
19 | |||
20 | /* Encoder pins */ | ||
21 | #define ENCODERS_PAD_A { F4 } | ||
22 | #define ENCODERS_PAD_B { F5 } | ||
23 | #define ENCODER_RESOLUTION 4 | ||
24 | |||
25 | /* Underglow options */ | ||
26 | #define RGB_DI_PIN F4 | ||
27 | #define RGBLIGHT_ANIMATIONS | ||
28 | #define RGBLED_NUM 1 | ||
29 | #define RGBLIGHT_HUE_STEP 8 | ||
30 | #define RGBLIGHT_SAT_STEP 8 | ||
31 | #define RGBLIGHT_VAL_STEP 8 | ||
diff --git a/keyboards/1upkeyboards/sweet16/v2/promicro/promicro.c b/keyboards/1upkeyboards/sweet16/v2/promicro/promicro.c new file mode 100644 index 000000000..0176dc1a3 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/promicro/promicro.c | |||
@@ -0,0 +1,8 @@ | |||
1 | #include "promicro.h" | ||
2 | #include "encoder.h" | ||
3 | |||
4 | #ifdef ENCODER_ENABLED | ||
5 | void encoder_update_kb(int8_t index, bool clockwise) { | ||
6 | encoder_update_user(index, clockwise); | ||
7 | } | ||
8 | #endif | ||
diff --git a/keyboards/1upkeyboards/sweet16/v2/promicro/promicro.h b/keyboards/1upkeyboards/sweet16/v2/promicro/promicro.h new file mode 100644 index 000000000..7320ccd9e --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/promicro/promicro.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | // Any changes to the layout names and/or definitions must also be made to info.json | ||
6 | |||
7 | #define LAYOUT_ortho_4x4( \ | ||
8 | K00, K01, K02, K03, \ | ||
9 | K10, K11, K12, K13, \ | ||
10 | K20, K21, K22, K23, \ | ||
11 | K30, K31, K32, K33 \ | ||
12 | ) { \ | ||
13 | { K00, K01, K02, K03 }, \ | ||
14 | { K10, K11, K12, K13 }, \ | ||
15 | { K20, K21, K22, K23 }, \ | ||
16 | { K30, K31, K32, K33 } \ | ||
17 | } | ||
18 | |||
19 | #define LAYOUT_numpad_4x4( \ | ||
20 | K00, K01, K02, K03, \ | ||
21 | K10, K11, K12, \ | ||
22 | K20, K21, K22, K23, \ | ||
23 | K31, K32 \ | ||
24 | ) { \ | ||
25 | { K00, K01, K02, K03 }, \ | ||
26 | { K10, K11, K12, KC_NO }, \ | ||
27 | { K20, K21, K22, K23 }, \ | ||
28 | { KC_NO, K31, K32, KC_NO } \ | ||
29 | } | ||
30 | |||
diff --git a/keyboards/1upkeyboards/sweet16/v2/promicro/readme.md b/keyboards/1upkeyboards/sweet16/v2/promicro/readme.md new file mode 100644 index 000000000..584b44651 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/promicro/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # Sweet16 V2 (Pro Micro) | ||
2 | |||
3 | A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Clueboard | ||
4 | |||
5 | * Keyboard Maintainer: skullydazed | ||
6 | * Hardware Supported: Sweet16 V2 PCB, Pro Micro | ||
7 | * Hardware Availability: [1up Keyboards](https://1upkeyboards.com/) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make 1upkeyboards/sweet16/v2/promicro:default | ||
12 | |||
13 | 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). | ||
diff --git a/keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk b/keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk new file mode 100644 index 000000000..4b08a7e6b --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/promicro/rules.mk | |||
@@ -0,0 +1,10 @@ | |||
1 | MCU = atmega32u4 | ||
2 | BOOTLOADER = caterina | ||
3 | LINK_TIME_OPTIMIZATION_ENABLE=yes | ||
4 | |||
5 | ## Features | ||
6 | CONSOLE_ENABLE = yes | ||
7 | |||
8 | ## On a Pro Micro you have to choose between underglow and the rotary encoder. | ||
9 | RGBLIGHT_ENABLE = no | ||
10 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/1upkeyboards/sweet16/v2/proton_c/config.h b/keyboards/1upkeyboards/sweet16/v2/proton_c/config.h new file mode 100644 index 000000000..6f27f0b62 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/proton_c/config.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "config_common.h" | ||
4 | |||
5 | /* USB Device descriptor parameter */ | ||
6 | #define PRODUCT_ID 0x2011 | ||
7 | #define DEVICE_VER 0x0001 | ||
8 | |||
9 | /* key matrix pins */ | ||
10 | #define MATRIX_ROW_PINS { B5, B7, B2, B0 } | ||
11 | #define MATRIX_COL_PINS { B8, A0, A10, A9 } | ||
12 | #define UNUSED_PINS | ||
13 | |||
14 | /* COL2ROW or ROW2COL */ | ||
15 | #define DIODE_DIRECTION ROW2COL | ||
16 | |||
17 | /* Encoder pins */ | ||
18 | #define ENCODERS_PAD_A { A2 } | ||
19 | #define ENCODERS_PAD_B { A1 } | ||
20 | #define ENCODER_RESOLUTION 4 | ||
diff --git a/keyboards/1upkeyboards/sweet16/v2/proton_c/proton_c.c b/keyboards/1upkeyboards/sweet16/v2/proton_c/proton_c.c new file mode 100644 index 000000000..b08e33e81 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/proton_c/proton_c.c | |||
@@ -0,0 +1 @@ | |||
#include "proton_c.h" | |||
diff --git a/keyboards/1upkeyboards/sweet16/v2/proton_c/proton_c.h b/keyboards/1upkeyboards/sweet16/v2/proton_c/proton_c.h new file mode 100644 index 000000000..7320ccd9e --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/proton_c/proton_c.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum.h" | ||
4 | |||
5 | // Any changes to the layout names and/or definitions must also be made to info.json | ||
6 | |||
7 | #define LAYOUT_ortho_4x4( \ | ||
8 | K00, K01, K02, K03, \ | ||
9 | K10, K11, K12, K13, \ | ||
10 | K20, K21, K22, K23, \ | ||
11 | K30, K31, K32, K33 \ | ||
12 | ) { \ | ||
13 | { K00, K01, K02, K03 }, \ | ||
14 | { K10, K11, K12, K13 }, \ | ||
15 | { K20, K21, K22, K23 }, \ | ||
16 | { K30, K31, K32, K33 } \ | ||
17 | } | ||
18 | |||
19 | #define LAYOUT_numpad_4x4( \ | ||
20 | K00, K01, K02, K03, \ | ||
21 | K10, K11, K12, \ | ||
22 | K20, K21, K22, K23, \ | ||
23 | K31, K32 \ | ||
24 | ) { \ | ||
25 | { K00, K01, K02, K03 }, \ | ||
26 | { K10, K11, K12, KC_NO }, \ | ||
27 | { K20, K21, K22, K23 }, \ | ||
28 | { KC_NO, K31, K32, KC_NO } \ | ||
29 | } | ||
30 | |||
diff --git a/keyboards/1upkeyboards/sweet16/v2/proton_c/readme.md b/keyboards/1upkeyboards/sweet16/v2/proton_c/readme.md new file mode 100644 index 000000000..6806cc573 --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/proton_c/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # Sweet16 V2 (Proton C) | ||
2 | |||
3 | A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Clueboard | ||
4 | |||
5 | * Keyboard Maintainer: skullydazed | ||
6 | * Hardware Supported: Sweet16 V2 PCB, Proton C | ||
7 | * Hardware Availability: [1up Keyboards](https://1upkeyboards.com/) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make 1upkeyboards/sweet16/v2/proton_c:default | ||
12 | |||
13 | 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). | ||
diff --git a/keyboards/1upkeyboards/sweet16/v2/proton_c/rules.mk b/keyboards/1upkeyboards/sweet16/v2/proton_c/rules.mk new file mode 100644 index 000000000..3bfa1623f --- /dev/null +++ b/keyboards/1upkeyboards/sweet16/v2/proton_c/rules.mk | |||
@@ -0,0 +1,6 @@ | |||
1 | MCU = STM32F303 | ||
2 | |||
3 | ## Features | ||
4 | CONSOLE_ENABLE = yes | ||
5 | ENCODER_ENABLE = yes | ||
6 | AUDIO_ENABLE = yes | ||