Skip to content

Commit

Permalink
[Keychron K8] Rewriting K8 to use info.json format (qmk#316)
Browse files Browse the repository at this point in the history
* Squashed commit of the following:

commit 0533d61
Author: Nick Brassel <[email protected]>
Date:   Thu Jul 7 08:56:39 2022 +1000

    Update keyboard.jsonschema

    Oops.

commit 95d6beb
Merge: ea8b4d8 744af00
Author: Nick Brassel <[email protected]>
Date:   Thu Jul 7 08:55:27 2022 +1000

    Merge branch 'develop' into sonix

commit ea8b4d8
Author: Dimitris Mantzouranis <[email protected]>
Date:   Sun Feb 13 15:23:10 2022 +0200

    update configs for chibios 2.11

commit 45fd6d3
Author: Dimitris Mantzouranis <[email protected]>
Date:   Thu Mar 3 18:31:14 2022 +0200

    use wait function for bootloader_jump

commit 3a3b621
Author: Dimitris Mantzouranis <[email protected]>
Date:   Thu Mar 3 17:41:48 2022 +0200

    add sonix sn32 in docs

commit 4fbcb68
Author: Dimitris Mantzouranis <[email protected]>
Date:   Thu Mar 3 14:57:18 2022 +0200

    sonix sn32f2xx platform support

* Update BL

* Add OneKey

* Fix jsonschema, fix missing mcu_reset

* remove old eeprom code

* simplify configs based on common ones

* 260: add board specific chconf

* fall back to periodic tic
timers aren't as good as we'd like. The VT in charge of them causes mayhem on double-buffered timers like CT16, resulting in random timekeeping

* common chconf.h: allow custom idle hooks

* Revert "common chconf.h: allow custom idle hooks"

This reverts commit 92d5f99.

* apparently you can just cheese the preprocessor

nice

* move usb specifics out of chibios configs

* more config cleanup

* 260: cleanup config.h

* Wear-Leveling driver for SN32 platform

* Fix typo on store_erase

* Rename SN32 WL driver, guard the last page

* Change page count

* Update ChibiOS-Contrib submodule

* Revert "fall back to periodic tic"

This reverts commit a39707f.

* Add k8 converted to info.json

* Cleanup rules.mk

* Move eeprom config to common k8, and verify via setup

* Fix via_iso compile error

* Sonix SN32 platform support

Squashed commit of the following:

commit c2a505582c7f2acb70d402a52bd28dc66d1812e4
Merge: 74b1b54 0c6e12c
Author: dexter93 <[email protected]>
Date:   Thu Oct 27 21:21:55 2022 +0300

    Merge pull request qmk#12 from dexter93/revert-11-sn32_up_wl

    Revert "Wear Leveling driver for SN32 platform"

commit 0c6e12c
Author: dexter93 <[email protected]>
Date:   Thu Oct 27 21:21:35 2022 +0300

    Revert "Wear Leveling driver for SN32 platform"

commit 74b1b54
Merge: 95b9528 3f4d1cb
Author: dexter93 <[email protected]>
Date:   Thu Oct 27 19:35:46 2022 +0300

    Merge pull request qmk#11 from Jpe230/sn32_up_wl

    Wear Leveling driver for SN32 platform

commit 3f4d1cb
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:42:04 2022 -0500

    Change page count

commit 77f358d
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:32:43 2022 -0500

    Rename SN32 WL driver, guard the last page

commit 40a8d85
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:14:22 2022 -0500

    Fix typo on store_erase

commit 95b9528
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 23:11:54 2022 +0300

    260: cleanup config.h

commit 2dc6b43
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:05:41 2022 -0500

    Wear-Leveling driver for SN32 platform

commit b21897a
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 22:50:33 2022 +0300

    more config cleanup

commit 4660b56
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 22:37:36 2022 +0300

    move usb specifics out of chibios configs

commit d6c6057
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 22:02:43 2022 +0300

    apparently you can just cheese the preprocessor

    nice

commit 7c84758
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 21:58:44 2022 +0300

    Revert "common chconf.h: allow custom idle hooks"

    This reverts commit 92d5f99.

commit 92d5f99
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 21:17:08 2022 +0300

    common chconf.h: allow custom idle hooks

commit a39707f
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 21:06:45 2022 +0300

    fall back to periodic tic
    timers aren't as good as we'd like. The VT in charge of them causes mayhem on double-buffered timers like CT16, resulting in random timekeeping

commit 2e95cef
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 21:02:01 2022 +0300

    260: add board specific chconf

commit 78ee352
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 20:59:10 2022 +0300

    simplify configs based on common ones

commit 33a4e82
Author: Dimitris Mantzouranis <[email protected]>
Date:   Wed Oct 12 20:53:20 2022 +0300

    remove old eeprom code

commit 90d9af2
Author: [email protected] <[email protected]>
Date:   Sat Oct 8 17:15:16 2022 -0500

    Fix jsonschema, fix missing mcu_reset

commit 14e3541
Author: [email protected] <[email protected]>
Date:   Sat Oct 8 17:10:26 2022 -0500

    Add OneKey

commit 420b913
Author: [email protected] <[email protected]>
Date:   Sat Oct 8 17:04:49 2022 -0500

    Update BL

commit 4f4408a
Author: [email protected] <[email protected]>
Date:   Sat Oct 8 17:03:32 2022 -0500

    Squashed commit of the following:

    commit 0533d61
    Author: Nick Brassel <[email protected]>
    Date:   Thu Jul 7 08:56:39 2022 +1000

        Update keyboard.jsonschema

        Oops.

    commit 95d6beb
    Merge: ea8b4d8 744af00
    Author: Nick Brassel <[email protected]>
    Date:   Thu Jul 7 08:55:27 2022 +1000

        Merge branch 'develop' into sonix

    commit ea8b4d8
    Author: Dimitris Mantzouranis <[email protected]>
    Date:   Sun Feb 13 15:23:10 2022 +0200

        update configs for chibios 2.11

    commit 45fd6d3
    Author: Dimitris Mantzouranis <[email protected]>
    Date:   Thu Mar 3 18:31:14 2022 +0200

        use wait function for bootloader_jump

    commit 3a3b621
    Author: Dimitris Mantzouranis <[email protected]>
    Date:   Thu Mar 3 17:41:48 2022 +0200

        add sonix sn32 in docs

    commit 4fbcb68
    Author: Dimitris Mantzouranis <[email protected]>
    Date:   Thu Mar 3 14:57:18 2022 +0200

        sonix sn32f2xx platform support

* Move led matrix config to info.json file

* removed all keyboard .c / .h files

* Remove define for LED_PIN_ON_STATE

* Remove rules.mk from ansi keymap

* Clean up led count defines

* Rework rules.mk

* Wear-Leveling driver for SN32 platform

Squashed commit of the following:

commit 3825989990504208ab3e5479172de2b5a112faeb
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:42:04 2022 -0500

    Change page count

commit 5d1aa4b9f580bac0a4e337d403b1038f30ea69d3
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:32:43 2022 -0500

    Rename SN32 WL driver, guard the last page

commit 581986bc92c7f5c21eac3e1177ea8de9ff4b2ee0
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:14:22 2022 -0500

    Fix typo on store_erase

commit e31f2d153a549041dcf6724180e988527632a29d
Author: [email protected] <[email protected]>
Date:   Wed Oct 12 15:05:41 2022 -0500

    Wear-Leveling driver for SN32 platform

* Swap Chibios-Contrib for latest sn32_develop

* Missing piece, CUSTOM_MATRIX

* Remove custom matrix thing again

* Move more to info.json, and fix readme files

* missing readme file updates

* Update USB settings in info.json files

* centralize usb VID setting

* Remove unnecessary eeprom setup

* Correct info.json

* revert gitmodules

* chibios-contrib back to origin

* simplifying via json files

* Updateeeprom settings for ansi via

* Updates after review

* Remake via ansi to use standard windows ansi layout

* Fix missing defines

---------

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Dimitris Mantzouranis <[email protected]>
Co-authored-by: Thomas Bowman Mørch <[email protected]>
  • Loading branch information
4 people authored Jan 29, 2023
1 parent f34c7c2 commit 4ebb7e6
Show file tree
Hide file tree
Showing 32 changed files with 1,769 additions and 0 deletions.
16 changes: 16 additions & 0 deletions keyboards/keychron/k8/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Keychron K8

K8 Gateron Hotswap RGB

Make example for this keyboard (after setting up your build environment):

make keychron/k8/rgb/ansi:ansi

For default ISO:

make keychron/k8/rgb/iso:iso

* * *
For more info and detailed flashing instructions, please visit https://github.com/alex-dinh/keychron-k8

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).
20 changes: 20 additions & 0 deletions keyboards/keychron/k8/rgb/ansi/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Copyright 2020 Adam Honse <[email protected]>
* Copyright 2020 Dimitris Mantzouranis <[email protected]>
* Copyright 2022 Harrison Chan (Xelus)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// RGB Matrix Config
#define RGB_MATRIX_LED_COUNT 87
196 changes: 196 additions & 0 deletions keyboards/keychron/k8/rgb/ansi/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
{
"keyboard_name": "Keychron K8",
"usb": {
"pid": "0xFE0E"
},
"layouts": {
"LAYOUT_tkl_ansi": {
"layout": [
{"matrix":[0, 0], "x":0, "y":0},
{"matrix":[0, 1], "x":2, "y":0},
{"matrix":[0, 2], "x":3, "y":0},
{"matrix":[0, 3], "x":4, "y":0},
{"matrix":[0, 4], "x":5, "y":0},
{"matrix":[0, 5], "x":6.5, "y":0},
{"matrix":[0, 6], "x":7.5, "y":0},
{"matrix":[0, 7], "x":8.5, "y":0},
{"matrix":[0, 8], "x":9.5, "y":0},
{"matrix":[0, 9], "x":11, "y":0},
{"matrix":[0,10], "x":12, "y":0},
{"matrix":[0,11], "x":13, "y":0},
{"matrix":[0,12], "x":14, "y":0},
{"matrix":[0,14], "x":15.25, "y":0},
{"matrix":[0,15], "x":16.25, "y":0},
{"matrix":[0,16], "x":17.25, "y":0},

{"matrix":[1, 0], "x":0, "y":1.25},
{"matrix":[1, 1], "x":1, "y":1.25},
{"matrix":[1, 2], "x":2, "y":1.25},
{"matrix":[1, 3], "x":3, "y":1.25},
{"matrix":[1, 4], "x":4, "y":1.25},
{"matrix":[1, 5], "x":5, "y":1.25},
{"matrix":[1, 6], "x":6, "y":1.25},
{"matrix":[1, 7], "x":7, "y":1.25},
{"matrix":[1, 8], "x":8, "y":1.25},
{"matrix":[1, 9], "x":9, "y":1.25},
{"matrix":[1,10], "x":10, "y":1.25},
{"matrix":[1,11], "x":11, "y":1.25},
{"matrix":[1,12], "x":12, "y":1.25},
{"matrix":[1,13], "x":13, "y":1.25, "w":2},
{"matrix":[1,14], "x":15.25, "y":1.25},
{"matrix":[1,15], "x":16.25, "y":1.25},
{"matrix":[1,16], "x":17.25, "y":1.25},

{"matrix":[2, 0], "x":0, "y":2.25, "w":1.5},
{"matrix":[2, 1], "x":1.5, "y":2.25},
{"matrix":[2, 2], "x":2.5, "y":2.25},
{"matrix":[2, 3], "x":3.5, "y":2.25},
{"matrix":[2, 4], "x":4.5, "y":2.25},
{"matrix":[2, 5], "x":5.5, "y":2.25},
{"matrix":[2, 6], "x":6.5, "y":2.25},
{"matrix":[2, 7], "x":7.5, "y":2.25},
{"matrix":[2, 8], "x":8.5, "y":2.25},
{"matrix":[2, 9], "x":9.5, "y":2.25},
{"matrix":[2,10], "x":10.5, "y":2.25},
{"matrix":[2,11], "x":11.5, "y":2.25},
{"matrix":[2,12], "x":12.5, "y":2.25},
{"matrix":[2,13], "x":13.5, "y":2.25, "w":1.5},
{"matrix":[2,14], "x":15.25, "y":2.25},
{"matrix":[2,15], "x":16.25, "y":2.25},
{"matrix":[2,16], "x":17.25, "y":2.25},

{"matrix":[3, 0], "x":0, "y":3.25, "w":1.75},
{"matrix":[3, 1], "x":1.75, "y":3.25},
{"matrix":[3, 2], "x":2.75, "y":3.25},
{"matrix":[3, 3], "x":3.75, "y":3.25},
{"matrix":[3, 4], "x":4.75, "y":3.25},
{"matrix":[3, 5], "x":5.75, "y":3.25},
{"matrix":[3, 6], "x":6.75, "y":3.25},
{"matrix":[3, 7], "x":7.75, "y":3.25},
{"matrix":[3, 8], "x":8.75, "y":3.25},
{"matrix":[3, 9], "x":9.75, "y":3.25},
{"matrix":[3,10], "x":10.75, "y":3.25},
{"matrix":[3,11], "x":11.75, "y":3.25},
{"matrix":[3,13], "x":12.75, "y":3.25, "w":2.25},

{"matrix":[4, 0], "x":0, "y":4.25, "w":2.25},
{"matrix":[4, 2], "x":2.25, "y":4.25},
{"matrix":[4, 3], "x":3.25, "y":4.25},
{"matrix":[4, 4], "x":4.25, "y":4.25},
{"matrix":[4, 5], "x":5.25, "y":4.25},
{"matrix":[4, 6], "x":6.25, "y":4.25},
{"matrix":[4, 7], "x":7.25, "y":4.25},
{"matrix":[4, 8], "x":8.25, "y":4.25},
{"matrix":[4, 9], "x":9.25, "y":4.25},
{"matrix":[4,10], "x":10.25, "y":4.25},
{"matrix":[4,11], "x":11.25, "y":4.25},
{"matrix":[4,13], "x":12.25, "y":4.25, "w":2.75},
{"matrix":[4,15], "x":16.25, "y":4.25},

{"matrix":[5, 0], "x":0, "y":5.25, "w":1.25},
{"matrix":[5, 1], "x":1.25, "y":5.25, "w":1.25},
{"matrix":[5, 2], "x":2.5, "y":5.25, "w":1.25},
{"matrix":[5, 6], "x":3.75, "y":5.25, "w":6.25},
{"matrix":[5,10], "x":10, "y":5.25, "w":1.25},
{"matrix":[5,11], "x":11.25, "y":5.25, "w":1.25},
{"matrix":[5,12], "x":12.5, "y":5.25, "w":1.25},
{"matrix":[5,13], "x":13.75, "y":5.25, "w":1.25},
{"matrix":[5,14], "x":15.25, "y":5.25},
{"matrix":[5,15], "x":16.25, "y":5.25},
{"matrix":[5,16], "x":17.25, "y":5.25}
]
}
},
"rgb_matrix": {
"layout": [
{ "matrix": [ 0, 0 ], "flags": 1, "x": 0, "y": 0 },
{ "matrix": [ 0, 1 ], "flags": 4, "x": 26, "y": 0 },
{ "matrix": [ 0, 2 ], "flags": 4, "x": 39, "y": 0 },
{ "matrix": [ 0, 3 ], "flags": 4, "x": 52, "y": 0 },
{ "matrix": [ 0, 4 ], "flags": 4, "x": 65, "y": 0 },
{ "matrix": [ 0, 5 ], "flags": 1, "x": 84, "y": 0 },
{ "matrix": [ 0, 6 ], "flags": 1, "x": 97, "y": 0 },
{ "matrix": [ 0, 7 ], "flags": 1, "x": 110, "y": 0 },
{ "matrix": [ 0, 8 ], "flags": 1, "x": 123, "y": 0 },
{ "matrix": [ 0, 9 ], "flags": 4, "x": 143, "y": 0 },
{ "matrix": [ 0, 10 ], "flags": 4, "x": 156, "y": 0 },
{ "matrix": [ 0, 11 ], "flags": 4, "x": 169, "y": 0 },
{ "matrix": [ 0, 12 ], "flags": 4, "x": 182, "y": 0 },
{ "matrix": [ 0, 14 ], "flags": 1, "x": 198, "y": 0 },
{ "matrix": [ 0, 15 ], "flags": 1, "x": 211, "y": 0 },
{ "matrix": [ 0, 16 ], "flags": 1, "x": 224, "y": 0 },
{ "matrix": [ 1, 0 ], "flags": 4, "x": 0, "y": 17 },
{ "matrix": [ 1, 1 ], "flags": 4, "x": 13, "y": 17 },
{ "matrix": [ 1, 2 ], "flags": 4, "x": 26, "y": 17 },
{ "matrix": [ 1, 3 ], "flags": 4, "x": 39, "y": 17 },
{ "matrix": [ 1, 4 ], "flags": 4, "x": 52, "y": 17 },
{ "matrix": [ 1, 5 ], "flags": 4, "x": 65, "y": 17 },
{ "matrix": [ 1, 6 ], "flags": 4, "x": 78, "y": 17 },
{ "matrix": [ 1, 7 ], "flags": 4, "x": 91, "y": 17 },
{ "matrix": [ 1, 8 ], "flags": 4, "x": 104, "y": 17 },
{ "matrix": [ 1, 9 ], "flags": 4, "x": 117, "y": 17 },
{ "matrix": [ 1, 10 ], "flags": 4, "x": 130, "y": 17 },
{ "matrix": [ 1, 11 ], "flags": 4, "x": 143, "y": 17 },
{ "matrix": [ 1, 12 ], "flags": 4, "x": 156, "y": 17 },
{ "matrix": [ 1, 13 ], "flags": 1, "x": 175, "y": 17 },
{ "matrix": [ 1, 14 ], "flags": 1, "x": 198, "y": 17 },
{ "matrix": [ 1, 15 ], "flags": 1, "x": 211, "y": 17 },
{ "matrix": [ 1, 16 ], "flags": 1, "x": 224, "y": 17 },
{ "matrix": [ 2, 0 ], "flags": 1, "x": 3, "y": 29 },
{ "matrix": [ 2, 1 ], "flags": 4, "x": 19, "y": 29 },
{ "matrix": [ 2, 2 ], "flags": 4, "x": 32, "y": 29 },
{ "matrix": [ 2, 3 ], "flags": 4, "x": 45, "y": 29 },
{ "matrix": [ 2, 4 ], "flags": 4, "x": 58, "y": 29 },
{ "matrix": [ 2, 5 ], "flags": 4, "x": 71, "y": 29 },
{ "matrix": [ 2, 6 ], "flags": 4, "x": 84, "y": 29 },
{ "matrix": [ 2, 7 ], "flags": 4, "x": 97, "y": 29 },
{ "matrix": [ 2, 8 ], "flags": 4, "x": 110, "y": 29 },
{ "matrix": [ 2, 9 ], "flags": 4, "x": 123, "y": 29 },
{ "matrix": [ 2, 10 ], "flags": 4, "x": 136, "y": 29 },
{ "matrix": [ 2, 11 ], "flags": 4, "x": 149, "y": 29 },
{ "matrix": [ 2, 12 ], "flags": 4, "x": 162, "y": 29 },
{ "matrix": [ 2, 13 ], "flags": 4, "x": 179, "y": 29 },
{ "matrix": [ 2, 14 ], "flags": 1, "x": 198, "y": 29 },
{ "matrix": [ 2, 15 ], "flags": 1, "x": 211, "y": 29 },
{ "matrix": [ 2, 16 ], "flags": 1, "x": 224, "y": 29 },
{ "matrix": [ 3, 0 ], "flags": 1, "x": 5, "y": 41 },
{ "matrix": [ 3, 1 ], "flags": 4, "x": 23, "y": 41 },
{ "matrix": [ 3, 2 ], "flags": 4, "x": 36, "y": 41 },
{ "matrix": [ 3, 3 ], "flags": 4, "x": 49, "y": 41 },
{ "matrix": [ 3, 4 ], "flags": 4, "x": 62, "y": 41 },
{ "matrix": [ 3, 5 ], "flags": 4, "x": 75, "y": 41 },
{ "matrix": [ 3, 6 ], "flags": 4, "x": 88, "y": 41 },
{ "matrix": [ 3, 7 ], "flags": 4, "x": 101, "y": 41 },
{ "matrix": [ 3, 8 ], "flags": 4, "x": 114, "y": 41 },
{ "matrix": [ 3, 9 ], "flags": 4, "x": 127, "y": 41 },
{ "matrix": [ 3, 10 ], "flags": 4, "x": 140, "y": 41 },
{ "matrix": [ 3, 11 ], "flags": 4, "x": 153, "y": 41 },
{ "matrix": [ 3, 13 ], "flags": 1, "x": 174, "y": 41 },
{ "matrix": [ 4, 0 ], "flags": 1, "x": 8, "y": 52 },
{ "matrix": [ 4, 2 ], "flags": 4, "x": 29, "y": 52 },
{ "matrix": [ 4, 3 ], "flags": 4, "x": 42, "y": 52 },
{ "matrix": [ 4, 4 ], "flags": 4, "x": 55, "y": 52 },
{ "matrix": [ 4, 5 ], "flags": 4, "x": 68, "y": 52 },
{ "matrix": [ 4, 6 ], "flags": 4, "x": 81, "y": 52 },
{ "matrix": [ 4, 7 ], "flags": 4, "x": 94, "y": 52 },
{ "matrix": [ 4, 8 ], "flags": 4, "x": 107, "y": 52 },
{ "matrix": [ 4, 9 ], "flags": 4, "x": 120, "y": 52 },
{ "matrix": [ 4, 10 ], "flags": 4, "x": 133, "y": 52 },
{ "matrix": [ 4, 11 ], "flags": 4, "x": 146, "y": 52 },
{ "matrix": [ 4, 13 ], "flags": 1, "x": 170, "y": 52 },
{ "matrix": [ 4, 15 ], "flags": 1, "x": 211, "y": 52 },
{ "matrix": [ 5, 0 ], "flags": 1, "x": 2, "y": 64 },
{ "matrix": [ 5, 1 ], "flags": 1, "x": 18, "y": 64 },
{ "matrix": [ 5, 2 ], "flags": 1, "x": 34, "y": 64 },
{ "matrix": [ 5, 6 ], "flags": 4, "x": 83, "y": 64 },
{ "matrix": [ 5, 10 ], "flags": 1, "x": 131, "y": 64 },
{ "matrix": [ 5, 11 ], "flags": 1, "x": 148, "y": 64 },
{ "matrix": [ 5, 12 ], "flags": 1, "x": 164, "y": 64 },
{ "matrix": [ 5, 13 ], "flags": 1, "x": 180, "y": 64 },
{ "matrix": [ 5, 14 ], "flags": 1, "x": 198, "y": 64 },
{ "matrix": [ 5, 15 ], "flags": 1, "x": 211, "y": 64 },
{ "matrix": [ 5, 16 ], "flags": 1, "x": 224, "y": 64 }
]
}

}
12 changes: 12 additions & 0 deletions keyboards/keychron/k8/rgb/ansi/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Keychron K8

K8 ANSI RGB

Make example for this keyboard (after setting up your build environment):

make keychron/k8/rgb/ansi:ansi

* * *
For more info and detailed flashing instructions, please visit https://github.com/alex-dinh/keychron-k8

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).
2 changes: 2 additions & 0 deletions keyboards/keychron/k8/rgb/ansi/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = sn32_flash
82 changes: 82 additions & 0 deletions keyboards/keychron/k8/rgb/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/* Copyright 2020 Adam Honse <[email protected]>
* Copyright 2020 Dimitris Mantzouranis <[email protected]>
* Copyright 2022 Harrison Chan (Xelus)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "config_common.h"

// Connects each switch in the dip switch to the GPIO pin of the MCU
#define DIP_SWITCH_PINS { D4, D5 }

// RGB LED Config
#define LED_MATRIX_ROWS MATRIX_ROWS
#define LED_MATRIX_ROW_CHANNELS 3
#define LED_MATRIX_ROWS_HW (LED_MATRIX_ROWS * LED_MATRIX_ROW_CHANNELS)
#define LED_MATRIX_ROW_PINS { C3, C1, C0, C6, C5, C4, C9, C8, C7, C12, C11, C10, B13, C14, C13, B14, B15, D3 }

#define LED_MATRIX_COLS MATRIX_COLS
#define LED_MATRIX_COL_PINS MATRIX_COL_PINS

// RGB Matrix Effects
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES

#define ENABLE_RGB_MATRIX_ALPHAS_MODS
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_BREATHING
#define ENABLE_RGB_MATRIX_BAND_SAT
#define ENABLE_RGB_MATRIX_BAND_VAL
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#define ENABLE_RGB_MATRIX_CYCLE_ALL
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
#define ENABLE_RGB_MATRIX_DUAL_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
#define ENABLE_RGB_MATRIX_RAINDROPS
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
#define ENABLE_RGB_MATRIX_HUE_BREATHING
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
#define ENABLE_RGB_MATRIX_HUE_WAVE
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL

#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN

#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
#define ENABLE_RGB_MATRIX_SPLASH
#define ENABLE_RGB_MATRIX_MULTISPLASH
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
35 changes: 35 additions & 0 deletions keyboards/keychron/k8/rgb/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"keyboard_name": "Keychron K8",
"manufacturer": "Keychron",
"url": "https://www.keychron.com/products/keychron-k8-tenkeyless-wireless-mechanical-keyboard",
"processor": "SN32F248BF",
"maintainer": "tbowmo",
"bootloader": "sn32-dfu",
"debounce": 1,
"diode_direction": "COL2ROW",
"features": {
"rgb_matrix": true,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": false,
"nkro": true,
"dip_switch": true
},
"rgb_matrix": {
"driver": "SN32F24xB"
},
"matrix_pins": {
"cols": [ "A8", "A9", "A10", "A11", "A12", "A13", "A14", "A15", "B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8"],
"rows": [ "C15", "D11", "D10", "D9", "D8", "D7"]
},
"indicators": {
"caps_lock": "B12"
},
"usb": {
"vid": "0x3434",
"device_version": "1.0.0",
"wait_for": false
}
}
20 changes: 20 additions & 0 deletions keyboards/keychron/k8/rgb/iso/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Copyright 2020 Adam Honse <[email protected]>
* Copyright 2020 Dimitris Mantzouranis <[email protected]>
* Copyright 2022 Harrison Chan (Xelus)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

// RGB Matrix Config
#define RGB_MATRIX_LED_COUNT 89
Loading

0 comments on commit 4ebb7e6

Please sign in to comment.