summaryrefslogtreecommitdiff
path: root/app/include/zmk
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-06-24 10:06:35 -0400
committerPete Johanson <peter@peterjohanson.com>2020-06-24 10:14:27 -0400
commitd35a95c7afc9e5ef6f087034dbf4cbb03048f9cd (patch)
treecc5b179646d8a293f4656947c463fd58e41499e2 /app/include/zmk
parent23931aa4fede2d81437a01e5d69329157219c2a5 (diff)
Initial working Clueboard California Macropad w/ proton-c fixes
* Basic Clueboard Californai Macropad shield definition. * New "direct" KSCAN driver that supports non-matrix direct wiring for switches, needed for macropad that doesn't have a matrix at all. * Some renames for existing KSCAN GPIO driver to make the implied "matrix" part explicit.
Diffstat (limited to 'app/include/zmk')
-rw-r--r--app/include/zmk/matrix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/include/zmk/matrix.h b/app/include/zmk/matrix.h
index 783c98e..5397cfb 100644
--- a/app/include/zmk/matrix.h
+++ b/app/include/zmk/matrix.h
@@ -5,6 +5,9 @@
#if DT_NODE_HAS_PROP(ZMK_MATRIX_NODE_ID,row_gpios)
#define ZMK_MATRIX_ROWS DT_PROP_LEN(ZMK_MATRIX_NODE_ID,row_gpios)
#define ZMK_MATRIX_COLS DT_PROP_LEN(ZMK_MATRIX_NODE_ID,col_gpios)
+#elif DT_NODE_HAS_PROP(ZMK_MATRIX_NODE_ID,input_gpios)
+#define ZMK_MATRIX_ROWS 1
+#define ZMK_MATRIX_COLS DT_PROP_LEN(ZMK_MATRIX_NODE_ID,input_gpios)
#else
#define ZMK_MATRIX_ROWS DT_PROP(ZMK_MATRIX_NODE_ID,rows)
#define ZMK_MATRIX_COLS DT_PROP(ZMK_MATRIX_NODE_ID,columns)