From 71e095770c0c61acaf992a922d612fc4e5c41d32 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 23 Sep 2022 12:55:04 +0100 Subject: it works! updated some comments at some point we should probably replace DakkarColor with DefaultColormap / Colormap --- README.md | 3 ++- keymap-wrapper.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bb58bd2..0a3171e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,8 @@ window, and that needs left-alt to stay pressed. Source: [`DakkarColor.h`](DakkarColor.h) This plugin defines a `LEDMode` sub class, which uses a color map as -built by `keymap-wrapper.h` to assign each key its color. +built by `keymap-wrapper.h` (i.e. a DefaultColormap) to assign each +key its color. In addition to simple colors, it allows you to set a function pointer (look at the `num-breathe()` function in `color-themes.h` for a diff --git a/keymap-wrapper.h b/keymap-wrapper.h index 85fc4a3..bcd1259 100644 --- a/keymap-wrapper.h +++ b/keymap-wrapper.h @@ -13,11 +13,11 @@ macros, and include this file. First, we define CK as "return the first argument (the key)", and - ColorKeymaps as "a klaeidoscope keymap", and include our keymaps + ColorKeymaps as "a kaleidoscope keymap", and include our keymaps definition. Then, we *redefine* CK as "return the second argument (the colour)" - and ColorKeymaps as "a DakkarColor color map", and include our + and ColorKeymaps as "a DefaultColormap color map", and include our keymaps definition *again* (make sure you don't add a `#pragma "once"` in there!) */ -- cgit v1.2.3