summaryrefslogtreecommitdiffstats
path: root/quantum/rgblight.h
diff options
context:
space:
mode:
authorskullydazed <skullydazed@users.noreply.github.com>2017-10-18 01:47:49 +0200
committerGitHub <noreply@github.com>2017-10-18 01:47:49 +0200
commitad49db8cd2557b6c54531059d4d162623520bd17 (patch)
tree574183832900a40562e6f9c4de78c33ac6cc018d /quantum/rgblight.h
parentd3fe6a0588965b71c6876b060d05abfceabacbb5 (diff)
downloadqmk_firmware-ad49db8cd2557b6c54531059d4d162623520bd17.tar.gz
qmk_firmware-ad49db8cd2557b6c54531059d4d162623520bd17.tar.xz
Address #1689 by using a formula to define the breathing curve (#1692)
* Address #1689 by using a formula to define the breathing curve and exposing defines to control the shape of the curve. * Tweak the behavior of breathing for clueboard
Diffstat (limited to 'quantum/rgblight.h')
-rw-r--r--quantum/rgblight.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index c1b3378b3..fb79ce6de 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -22,6 +22,14 @@
#define RGBLIGHT_MODES 1
#endif
+#ifndef RGBLIGHT_EFFECT_BREATHE_CENTER
+#define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1-2.7
+#endif
+
+#ifndef RGBLIGHT_EFFECT_BREATHE_MAX
+#define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0-255
+#endif
+
#ifndef RGBLIGHT_EFFECT_SNAKE_LENGTH
#define RGBLIGHT_EFFECT_SNAKE_LENGTH 4
#endif