diff options
author | Ryan <fauxpark@gmail.com> | 2021-07-31 03:10:05 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 18:10:05 +0100 |
commit | d1db0087456e0cc7d20477feb22f434c3a4ce51d (patch) | |
tree | cb5c71a2840244b28d859bd7a97bdcf99797ee5a | |
parent | cfca9707182aa832bb1c3aa2e93ce3cf749c63e9 (diff) | |
download | qmk_firmware-d1db0087456e0cc7d20477feb22f434c3a4ce51d.tar.gz qmk_firmware-d1db0087456e0cc7d20477feb22f434c3a4ce51d.zip |
Onekey cleanup (#13786)
51 files changed, 121 insertions, 118 deletions
diff --git a/keyboards/handwired/onekey/blackpill_f401/chconf.h b/keyboards/handwired/onekey/blackpill_f401/chconf.h index de4ab83ec..04ff4362a 100644 --- a/keyboards/handwired/onekey/blackpill_f401/chconf.h +++ b/keyboards/handwired/onekey/blackpill_f401/chconf.h | |||
@@ -36,4 +36,3 @@ | |||
36 | #define CH_CFG_FACTORY_PIPES TRUE | 36 | #define CH_CFG_FACTORY_PIPES TRUE |
37 | 37 | ||
38 | #include_next <chconf.h> | 38 | #include_next <chconf.h> |
39 | |||
diff --git a/keyboards/handwired/onekey/blackpill_f401/config.h b/keyboards/handwired/onekey/blackpill_f401/config.h index 829e84677..3825d3f7e 100644 --- a/keyboards/handwired/onekey/blackpill_f401/config.h +++ b/keyboards/handwired/onekey/blackpill_f401/config.h | |||
@@ -18,13 +18,15 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Blackpill STM32F401 | ||
22 | |||
21 | #define MATRIX_COL_PINS { B0 } | 23 | #define MATRIX_COL_PINS { B0 } |
22 | #define MATRIX_ROW_PINS { A7 } | 24 | #define MATRIX_ROW_PINS { A7 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
24 | 26 | ||
25 | #define BACKLIGHT_PIN A0 | 27 | #define BACKLIGHT_PIN A0 |
26 | #define BACKLIGHT_PWM_DRIVER PWMD5 | 28 | #define BACKLIGHT_PWM_DRIVER PWMD5 |
27 | #define BACKLIGHT_PWM_CHANNEL 1 | 29 | #define BACKLIGHT_PWM_CHANNEL 1 |
28 | 30 | ||
29 | #define RGB_DI_PIN A1 | 31 | #define RGB_DI_PIN A1 |
30 | 32 | ||
diff --git a/keyboards/handwired/onekey/blackpill_f401/halconf.h b/keyboards/handwired/onekey/blackpill_f401/halconf.h index 878879db1..020a7722f 100644 --- a/keyboards/handwired/onekey/blackpill_f401/halconf.h +++ b/keyboards/handwired/onekey/blackpill_f401/halconf.h | |||
@@ -26,4 +26,3 @@ | |||
26 | #define HAL_USE_PWM TRUE | 26 | #define HAL_USE_PWM TRUE |
27 | 27 | ||
28 | #include_next <halconf.h> | 28 | #include_next <halconf.h> |
29 | |||
diff --git a/keyboards/handwired/onekey/blackpill_f401/mcuconf.h b/keyboards/handwired/onekey/blackpill_f401/mcuconf.h index 034a022db..e614a9dfa 100644 --- a/keyboards/handwired/onekey/blackpill_f401/mcuconf.h +++ b/keyboards/handwired/onekey/blackpill_f401/mcuconf.h | |||
@@ -13,6 +13,7 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | |||
16 | #pragma once | 17 | #pragma once |
17 | 18 | ||
18 | #include_next "mcuconf.h" | 19 | #include_next "mcuconf.h" |
diff --git a/keyboards/handwired/onekey/blackpill_f401/readme.md b/keyboards/handwired/onekey/blackpill_f401/readme.md index 18ed6a43e..3971cdfa2 100644 --- a/keyboards/handwired/onekey/blackpill_f401/readme.md +++ b/keyboards/handwired/onekey/blackpill_f401/readme.md | |||
@@ -1,5 +1,5 @@ | |||
1 | # f401 blackpill onekey | 1 | # F401 Blackpill onekey |
2 | 2 | ||
3 | Supported Hardware: *STM32F401CCU6 WeAct v1.3*. | 3 | * Supported Hardware: STM32F401CCU6 WeAct v1.3 |
4 | 4 | ||
5 | To trigger keypress, short together pins *B0* and *A7*. | 5 | To trigger keypress, short together pins *B0* and *A7*. |
diff --git a/keyboards/handwired/onekey/blackpill_f401/rules.mk b/keyboards/handwired/onekey/blackpill_f401/rules.mk index 9b0a72afb..264e71d0b 100644 --- a/keyboards/handwired/onekey/blackpill_f401/rules.mk +++ b/keyboards/handwired/onekey/blackpill_f401/rules.mk | |||
@@ -4,7 +4,4 @@ MCU = STM32F401 | |||
4 | # Bootloader selection | 4 | # Bootloader selection |
5 | BOOTLOADER = stm32-dfu | 5 | BOOTLOADER = stm32-dfu |
6 | 6 | ||
7 | # Build Options | 7 | KEYBOARD_SHARED_EP = yes |
8 | # change yes to no to disable | ||
9 | # | ||
10 | KEYBOARD_SHARED_EP = yes | ||
diff --git a/keyboards/handwired/onekey/blackpill_f411/chconf.h b/keyboards/handwired/onekey/blackpill_f411/chconf.h index 4ecd0f52a..8b55eaeef 100644 --- a/keyboards/handwired/onekey/blackpill_f411/chconf.h +++ b/keyboards/handwired/onekey/blackpill_f411/chconf.h | |||
@@ -36,4 +36,3 @@ | |||
36 | #define CH_CFG_FACTORY_PIPES TRUE | 36 | #define CH_CFG_FACTORY_PIPES TRUE |
37 | 37 | ||
38 | #include_next <chconf.h> | 38 | #include_next <chconf.h> |
39 | |||
diff --git a/keyboards/handwired/onekey/blackpill_f411/config.h b/keyboards/handwired/onekey/blackpill_f411/config.h index 829e84677..16e8f2792 100644 --- a/keyboards/handwired/onekey/blackpill_f411/config.h +++ b/keyboards/handwired/onekey/blackpill_f411/config.h | |||
@@ -18,13 +18,15 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Blackpill STM32F411 | ||
22 | |||
21 | #define MATRIX_COL_PINS { B0 } | 23 | #define MATRIX_COL_PINS { B0 } |
22 | #define MATRIX_ROW_PINS { A7 } | 24 | #define MATRIX_ROW_PINS { A7 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
24 | 26 | ||
25 | #define BACKLIGHT_PIN A0 | 27 | #define BACKLIGHT_PIN A0 |
26 | #define BACKLIGHT_PWM_DRIVER PWMD5 | 28 | #define BACKLIGHT_PWM_DRIVER PWMD5 |
27 | #define BACKLIGHT_PWM_CHANNEL 1 | 29 | #define BACKLIGHT_PWM_CHANNEL 1 |
28 | 30 | ||
29 | #define RGB_DI_PIN A1 | 31 | #define RGB_DI_PIN A1 |
30 | 32 | ||
diff --git a/keyboards/handwired/onekey/blackpill_f411/halconf.h b/keyboards/handwired/onekey/blackpill_f411/halconf.h index d54f2a26a..4a0da2089 100644 --- a/keyboards/handwired/onekey/blackpill_f411/halconf.h +++ b/keyboards/handwired/onekey/blackpill_f411/halconf.h | |||
@@ -26,4 +26,3 @@ | |||
26 | #define HAL_USE_PWM TRUE | 26 | #define HAL_USE_PWM TRUE |
27 | 27 | ||
28 | #include_next <halconf.h> | 28 | #include_next <halconf.h> |
29 | |||
diff --git a/keyboards/handwired/onekey/blackpill_f411/mcuconf.h b/keyboards/handwired/onekey/blackpill_f411/mcuconf.h index 034a022db..e614a9dfa 100644 --- a/keyboards/handwired/onekey/blackpill_f411/mcuconf.h +++ b/keyboards/handwired/onekey/blackpill_f411/mcuconf.h | |||
@@ -13,6 +13,7 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | |||
16 | #pragma once | 17 | #pragma once |
17 | 18 | ||
18 | #include_next "mcuconf.h" | 19 | #include_next "mcuconf.h" |
diff --git a/keyboards/handwired/onekey/blackpill_f411/readme.md b/keyboards/handwired/onekey/blackpill_f411/readme.md index a1e1e3723..e7eb6f285 100644 --- a/keyboards/handwired/onekey/blackpill_f411/readme.md +++ b/keyboards/handwired/onekey/blackpill_f411/readme.md | |||
@@ -1,5 +1,5 @@ | |||
1 | # f411 blackpill onekey | 1 | # F411 Blackpill onekey |
2 | 2 | ||
3 | Supported Hardware: *STM32F411CEU6 WeAct v1.3*. | 3 | * Supported Hardware: STM32F411CEU6 WeAct v1.3 |
4 | 4 | ||
5 | To trigger keypress, short together pins *B0* and *A7*. | 5 | To trigger keypress, short together pins *B0* and *A7*. |
diff --git a/keyboards/handwired/onekey/blackpill_f411/rules.mk b/keyboards/handwired/onekey/blackpill_f411/rules.mk index 3ded2a258..75bc794ef 100644 --- a/keyboards/handwired/onekey/blackpill_f411/rules.mk +++ b/keyboards/handwired/onekey/blackpill_f411/rules.mk | |||
@@ -4,7 +4,4 @@ MCU = STM32F411 | |||
4 | # Bootloader selection | 4 | # Bootloader selection |
5 | BOOTLOADER = stm32-dfu | 5 | BOOTLOADER = stm32-dfu |
6 | 6 | ||
7 | # Build Options | 7 | KEYBOARD_SHARED_EP = yes |
8 | # change yes to no to disable | ||
9 | # | ||
10 | KEYBOARD_SHARED_EP = yes | ||
diff --git a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/config.h b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/config.h index 95e99aacc..44ec0bfc6 100755 --- a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/config.h +++ b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/config.h | |||
@@ -18,13 +18,15 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Blackpill STM32F411 TinyUF2 | ||
22 | |||
21 | #define MATRIX_COL_PINS { B0 } | 23 | #define MATRIX_COL_PINS { B0 } |
22 | #define MATRIX_ROW_PINS { A7 } | 24 | #define MATRIX_ROW_PINS { A7 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
24 | 26 | ||
25 | #define BACKLIGHT_PIN A0 | 27 | #define BACKLIGHT_PIN A0 |
26 | #define BACKLIGHT_PWM_DRIVER PWMD5 | 28 | #define BACKLIGHT_PWM_DRIVER PWMD5 |
27 | #define BACKLIGHT_PWM_CHANNEL 1 | 29 | #define BACKLIGHT_PWM_CHANNEL 1 |
28 | 30 | ||
29 | #define RGB_DI_PIN A1 | 31 | #define RGB_DI_PIN A1 |
30 | 32 | ||
diff --git a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/mcuconf.h b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/mcuconf.h index ad8aecdb1..d003af03e 100755 --- a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/mcuconf.h +++ b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/mcuconf.h | |||
@@ -13,6 +13,7 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | |||
16 | #pragma once | 17 | #pragma once |
17 | 18 | ||
18 | #include_next "mcuconf.h" | 19 | #include_next "mcuconf.h" |
diff --git a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/readme.md b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/readme.md index ff43658f4..c5ed1260b 100755 --- a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/readme.md +++ b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/readme.md | |||
@@ -1,9 +1,9 @@ | |||
1 | # f411 blackpill onekey | 1 | # F411 Blackpill onekey |
2 | 2 | ||
3 | Supported Hardware: *STM32F411CEU6 WeAct v1.3*. | 3 | * Supported Hardware: STM32F411CEU6 WeAct v1.3 |
4 | 4 | ||
5 | To trigger keypress, short together pins *B0* and *A7*. | 5 | To trigger keypress, short together pins *B0* and *A7*. |
6 | 6 | ||
7 | This variant requires the TinyUF2 bootloader to be installed. This can be downloaded from the [tinyuf2 releases page](https://github.com/adafruit/tinyuf2/releases). The F401 blackpill binary works for both F401- and F411-based blackpill devices. | 7 | This variant requires the TinyUF2 bootloader to be installed. This can be downloaded from the [tinyuf2 releases page](https://github.com/adafruit/tinyuf2/releases). The F401 blackpill binary works for both F401- and F411-based blackpill devices. |
8 | 8 | ||
9 | Double-tap reset to enter bootloader mode. Copy the built uf2 file to the device by dragging the file to the new USB disk. \ No newline at end of file | 9 | Double-tap reset to enter bootloader mode. Copy the built uf2 file to the device by dragging the file to the new USB disk. |
diff --git a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/rules.mk b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/rules.mk index 4d0b1591e..70180ee79 100755 --- a/keyboards/handwired/onekey/blackpill_f411_tinyuf2/rules.mk +++ b/keyboards/handwired/onekey/blackpill_f411_tinyuf2/rules.mk | |||
@@ -4,7 +4,4 @@ MCU = STM32F411 | |||
4 | # Bootloader selection | 4 | # Bootloader selection |
5 | BOOTLOADER = tinyuf2 | 5 | BOOTLOADER = tinyuf2 |
6 | 6 | ||
7 | # Build Options | 7 | KEYBOARD_SHARED_EP = yes |
8 | # change yes to no to disable | ||
9 | # | ||
10 | KEYBOARD_SHARED_EP = yes | ||
diff --git a/keyboards/handwired/onekey/bluepill/chconf.h b/keyboards/handwired/onekey/bluepill/chconf.h index c7a982aed..63236f2c2 100644 --- a/keyboards/handwired/onekey/bluepill/chconf.h +++ b/keyboards/handwired/onekey/bluepill/chconf.h | |||
@@ -26,4 +26,3 @@ | |||
26 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | 26 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE |
27 | 27 | ||
28 | #include_next <chconf.h> | 28 | #include_next <chconf.h> |
29 | |||
diff --git a/keyboards/handwired/onekey/bluepill/config.h b/keyboards/handwired/onekey/bluepill/config.h index c6166380c..3eb7699a8 100644 --- a/keyboards/handwired/onekey/bluepill/config.h +++ b/keyboards/handwired/onekey/bluepill/config.h | |||
@@ -18,13 +18,15 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Bluepill STM32F103 | ||
22 | |||
21 | #define MATRIX_COL_PINS { B0 } | 23 | #define MATRIX_COL_PINS { B0 } |
22 | #define MATRIX_ROW_PINS { A7 } | 24 | #define MATRIX_ROW_PINS { A7 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
24 | 26 | ||
25 | #define BACKLIGHT_PIN A0 | 27 | #define BACKLIGHT_PIN A0 |
26 | #define BACKLIGHT_PWM_DRIVER PWMD2 | 28 | #define BACKLIGHT_PWM_DRIVER PWMD2 |
27 | #define BACKLIGHT_PWM_CHANNEL 1 | 29 | #define BACKLIGHT_PWM_CHANNEL 1 |
28 | 30 | ||
29 | #define RGB_DI_PIN A1 | 31 | #define RGB_DI_PIN A1 |
30 | 32 | ||
diff --git a/keyboards/handwired/onekey/bluepill/halconf.h b/keyboards/handwired/onekey/bluepill/halconf.h index 956d50f26..923b4e52d 100644 --- a/keyboards/handwired/onekey/bluepill/halconf.h +++ b/keyboards/handwired/onekey/bluepill/halconf.h | |||
@@ -24,4 +24,3 @@ | |||
24 | #define HAL_USE_PWM TRUE | 24 | #define HAL_USE_PWM TRUE |
25 | 25 | ||
26 | #include_next <halconf.h> | 26 | #include_next <halconf.h> |
27 | |||
diff --git a/keyboards/handwired/onekey/bluepill/mcuconf.h b/keyboards/handwired/onekey/bluepill/mcuconf.h index 99525360b..5e94a97e2 100644 --- a/keyboards/handwired/onekey/bluepill/mcuconf.h +++ b/keyboards/handwired/onekey/bluepill/mcuconf.h | |||
@@ -28,4 +28,3 @@ | |||
28 | 28 | ||
29 | #undef STM32_SPI_USE_SPI2 | 29 | #undef STM32_SPI_USE_SPI2 |
30 | #define STM32_SPI_USE_SPI2 FALSE | 30 | #define STM32_SPI_USE_SPI2 FALSE |
31 | |||
diff --git a/keyboards/handwired/onekey/bluepill/readme.md b/keyboards/handwired/onekey/bluepill/readme.md index 0bf1f5701..8688e09b4 100644 --- a/keyboards/handwired/onekey/bluepill/readme.md +++ b/keyboards/handwired/onekey/bluepill/readme.md | |||
@@ -1,3 +1,3 @@ | |||
1 | # bluepill onekey | 1 | # Bluepill onekey |
2 | 2 | ||
3 | To trigger keypress, short together pins *B0* and *A7*. | 3 | To trigger keypress, short together pins *B0* and *A7*. |
diff --git a/keyboards/handwired/onekey/config.h b/keyboards/handwired/onekey/config.h index 4643da7cf..950146a5d 100644 --- a/keyboards/handwired/onekey/config.h +++ b/keyboards/handwired/onekey/config.h | |||
@@ -18,31 +18,31 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
18 | #pragma once | 18 | #pragma once |
19 | 19 | ||
20 | /* USB Device descriptor parameter */ | 20 | /* USB Device descriptor parameter */ |
21 | #define VENDOR_ID 0xFEED | 21 | #define VENDOR_ID 0xFEED |
22 | #define PRODUCT_ID 0x6465 | 22 | #define PRODUCT_ID 0x6465 |
23 | #define DEVICE_VER 0x0001 | 23 | #define DEVICE_VER 0x0001 |
24 | #define MANUFACTURER none | 24 | #define MANUFACTURER QMK |
25 | #define PRODUCT onekey | ||
26 | 25 | ||
27 | /* key matrix size */ | 26 | /* key matrix size */ |
28 | #define MATRIX_ROWS 1 | 27 | #define MATRIX_ROWS 1 |
29 | #define MATRIX_COLS 1 | 28 | #define MATRIX_COLS 1 |
30 | 29 | ||
30 | /* COL2ROW, ROW2COL */ | ||
31 | #define DIODE_DIRECTION COL2ROW | 31 | #define DIODE_DIRECTION COL2ROW |
32 | 32 | ||
33 | /* define if matrix has ghost */ | 33 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
34 | //#define MATRIX_HAS_GHOST | 34 | #define DEBOUNCE 5 |
35 | |||
36 | /* Set 0 if debouncing isn't needed */ | ||
37 | #define DEBOUNCE 5 | ||
38 | 35 | ||
39 | #define TAPPING_TERM 500 | 36 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ |
37 | //#define MATRIX_HAS_GHOST | ||
40 | 38 | ||
41 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 39 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
42 | #define LOCKING_SUPPORT_ENABLE | 40 | #define LOCKING_SUPPORT_ENABLE |
43 | /* Locking resynchronize hack */ | 41 | /* Locking resynchronize hack */ |
44 | #define LOCKING_RESYNC_ENABLE | 42 | #define LOCKING_RESYNC_ENABLE |
45 | 43 | ||
44 | #define TAPPING_TERM 500 | ||
45 | |||
46 | /* | 46 | /* |
47 | * Feature disable options | 47 | * Feature disable options |
48 | * These options are also useful to firmware size reduction. | 48 | * These options are also useful to firmware size reduction. |
@@ -58,5 +58,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
58 | //#define NO_ACTION_LAYER | 58 | //#define NO_ACTION_LAYER |
59 | //#define NO_ACTION_TAPPING | 59 | //#define NO_ACTION_TAPPING |
60 | //#define NO_ACTION_ONESHOT | 60 | //#define NO_ACTION_ONESHOT |
61 | //#define NO_ACTION_MACRO | 61 | |
62 | //#define NO_ACTION_FUNCTION | 62 | /* disable these deprecated features by default */ |
63 | #define NO_ACTION_MACRO | ||
64 | #define NO_ACTION_FUNCTION | ||
65 | |||
66 | /* Bootmagic Lite key configuration */ | ||
67 | //#define BOOTMAGIC_LITE_ROW 0 | ||
68 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/handwired/onekey/elite_c/config.h b/keyboards/handwired/onekey/elite_c/config.h index 02c81ce74..f495a1c38 100644 --- a/keyboards/handwired/onekey/elite_c/config.h +++ b/keyboards/handwired/onekey/elite_c/config.h | |||
@@ -18,6 +18,8 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Elite-C | ||
22 | |||
21 | #define MATRIX_COL_PINS { F4 } | 23 | #define MATRIX_COL_PINS { F4 } |
22 | #define MATRIX_ROW_PINS { F5 } | 24 | #define MATRIX_ROW_PINS { F5 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
diff --git a/keyboards/handwired/onekey/elite_c/readme.md b/keyboards/handwired/onekey/elite_c/readme.md index 28a0885bb..5320d7b61 100644 --- a/keyboards/handwired/onekey/elite_c/readme.md +++ b/keyboards/handwired/onekey/elite_c/readme.md | |||
@@ -1,3 +1,3 @@ | |||
1 | # Elite-C onekey | 1 | # Elite-C onekey |
2 | 2 | ||
3 | To trigger keypress, short together pins *F4* and *F5* (marked on the PCB as *A3* and *A2*). | 3 | To trigger keypress, short together pins *F4* and *F5*. |
diff --git a/keyboards/handwired/onekey/elite_c/rules.mk b/keyboards/handwired/onekey/elite_c/rules.mk index 2f20507d4..e8326bcf0 100644 --- a/keyboards/handwired/onekey/elite_c/rules.mk +++ b/keyboards/handwired/onekey/elite_c/rules.mk | |||
@@ -2,11 +2,4 @@ | |||
2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
3 | 3 | ||
4 | # Bootloader selection | 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 = atmel-dfu | 5 | BOOTLOADER = atmel-dfu |
diff --git a/keyboards/handwired/onekey/info.json b/keyboards/handwired/onekey/info.json index ac339ba19..641f2aa6f 100644 --- a/keyboards/handwired/onekey/info.json +++ b/keyboards/handwired/onekey/info.json | |||
@@ -7,7 +7,7 @@ | |||
7 | "layouts": { | 7 | "layouts": { |
8 | "LAYOUT_ortho_1x1": { | 8 | "LAYOUT_ortho_1x1": { |
9 | "layout": [ | 9 | "layout": [ |
10 | {"x":0, "y":0} | 10 | {"x": 0, "y": 0} |
11 | ] | 11 | ] |
12 | } | 12 | } |
13 | } | 13 | } |
diff --git a/keyboards/handwired/onekey/keymaps/console/keymap.c b/keyboards/handwired/onekey/keymaps/console/keymap.c new file mode 100644 index 000000000..ad8fd402e --- /dev/null +++ b/keyboards/handwired/onekey/keymaps/console/keymap.c | |||
@@ -0,0 +1,20 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | enum custom_keycodes { | ||
4 | KC_HELLO = SAFE_RANGE, | ||
5 | }; | ||
6 | |||
7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
8 | LAYOUT_ortho_1x1(KC_HELLO) | ||
9 | }; | ||
10 | |||
11 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
12 | switch (keycode) { | ||
13 | case KC_HELLO: | ||
14 | if (record->event.pressed) { | ||
15 | printf("Hello world!\n"); | ||
16 | } | ||
17 | return false; | ||
18 | } | ||
19 | return true; | ||
20 | } | ||
diff --git a/keyboards/handwired/onekey/onekey.c b/keyboards/handwired/onekey/onekey.c index c79e0120e..cbd67012c 100644 --- a/keyboards/handwired/onekey/onekey.c +++ b/keyboards/handwired/onekey/onekey.c | |||
@@ -1 +1 @@ | |||
#include "onekey.h" \ No newline at end of file | #include "onekey.h" | ||
diff --git a/keyboards/handwired/onekey/promicro/config.h b/keyboards/handwired/onekey/promicro/config.h index 02c81ce74..9c8961d5c 100644 --- a/keyboards/handwired/onekey/promicro/config.h +++ b/keyboards/handwired/onekey/promicro/config.h | |||
@@ -18,6 +18,8 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Pro Micro | ||
22 | |||
21 | #define MATRIX_COL_PINS { F4 } | 23 | #define MATRIX_COL_PINS { F4 } |
22 | #define MATRIX_ROW_PINS { F5 } | 24 | #define MATRIX_ROW_PINS { F5 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
diff --git a/keyboards/handwired/onekey/promicro/rules.mk b/keyboards/handwired/onekey/promicro/rules.mk index e6fef5172..cf663a7ed 100644 --- a/keyboards/handwired/onekey/promicro/rules.mk +++ b/keyboards/handwired/onekey/promicro/rules.mk | |||
@@ -2,11 +2,4 @@ | |||
2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
3 | 3 | ||
4 | # Bootloader selection | 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 | 5 | BOOTLOADER = caterina |
diff --git a/keyboards/handwired/onekey/proton_c/config.h b/keyboards/handwired/onekey/proton_c/config.h index a364bbee3..5600ae33a 100644 --- a/keyboards/handwired/onekey/proton_c/config.h +++ b/keyboards/handwired/onekey/proton_c/config.h | |||
@@ -18,14 +18,16 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Proton-C | ||
22 | |||
21 | #define MATRIX_COL_PINS { A2 } | 23 | #define MATRIX_COL_PINS { A2 } |
22 | #define MATRIX_ROW_PINS { A1 } | 24 | #define MATRIX_ROW_PINS { A1 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
24 | 26 | ||
25 | #define BACKLIGHT_PIN B8 | 27 | #define BACKLIGHT_PIN B8 |
26 | #define BACKLIGHT_PWM_DRIVER PWMD4 | 28 | #define BACKLIGHT_PWM_DRIVER PWMD4 |
27 | #define BACKLIGHT_PWM_CHANNEL 3 | 29 | #define BACKLIGHT_PWM_CHANNEL 3 |
28 | #define BACKLIGHT_PAL_MODE 2 | 30 | #define BACKLIGHT_PAL_MODE 2 |
29 | 31 | ||
30 | #define RGB_DI_PIN A0 | 32 | #define RGB_DI_PIN A0 |
31 | #define RGB_CI_PIN B13 | 33 | #define RGB_CI_PIN B13 |
diff --git a/keyboards/handwired/onekey/proton_c/readme.md b/keyboards/handwired/onekey/proton_c/readme.md index be5a2871c..c8c21838e 100644 --- a/keyboards/handwired/onekey/proton_c/readme.md +++ b/keyboards/handwired/onekey/proton_c/readme.md | |||
@@ -1,3 +1,3 @@ | |||
1 | # Proton C onekey | 1 | # Proton-C onekey |
2 | 2 | ||
3 | To trigger keypress, short together pins *A1* and *A2*. | 3 | To trigger keypress, short together pins *A1* and *A2*. |
diff --git a/keyboards/handwired/onekey/readme.md b/keyboards/handwired/onekey/readme.md index 0e9d6a538..b630b1174 100644 --- a/keyboards/handwired/onekey/readme.md +++ b/keyboards/handwired/onekey/readme.md | |||
@@ -1,15 +1,17 @@ | |||
1 | # onekey handwired | 1 | # onekey |
2 | 2 | ||
3 | Custom handwired one key keyboard. | 3 | Custom handwired one key keyboard. **See each individual board for pin information.** |
4 | 4 | ||
5 | Keyboard Maintainer: QMK Community | 5 | * Keyboard Maintainer: QMK Community |
6 | Hardware Supported: bluepill, Elite-C, Pro Micro, Proton C, Teensy 2.0, Teensy++ 2.0, Teensy LC, Teensy 3.2 | 6 | * Hardware Supported: bluepill, Elite-C, Pro Micro, Proton C, Teensy 2.0, Teensy++ 2.0, Teensy LC, Teensy 3.2 |
7 | Hardware Availability: | 7 | * Hardware Availability: *n/a* |
8 | |||
9 | **See each individual board for pin infomation** | ||
10 | 8 | ||
11 | Make example for this keyboard (after setting up your build environment): | 9 | Make example for this keyboard (after setting up your build environment): |
12 | 10 | ||
13 | make handwired/onekey:default | 11 | make handwired/onekey:default |
14 | 12 | ||
13 | Flashing example for this keyboard: | ||
14 | |||
15 | make handwired/onekey:default:flash | ||
16 | |||
15 | 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). | 17 | 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/handwired/onekey/rules.mk b/keyboards/handwired/onekey/rules.mk index df2ec1ecf..d4676e449 100644 --- a/keyboards/handwired/onekey/rules.mk +++ b/keyboards/handwired/onekey/rules.mk | |||
@@ -1,21 +1,20 @@ | |||
1 | # Build Options | 1 | # Build Options |
2 | # change yes to no to disable | 2 | # change yes to no to disable |
3 | # | 3 | # |
4 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 4 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration |
5 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 5 | MOUSEKEY_ENABLE = yes # Mouse keys |
6 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 6 | EXTRAKEY_ENABLE = yes # Audio control and System control |
7 | CONSOLE_ENABLE = yes # Console for debug(+400) | 7 | CONSOLE_ENABLE = yes # Console for debug |
8 | COMMAND_ENABLE = no # Commands for debug and configuration | 8 | COMMAND_ENABLE = no # Commands for debug and configuration |
9 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 9 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
10 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 10 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
11 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 11 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
12 | NKRO_ENABLE = yes # USB Nkey Rollover | 12 | NKRO_ENABLE = yes # USB Nkey Rollover |
13 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | 13 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
14 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 14 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
15 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
16 | UNICODE_ENABLE = no # Unicode | 16 | AUDIO_ENABLE = no # Audio output |
17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
18 | AUDIO_ENABLE = no # Audio output on port C6 | ||
19 | 17 | ||
20 | DEFAULT_FOLDER = handwired/onekey/promicro | 18 | DEFAULT_FOLDER = handwired/onekey/promicro |
19 | |||
21 | LAYOUTS = ortho_1x1 | 20 | LAYOUTS = ortho_1x1 |
diff --git a/keyboards/handwired/onekey/stm32f0_disco/chconf.h b/keyboards/handwired/onekey/stm32f0_disco/chconf.h index 33ceb1431..1e497767d 100644 --- a/keyboards/handwired/onekey/stm32f0_disco/chconf.h +++ b/keyboards/handwired/onekey/stm32f0_disco/chconf.h | |||
@@ -28,4 +28,3 @@ | |||
28 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | 28 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE |
29 | 29 | ||
30 | #include_next <chconf.h> | 30 | #include_next <chconf.h> |
31 | |||
diff --git a/keyboards/handwired/onekey/stm32f0_disco/config.h b/keyboards/handwired/onekey/stm32f0_disco/config.h index 0d6dd18fa..e0f6d0005 100644 --- a/keyboards/handwired/onekey/stm32f0_disco/config.h +++ b/keyboards/handwired/onekey/stm32f0_disco/config.h | |||
@@ -18,14 +18,16 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey STM32F072 Discovery | ||
22 | |||
21 | #define MATRIX_COL_PINS { B4 } | 23 | #define MATRIX_COL_PINS { B4 } |
22 | #define MATRIX_ROW_PINS { B5 } | 24 | #define MATRIX_ROW_PINS { B5 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
24 | 26 | ||
25 | #define BACKLIGHT_PIN C8 | 27 | #define BACKLIGHT_PIN C8 |
26 | #define BACKLIGHT_PWM_DRIVER PWMD3 | 28 | #define BACKLIGHT_PWM_DRIVER PWMD3 |
27 | #define BACKLIGHT_PWM_CHANNEL 3 | 29 | #define BACKLIGHT_PWM_CHANNEL 3 |
28 | #define BACKLIGHT_PAL_MODE 0 | 30 | #define BACKLIGHT_PAL_MODE 0 |
29 | 31 | ||
30 | #define RGB_DI_PIN B15 | 32 | #define RGB_DI_PIN B15 |
31 | 33 | ||
diff --git a/keyboards/handwired/onekey/stm32f0_disco/halconf.h b/keyboards/handwired/onekey/stm32f0_disco/halconf.h index cb7de6738..78ed6586c 100644 --- a/keyboards/handwired/onekey/stm32f0_disco/halconf.h +++ b/keyboards/handwired/onekey/stm32f0_disco/halconf.h | |||
@@ -24,4 +24,3 @@ | |||
24 | #define HAL_USE_PWM TRUE | 24 | #define HAL_USE_PWM TRUE |
25 | 25 | ||
26 | #include_next <halconf.h> | 26 | #include_next <halconf.h> |
27 | |||
diff --git a/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h b/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h index 52d39e4dd..ea4f9373a 100644 --- a/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h +++ b/keyboards/handwired/onekey/stm32f0_disco/mcuconf.h | |||
@@ -25,4 +25,3 @@ | |||
25 | 25 | ||
26 | #undef STM32_PWM_USE_TIM3 | 26 | #undef STM32_PWM_USE_TIM3 |
27 | #define STM32_PWM_USE_TIM3 TRUE | 27 | #define STM32_PWM_USE_TIM3 TRUE |
28 | |||
diff --git a/keyboards/handwired/onekey/stm32f0_disco/readme.md b/keyboards/handwired/onekey/stm32f0_disco/readme.md index 48d999d69..0f5c01984 100644 --- a/keyboards/handwired/onekey/stm32f0_disco/readme.md +++ b/keyboards/handwired/onekey/stm32f0_disco/readme.md | |||
@@ -1,5 +1,5 @@ | |||
1 | # STM32F072 Discovery kit onekey | 1 | # STM32F072 Discovery kit onekey |
2 | 2 | ||
3 | Supported Hardware: <https://www.st.com/en/evaluation-tools/32f072bdiscovery.html> | 3 | * Supported Hardware: [STM32F072 Discovery](https://www.st.com/en/evaluation-tools/32f072bdiscovery.html) |
4 | 4 | ||
5 | To trigger keypress, short together pins *B4* and *B5*. | 5 | To trigger keypress, short together pins *B4* and *B5*. |
diff --git a/keyboards/handwired/onekey/teensy_2/config.h b/keyboards/handwired/onekey/teensy_2/config.h index 167373cd3..b83262ef0 100644 --- a/keyboards/handwired/onekey/teensy_2/config.h +++ b/keyboards/handwired/onekey/teensy_2/config.h | |||
@@ -18,6 +18,8 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Teensy 2.0 | ||
22 | |||
21 | #define MATRIX_COL_PINS { F4 } | 23 | #define MATRIX_COL_PINS { F4 } |
22 | #define MATRIX_ROW_PINS { F5 } | 24 | #define MATRIX_ROW_PINS { F5 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
diff --git a/keyboards/handwired/onekey/teensy_2/readme.md b/keyboards/handwired/onekey/teensy_2/readme.md index 86a3114e5..bf4cf6d2f 100644 --- a/keyboards/handwired/onekey/teensy_2/readme.md +++ b/keyboards/handwired/onekey/teensy_2/readme.md | |||
@@ -1,3 +1,3 @@ | |||
1 | # Teensy 2.0 onekey | 1 | # Teensy 2.0 onekey |
2 | 2 | ||
3 | To trigger keypress, short together pins *F4* and *F5* | 3 | To trigger keypress, short together pins *F4* and *F5*. |
diff --git a/keyboards/handwired/onekey/teensy_2/rules.mk b/keyboards/handwired/onekey/teensy_2/rules.mk index ae398e258..320633f80 100644 --- a/keyboards/handwired/onekey/teensy_2/rules.mk +++ b/keyboards/handwired/onekey/teensy_2/rules.mk | |||
@@ -2,11 +2,4 @@ | |||
2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
3 | 3 | ||
4 | # Bootloader selection | 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 = halfkay | 5 | BOOTLOADER = halfkay |
diff --git a/keyboards/handwired/onekey/teensy_2pp/config.h b/keyboards/handwired/onekey/teensy_2pp/config.h index 167373cd3..886ad70cb 100644 --- a/keyboards/handwired/onekey/teensy_2pp/config.h +++ b/keyboards/handwired/onekey/teensy_2pp/config.h | |||
@@ -18,6 +18,8 @@ | |||
18 | 18 | ||
19 | #include "config_common.h" | 19 | #include "config_common.h" |
20 | 20 | ||
21 | #define PRODUCT Onekey Teensy 2++ | ||
22 | |||
21 | #define MATRIX_COL_PINS { F4 } | 23 | #define MATRIX_COL_PINS { F4 } |
22 | #define MATRIX_ROW_PINS { F5 } | 24 | #define MATRIX_ROW_PINS { F5 } |
23 | #define UNUSED_PINS | 25 | #define UNUSED_PINS |
diff --git a/keyboards/handwired/onekey/teensy_2pp/readme.md b/keyboards/handwired/onekey/teensy_2pp/readme.md index 243b08df1..c2c96d12c 100644 --- a/keyboards/handwired/onekey/teensy_2pp/readme.md +++ b/keyboards/handwired/onekey/teensy_2pp/readme.md | |||
@@ -1,3 +1,3 @@ | |||
1 | # Teensy++ 2.0 onekey | 1 | # Teensy++ 2.0 onekey |
2 | 2 | ||
3 | To trigger keypress, short together pins *F4* and *F5* | 3 | To trigger keypress, short together pins *F4* and *F5*. |
diff --git a/keyboards/handwired/onekey/teensy_2pp/rules.mk b/keyboards/handwired/onekey/teensy_2pp/rules.mk index c421eb862..149471682 100644 --- a/keyboards/handwired/onekey/teensy_2pp/rules.mk +++ b/keyboards/handwired/onekey/teensy_2pp/rules.mk | |||
@@ -2,11 +2,4 @@ | |||
2 | MCU = at90usb1286 | 2 | MCU = at90usb1286 |
3 | 3 | ||
4 | # Bootloader selection | 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 = halfkay | 5 | BOOTLOADER = halfkay |
diff --git a/keyboards/handwired/onekey/teensy_32/chconf.h b/keyboards/handwired/onekey/teensy_32/chconf.h index 199e8d05b..b7b23f268 100644 --- a/keyboards/handwired/onekey/teensy_32/chconf.h +++ b/keyboards/handwired/onekey/teensy_32/chconf.h | |||
@@ -50,4 +50,3 @@ | |||
50 | #define CH_DBG_FILL_THREADS TRUE | 50 | #define CH_DBG_FILL_THREADS TRUE |
51 | 51 | ||
52 | #include_next <chconf.h> | 52 | #include_next <chconf.h> |
53 | |||
diff --git a/keyboards/handwired/onekey/teensy_32/config.h b/keyboards/handwired/onekey/teensy_32/config.h index a4839135a..180f32487 100644 --- a/keyboards/handwired/onekey/teensy_32/config.h +++ b/keyboards/handwired/onekey/teensy_32/config.h | |||
@@ -19,6 +19,8 @@ | |||
19 | // TODO: including this causes "error: expected identifier before '(' token" errors | 19 | // TODO: including this causes "error: expected identifier before '(' token" errors |
20 | //#include "config_common.h" | 20 | //#include "config_common.h" |
21 | 21 | ||
22 | #define PRODUCT Onekey Teensy 3.2 | ||
23 | |||
22 | #define MATRIX_COL_PINS { D5 } | 24 | #define MATRIX_COL_PINS { D5 } |
23 | #define MATRIX_ROW_PINS { B2 } | 25 | #define MATRIX_ROW_PINS { B2 } |
24 | #define UNUSED_PINS | 26 | #define UNUSED_PINS |
diff --git a/keyboards/handwired/onekey/teensy_32/halconf.h b/keyboards/handwired/onekey/teensy_32/halconf.h index e5019779c..5c99dcbd9 100644 --- a/keyboards/handwired/onekey/teensy_32/halconf.h +++ b/keyboards/handwired/onekey/teensy_32/halconf.h | |||
@@ -24,4 +24,3 @@ | |||
24 | #define HAL_USE_I2C TRUE | 24 | #define HAL_USE_I2C TRUE |
25 | 25 | ||
26 | #include_next <halconf.h> | 26 | #include_next <halconf.h> |
27 | |||
diff --git a/keyboards/handwired/onekey/teensy_lc/chconf.h b/keyboards/handwired/onekey/teensy_lc/chconf.h index cfcced3cf..03dc5f0c9 100644 --- a/keyboards/handwired/onekey/teensy_lc/chconf.h +++ b/keyboards/handwired/onekey/teensy_lc/chconf.h | |||
@@ -50,4 +50,3 @@ | |||
50 | #define CH_DBG_FILL_THREADS TRUE | 50 | #define CH_DBG_FILL_THREADS TRUE |
51 | 51 | ||
52 | #include_next <chconf.h> | 52 | #include_next <chconf.h> |
53 | |||
diff --git a/keyboards/handwired/onekey/teensy_lc/config.h b/keyboards/handwired/onekey/teensy_lc/config.h index a4839135a..ad30f969f 100644 --- a/keyboards/handwired/onekey/teensy_lc/config.h +++ b/keyboards/handwired/onekey/teensy_lc/config.h | |||
@@ -19,6 +19,8 @@ | |||
19 | // TODO: including this causes "error: expected identifier before '(' token" errors | 19 | // TODO: including this causes "error: expected identifier before '(' token" errors |
20 | //#include "config_common.h" | 20 | //#include "config_common.h" |
21 | 21 | ||
22 | #define PRODUCT Onekey Teensy LC | ||
23 | |||
22 | #define MATRIX_COL_PINS { D5 } | 24 | #define MATRIX_COL_PINS { D5 } |
23 | #define MATRIX_ROW_PINS { B2 } | 25 | #define MATRIX_ROW_PINS { B2 } |
24 | #define UNUSED_PINS | 26 | #define UNUSED_PINS |
diff --git a/keyboards/handwired/onekey/teensy_lc/halconf.h b/keyboards/handwired/onekey/teensy_lc/halconf.h index bdf1ba431..89e2bcbbe 100644 --- a/keyboards/handwired/onekey/teensy_lc/halconf.h +++ b/keyboards/handwired/onekey/teensy_lc/halconf.h | |||
@@ -24,4 +24,3 @@ | |||
24 | #define HAL_USE_I2C TRUE | 24 | #define HAL_USE_I2C TRUE |
25 | 25 | ||
26 | #include_next <halconf.h> | 26 | #include_next <halconf.h> |
27 | |||