diff options
| author | Gigahawk <jasperchan515@gmail.com> | 2021-06-09 18:40:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-10 11:40:25 +1000 |
| commit | 32b2ac0a807bdb088df685e6118f4c0966b6cca4 (patch) | |
| tree | c1720e551dc875bd585dc1136f4f99ea00f23c28 /keyboards/gmmk/pro/config.h | |
| parent | e21a03990116b439de2d4a0181f4a87d048e0366 (diff) | |
| download | qmk_firmware-32b2ac0a807bdb088df685e6118f4c0966b6cca4.tar.gz qmk_firmware-32b2ac0a807bdb088df685e6118f4c0966b6cca4.zip | |
GMMK Pro RGB Support (#13147)
* Enable SPI1 for GMMK pro
* Setup initial boilerplate for new LED driver
* RGB matrix minimally functional
* Map full LED matrix
* Return keymap to default
* Fix printscreen LED mapping
* Reduce max brightness
* Default values for AW20216
* Add documentation for AW20216
* Disable console and warnings
* Run cformat
* Update drivers/awinic/aw20216.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* make aw struct match issi struct
Co-authored-by: Drashna Jaelre <drashna@live.com>
* add led location defines
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Use led pin definitions in keyboard.c
* Add driver indices to led map
* Fix elif typo
* Run cformat
* Update docs
* Fix typo in docs
* Document global brightness limits
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/gmmk/pro/config.h')
| -rw-r--r-- | keyboards/gmmk/pro/config.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/gmmk/pro/config.h b/keyboards/gmmk/pro/config.h index ab3c7a7a2..64062bece 100644 --- a/keyboards/gmmk/pro/config.h +++ b/keyboards/gmmk/pro/config.h | |||
| @@ -46,3 +46,20 @@ | |||
| 46 | #define LOCKING_SUPPORT_ENABLE | 46 | #define LOCKING_SUPPORT_ENABLE |
| 47 | /* Locking resynchronize hack */ | 47 | /* Locking resynchronize hack */ |
| 48 | #define LOCKING_RESYNC_ENABLE | 48 | #define LOCKING_RESYNC_ENABLE |
| 49 | |||
| 50 | /* SPI Config for LED Driver */ | ||
| 51 | #define SPI_DRIVER SPID1 | ||
| 52 | #define SPI_SCK_PIN A5 | ||
| 53 | #define SPI_MOSI_PIN A6 | ||
| 54 | #define SPI_MISO_PIN A7 | ||
| 55 | |||
| 56 | #define DRIVER_1_CS B13 | ||
| 57 | #define DRIVER_2_CS B14 | ||
| 58 | #define DRIVER_1_EN C13 | ||
| 59 | #define DRIVER_2_EN C13 | ||
| 60 | |||
| 61 | #define DRIVER_COUNT 2 | ||
| 62 | #define DRIVER_1_LED_TOTAL 66 | ||
| 63 | #define DRIVER_2_LED_TOTAL 32 | ||
| 64 | #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) | ||
| 65 | |||
