From 47b9b110097a864d6ab76516b2213afd59948527 Mon Sep 17 00:00:00 2001 From: Zach White Date: Wed, 30 Dec 2020 10:27:37 -0800 Subject: Configure keyboard matrix from info.json (#10817) * Make parameters from info.json available to the build system * move all clueboard settings to info.json * code formatting * make flake8 happy * make flake8 happy * make qmk lint happy * Add support for specifying led indicators in json * move led indicators to the clueboard info.json * Apply suggestions from code review Co-authored-by: Erovia * add missing docstring Co-authored-by: Erovia --- keyboards/clueboard/california/info.json | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'keyboards/clueboard/california/info.json') diff --git a/keyboards/clueboard/california/info.json b/keyboards/clueboard/california/info.json index 2a9ced6e9a..f376643cdd 100644 --- a/keyboards/clueboard/california/info.json +++ b/keyboards/clueboard/california/info.json @@ -2,9 +2,31 @@ "keyboard_name": "Clueboard California", "url": "", "maintainer": "skullydazed", + "matrix_pins": { + "direct": [ + ["A10", "A9"], + ["A0", "B8"], + [null, "B11"], + ["B9", "A8"], + ["A7", "B1"], + [null, "B2"] + ] + }, + "usb": {"pid": "0x23B0"}, "layouts": { "LAYOUT": { - "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":1, "y":2}, {"x":1.25, "y":3}, {"x":2.25, "y":3}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":3.75, "y":5}] + "layout": [ + {"x": 0, "y": 0, "w": 1, "matrix": [0, 0]}, + {"x": 1, "y": 0, "w": 1, "matrix": [0, 1]}, + {"x": 0, "y": 1, "w": 1, "matrix": [1, 0]}, + {"x": 1, "y": 1, "w": 1, "matrix": [1, 1]}, + {"x": 1, "y": 2, "w": 1, "matrix": [2, 1]}, + {"x": 1.25, "y": 3, "w": 1, "matrix": [3, 0]}, + {"x": 2.25, "y": 3, "w": 1, "matrix": [3, 1]}, + {"x": 2, "y": 4, "w": 1, "matrix": [4, 0]}, + {"x": 3, "y": 4, "w": 1, "matrix": [4, 1]}, + {"x": 3.75, "y": 5, "w": 1, "matrix": [5, 1]} + ] } } } -- cgit v1.2.3