feat(keymap): use dt-bindings master header for in-tree keymaps

This commit is contained in:
Thomas Huber 2024-08-30 09:54:41 -07:00
parent c72112c017
commit 3d3b51b1f2
No known key found for this signature in database
GPG key ID: C8B2604C5DD56D87
74 changed files with 68 additions and 266 deletions

View file

@ -5,7 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
/ { / {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#define LOWER 1 #define LOWER 1
#define RAISE 2 #define RAISE 2

View file

@ -5,11 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/rgb.h>
#define DEFAULT 0 #define DEFAULT 0
#define LOWER 1 #define LOWER 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
/ { / {

View file

@ -5,10 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/outputs.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#define MAIN 0 #define MAIN 0
#define SYM 1 #define SYM 1

View file

@ -5,7 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
/ { / {
keymap0: keymap { keymap0: keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#define DEFAULT 0 #define DEFAULT 0
#define NUM_MODS 1 #define NUM_MODS 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -2,8 +2,7 @@
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
// Home row mods macro // Home row mods macro
#define HRML(k1,k2,k3,k4) &ht LSHFT k1 &ht LALT k2 &ht LCTRL k3 &ht LGUI k4 #define HRML(k1,k2,k3,k4) &ht LSHFT k1 &ht LALT k2 &ht LCTRL k3 &ht LGUI k4

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#define LOWR 1 #define LOWR 1
#define RAIS 2 #define RAIS 2

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#define DEFAULT 0 #define DEFAULT 0
#define LOWER 1 #define LOWER 1

View file

@ -5,10 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/rgb.h>
#define BASE 0 #define BASE 0
#define ARROW 1 #define ARROW 1

View file

@ -5,10 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/rgb.h>
#define BASE 0 #define BASE 0
#define ARROW 1 #define ARROW 1

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/rgb.h>
/ { / {
keymap { keymap {

View file

@ -5,11 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/outputs.h>
#define DEFAULT 0 #define DEFAULT 0
#define LOWER 1 #define LOWER 1

View file

@ -5,7 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#define DEF_L 0 #define DEF_L 0
#define NAV_L 1 #define NAV_L 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#define DEF 0 #define DEF 0
#define LWR 1 #define LWR 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#define DEF 0 #define DEF 0
#define LWR 1 #define LWR 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
/* Uncomment this block if using RGB /* Uncomment this block if using RGB
&led_strip { &led_strip {

View file

@ -4,9 +4,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/outputs.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
/* /*
* Assign the cs-gpios pin to 4. * Assign the cs-gpios pin to 4.

View file

@ -4,10 +4,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/outputs.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
// Short versions // Short versions
#define RGBON &rgb_ug RGB_ON #define RGBON &rgb_ug RGB_ON

View file

@ -4,10 +4,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/outputs.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
// Layers // Layers
#define QW_M 0 // Main #define QW_M 0 // Main

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
/ { / {
combos { combos {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap0: keymap { keymap0: keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#define TIMEOUT 300 #define TIMEOUT 300

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
/ { / {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
sensors: sensors { sensors: sensors {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#define MAIN 0 #define MAIN 0
#define SYM 1 #define SYM 1

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#define DEF 0 #define DEF 0
#define LWR 1 #define LWR 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#define DEFAULT 0 #define DEFAULT 0
#define NUM_SYM 1 #define NUM_SYM 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
/ { / {
keymap { keymap {

View file

@ -5,10 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/outputs.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/rgb.h>
/ { / {
chosen { chosen {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#define BASE 0 #define BASE 0
#define BLE 1 #define BLE 1

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
/ { / {
conditional_layers { conditional_layers {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/keys.h>
/ { / {
keymap { keymap {

View file

@ -5,7 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/rgb.h>
/ { / {
sensors: sensors { sensors: sensors {

View file

@ -5,10 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/ext_power.h>
#define BASE 0 #define BASE 0
#define LOWER 1 #define LOWER 1

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,11 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/outputs.h>
#define DEFAULT 0 #define DEFAULT 0
#define LOWER 1 #define LOWER 1

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
/ { / {
keymap { keymap {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
/* Uncomment this block if using RGB /* Uncomment this block if using RGB
&led_strip { &led_strip {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
&mt { &mt {

View file

@ -6,7 +6,7 @@
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
behaviors { behaviors {

View file

@ -5,9 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/keys.h>
&encoder_1_top_row { &encoder_1_top_row {
status = "okay"; status = "okay";

View file

@ -6,9 +6,7 @@
#include "tidbit.dtsi" #include "tidbit.dtsi"
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
&encoder_4 { &encoder_4 {
status = "okay"; status = "okay";

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -5,11 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/backlight.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/rgb.h>
// Uncomment the following lines if using the "Direct Wire" jumper to switch the matrix to a direct wire. // Uncomment the following lines if using the "Direct Wire" jumper to switch the matrix to a direct wire.

View file

@ -5,12 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/backlight.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/rgb.h>
// Uncomment the following lines if using the "Direct Wire" jumper to switch the matrix to a direct wire. // Uncomment the following lines if using the "Direct Wire" jumper to switch the matrix to a direct wire.

View file

@ -5,8 +5,7 @@
*/ */
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/params.h>
#include <dt-bindings/zmk/bt.h>
/ { / {
keymap { keymap {

View file

@ -9,21 +9,6 @@ This page contains [backlight](../../features/backlight.mdx) behaviors supported
## Backlight Action Defines ## Backlight Action Defines
:::info
No longer required as long as your keymap includes [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/all.h).
:::
Backlight actions defines are provided through the [`dt-bindings/zmk/backlight.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/backlight.h) header,
which is added at the top of the keymap file:
```dts
#include <dt-bindings/zmk/backlight.h>
```
This will allow you to reference the actions defined in this header such as `BL_TOG`.
Here is a table describing the action for each define:
| Define | Action | | Define | Action |
| ---------- | --------------------------- | | ---------- | --------------------------- |
| `BL_ON` | Turn on backlight | | `BL_ON` | Turn on backlight |

View file

@ -27,21 +27,6 @@ even if OUT_USB is selected. To remain disconnected, another bluetooth profile m
## Bluetooth Command Defines ## Bluetooth Command Defines
:::info
No longer required as long as your keymap includes [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/all.h).
:::
Bluetooth command defines are provided through the [`dt-bindings/zmk/bt.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/bt.h) header,
which is added at the top of the keymap file:
```dts
#include <dt-bindings/zmk/bt.h>
```
This will allow you to reference the actions defined in this header such as `BT_CLR`.
Here is a table describing the command for each define:
| Define | Action | | Define | Action |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `BT_CLR` | Clear bond information between the keyboard and host for the selected profile. | | `BT_CLR` | Clear bond information between the keyboard and host for the selected profile. |

View file

@ -24,7 +24,7 @@ For advanced users, user-defined HID usages are also supported but must be encod
## Keycode Defines ## Keycode Defines
To make it easier to encode the HID keycode numeric values, most keymaps include To make it easier to encode the HID keycode numeric values, most keymaps include
the [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/all.h) header the [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/params.h) header
provided by ZMK near the top: provided by ZMK near the top:
```dts ```dts

View file

@ -25,20 +25,6 @@ CONFIG_ZMK_MOUSE=y
If you use the mouse key press behavior in your keymap, the feature will automatically be enabled for you. If you use the mouse key press behavior in your keymap, the feature will automatically be enabled for you.
## Mouse Button Defines
:::info
No longer required as long as your keymap includes [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/all.h).
:::
To make it easier to encode the HID mouse button numeric values, include
the [`dt-bindings/zmk/mouse.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/mouse.h) header
provided by ZMK near the top:
```
#include <dt-bindings/zmk/mouse.h>
```
## Mouse Button Press ## Mouse Button Press
This behavior can press/release up to 5 mouse buttons. This behavior can press/release up to 5 mouse buttons.

View file

@ -20,19 +20,6 @@ to select the BLE output through below behavior to be able to send keystrokes to
## Output Command Defines ## Output Command Defines
:::info
No longer required as long as your keymap includes [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/all.h).
:::
Output command defines are provided through the [`dt-bindings/zmk/outputs.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/outputs.h)
header, which is added at the top of the keymap file:
```dts
#include <dt-bindings/zmk/outputs.h>
```
This allows you to reference the actions defined in this header:
| Define | Action | | Define | Action |
| --------- | ----------------------------------------------- | | --------- | ----------------------------------------------- |
| `OUT_USB` | Prefer sending to USB | | `OUT_USB` | Prefer sending to USB |

View file

@ -21,21 +21,6 @@ The following boards currently support this feature:
## External Power Control Command Defines ## External Power Control Command Defines
:::info
No longer required as long as your keymap includes [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/all.h).
:::
External power control command defines are provided through the [`dt-bindings/zmk/ext_power.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/ext_power.h) header,
which is added at the top of the keymap file:
```dts
#include <dt-bindings/zmk/ext_power.h>
```
This will allow you to reference the actions defined in this header such as `EXT_POWER_OFF_CMD`.
Here is a table describing the command for each define:
| Define | Action | Alias | | Define | Action | Alias |
| ---------------------- | --------------------------- | -------- | | ---------------------- | --------------------------- | -------- |
| `EXT_POWER_OFF_CMD` | Disable the external power. | `EP_OFF` | | `EXT_POWER_OFF_CMD` | Disable the external power. | `EP_OFF` |

View file

@ -9,21 +9,6 @@ This page contains [RGB Underglow](../../features/underglow.md) behaviors suppor
## RGB Action Defines ## RGB Action Defines
:::info
No longer required as long as your keymap includes [`dt-bindings/zmk/params.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/all.h).
:::
RGB actions defines are provided through the [`dt-bindings/zmk/rgb.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/rgb.h) header,
which is added at the top of the keymap file:
```dts
#include <dt-bindings/zmk/rgb.h>
```
This will allow you to reference the actions defined in this header such as `RGB_TOG`.
Here is a table describing the action for each define:
| Define | Action | | Define | Action |
| --------------- | ---------------------------------------------------------------------------------------------- | | --------------- | ---------------------------------------------------------------------------------------------- |
| `RGB_ON` | Turns the RGB feature on | | `RGB_ON` | Turns the RGB feature on |

View file

@ -91,7 +91,7 @@ The top two lines of most keymaps should include:
```dts ```dts
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/all.h> #include <dt-bindings/zmk/params.h>
``` ```
The first defines the nodes for all the available behaviors in ZMK, which will be referenced in the behavior bindings. This is how bindings like `&kp` can reference the key press behavior defined with an anchor name of `kp`. The first defines the nodes for all the available behaviors in ZMK, which will be referenced in the behavior bindings. This is how bindings like `&kp` can reference the key press behavior defined with an anchor name of `kp`.