summaryrefslogtreecommitdiff
path: root/app/include/dt-bindings/zmk/matrix-transform.h
blob: 2989cb60794f8cd35d58d661fc6518c012d46f38 (plain)
1
2
3
4
5
6
7
8
9
10
/*
 * Copyright (c) 2020 The ZMK Contributors
 *
 * SPDX-License-Identifier: MIT
 */

#define KT_ROW(item) (item >> 8)
#define KT_COL(item) (item & 0xFF)

#define RC(row, col) (((row) << 8) + (col))