From 95671148a4f451cd98b98e5d2b8d559ad12eb24d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Mart=C3=ADnez?= <58857054+elpekenin@users.noreply.github.com> Date: Fri, 10 Feb 2023 11:39:35 +0100 Subject: [Docs] Change defines to enums in examples (#19793) --- docs/keymap.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs/keymap.md') diff --git a/docs/keymap.md b/docs/keymap.md index 66e9db1a7f..f9d45b3267 100644 --- a/docs/keymap.md +++ b/docs/keymap.md @@ -117,9 +117,11 @@ At the top of the file you'll find this: // Layer names don't all need to be of the same // length, and you can also skip them entirely // and just use numbers. - #define _BL 0 - #define _FL 1 - #define _CL 2 + enum layer_names { + _BL, + _FL, + _CL, + }; These are some handy definitions we can use when building our keymap and our custom function. The `GRAVE_MODS` definition will be used later in our custom function, and the following `_BL`, `_FL`, and `_CL` defines make it easier to refer to each of our layers. -- cgit v1.2.3