aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-05-18 03:30:34 -0600
committerSelene ToyKeeper2019-05-18 03:30:34 -0600
commit2f46400dd5c13bf715331695a699a21da57aeb7f (patch)
tree6a00fdeaff532b558a7358b21c811ade29fe5a22 /spaghetti-monster/fsm-ramping.h
parentFixed an off-by-one error in lightning mode. (diff)
parentthe lantern middle-tint power correction factor wasn't quite right... (diff)
downloadanduril-2f46400dd5c13bf715331695a699a21da57aeb7f.tar.gz
anduril-2f46400dd5c13bf715331695a699a21da57aeb7f.tar.bz2
anduril-2f46400dd5c13bf715331695a699a21da57aeb7f.zip
merged in BLF Lantern branch, even though it's not quite finished, because it's a public project and long overdue for a merge
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;