mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-27 16:35:17 -05:00
* Use extra comptible = "zmk,behavior-global" to add behaviors to global bindings for event notification. * Implement mod-tap, as a keymap binding and global one to skip tap if other keycode pressed while held.
15 lines
402 B
C
15 lines
402 B
C
#pragma once
|
|
|
|
#include <devicetree.h>
|
|
|
|
#define ZMK_MATRIX_NODE_ID DT_CHOSEN(zmk_kscan)
|
|
|
|
#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)
|
|
#else
|
|
#define ZMK_MATRIX_ROWS DT_PROP(ZMK_MATRIX_NODE_ID,rows)
|
|
#define ZMK_MATRIX_COLS DT_PROP(ZMK_MATRIX_NODE_ID,columns)
|
|
#endif
|
|
|