From 215a56b08586dcf4352b6eb2713f5238a4d5b360 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Thu, 13 Sep 2018 03:44:23 -0600 Subject: Added tint ramping. Not tested yet. Also added BLF Lantern build target. --- spaghetti-monster/fsm-ramping.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spaghetti-monster/fsm-ramping.h') 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; -- cgit v1.2.3 From c08e69271078a2d1807fa8b2f905490692befbec Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Wed, 19 Dec 2018 15:36:53 -0700 Subject: configured lantern stepped ramp and button LED mode, set default tint to 128 (balanced) --- spaghetti-monster/fsm-ramping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spaghetti-monster/fsm-ramping.h') diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index 9732b9c..4ce8015 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -27,7 +27,7 @@ volatile uint8_t actual_level = 0; #ifdef USE_TINT_RAMPING -uint8_t tint = 0; +uint8_t tint = 128; #endif #ifdef USE_SET_LEVEL_GRADUALLY -- cgit v1.2.3 From 310074c6cf46f3e76873c027b2235457ca35c151 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 14 May 2019 01:42:44 -0600 Subject: added tint ramping power correction for middle tints (it actually needs a surprisingly large correction factor) --- spaghetti-monster/fsm-ramping.h | 1 + 1 file changed, 1 insertion(+) (limited to 'spaghetti-monster/fsm-ramping.h') diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index 4ce8015..dcc3b74 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -28,6 +28,7 @@ volatile uint8_t actual_level = 0; #ifdef USE_TINT_RAMPING uint8_t tint = 128; +#define USE_TRIANGLE_WAVE #endif #ifdef USE_SET_LEVEL_GRADUALLY -- cgit v1.2.3