aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-09-13 03:44:23 -0600
committerSelene ToyKeeper2018-09-13 03:44:23 -0600
commit215a56b08586dcf4352b6eb2713f5238a4d5b360 (patch)
treeb9eb06ecc88e9941273a04470bad97a6f6078081 /spaghetti-monster/fsm-ramping.h
parentfixed bug: clicking MAX_CLICKS+1 times and holding the final click would hang... (diff)
downloadanduril-215a56b08586dcf4352b6eb2713f5238a4d5b360.tar.gz
anduril-215a56b08586dcf4352b6eb2713f5238a4d5b360.tar.bz2
anduril-215a56b08586dcf4352b6eb2713f5238a4d5b360.zip
Added tint ramping. Not tested yet. Also added BLF Lantern build target.
Diffstat (limited to 'spaghetti-monster/fsm-ramping.h')
-rw-r--r--spaghetti-monster/fsm-ramping.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h
index 14c8dae..9732b9c 100644
--- a/spaghetti-monster/fsm-ramping.h
+++ b/spaghetti-monster/fsm-ramping.h
@@ -26,6 +26,10 @@
// actual_level: last ramp level set by set_level()
volatile uint8_t actual_level = 0;
+#ifdef USE_TINT_RAMPING
+uint8_t tint = 0;
+#endif
+
#ifdef USE_SET_LEVEL_GRADUALLY
// adjust brightness very smoothly
volatile uint8_t gradual_target;