[Docs] Change defines to enums in examples (#19793)

This commit is contained in:
Pablo Martínez
2023-02-10 11:39:35 +01:00
committed by GitHub
parent 50cd320616
commit 95671148a4
3 changed files with 15 additions and 9 deletions

View File

@@ -143,9 +143,11 @@ QMK键映射定义在C源文件中其数据结构上是一个容纳了数组
// and just use numbers.
// 每一层为了便于识别可以起一个名字下划线没有实际意义 - 叫STUFF之类的也行的
// 层名不需要都一样长甚至不定义这些直接用层号也是可以的
#define _BL 0
#define _FL 1
#define _CL 2
enum layer_names {
_BL,
_FL,
_CL,
};
以上是一些便于编写键映射及自定义函数时可用的预定义`GRAVE_MODS` 后续会用在自定义函数中之后的 `_BL`, `_FL` `_CL` 便于我们在代码中引用这些层