diff options
author | QMK Bot <hello@qmk.fm> | 2023-04-05 08:07:10 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2023-04-05 08:07:10 +0000 |
commit | cb87a238ab4ee63f8f946f1b6aa52f1a1261c282 (patch) | |
tree | a3c427024c5e8fca51f9d860a6c460f92e3fc566 /keyboards/junco/rev1/config.h | |
parent | 8bb4cba7b04571d75674f8f3f19462adef015060 (diff) | |
parent | 1d045e854b7adbe8a60ce5aeb16438c4652949da (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/junco/rev1/config.h')
-rw-r--r-- | keyboards/junco/rev1/config.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/keyboards/junco/rev1/config.h b/keyboards/junco/rev1/config.h new file mode 100644 index 0000000000..d9c0556cdf --- /dev/null +++ b/keyboards/junco/rev1/config.h @@ -0,0 +1,43 @@ +// Copyright 2022 Dane Skalski (@Daneski13) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +// Electrical Wiring Stuff +#define MATRIX_ROW_PINS \ + { GP8, GP9, GP10, GP11, GP12 } +#define MATRIX_COL_PINS \ + { GP2, GP3, GP4, GP5, GP6, GP7 } +#define DIODE_DIRECTION COL2ROW + +// Split Keyboard Stuff +#define EE_HANDS // Sets the keyboard’s handedness using EEPROM +#define SERIAL_USART_FULL_DUPLEX // Use full duplex communication (TRRS) +#define SERIAL_USART_TX_PIN GP0 // USART TX pin +#define SERIAL_USART_RX_PIN GP1 // USART RX pin + +/* RGB Stuff */ +#ifdef RGB_MATRIX_ENABLE + +# define RGB_DI_PIN GP15 // Pin for RGB logic +# define RGB_MATRIX_LED_COUNT 74 +# define RGB_MATRIX_SPLIT \ + { 37, 37 } // 37 LEDs on each side + +#endif + +/* Rotary Encoders Definition */ +// Indexing goes from physical leftmost to rightmost +// 0: left-half left | 1: left-half right | 2: right-half left | 3: right-half right +#ifdef ENCODER_ENABLE + +# define ENCODERS_PAD_A \ + { GP16, GP14 } +# define ENCODERS_PAD_B \ + { GP17, GP13 } +# define ENCODERS_PAD_A_RIGHT \ + { GP14, GP16 } +# define ENCODERS_PAD_B_RIGHT \ + { GP13, GP17 } + +#endif |