aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-05-18 03:33:40 -0600
committerSelene ToyKeeper2019-05-18 03:33:40 -0600
commit51d53d2b30dbd3c4c585834ad81de20745740f8e (patch)
tree6e366b5cfe97f04181bc468aa06d710b7807be1d /spaghetti-monster/fsm-ramping.h
parentadded link to HQ ProgKey, since it's increasingly important for newer drivers (diff)
parentmerged in BLF Lantern branch, even though it's not quite finished, because it... (diff)
downloadanduril-51d53d2b30dbd3c4c585834ad81de20745740f8e.tar.gz
anduril-51d53d2b30dbd3c4c585834ad81de20745740f8e.tar.bz2
anduril-51d53d2b30dbd3c4c585834ad81de20745740f8e.zip
merged updates from fsm branch, because it has been way too long since the last time
Diffstat (limited to 'spaghetti-monster/fsm-ramping.h')
-rw-r--r--spaghetti-monster/fsm-ramping.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h
index 14c8dae..dcc3b74 100644
--- a/spaghetti-monster/fsm-ramping.h
+++ b/spaghetti-monster/fsm-ramping.h
@@ -26,6 +26,11 @@
// actual_level: last ramp level set by set_level()
volatile uint8_t actual_level = 0;
+#ifdef USE_TINT_RAMPING
+uint8_t tint = 128;
+#define USE_TRIANGLE_WAVE
+#endif
+
#ifdef USE_SET_LEVEL_GRADUALLY
// adjust brightness very smoothly
volatile uint8_t gradual_target;