From c9efee6f3ffcf19e139d72d946aa4d837bbcbb9e Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sun, 7 Dec 2025 15:37:04 -0700 Subject: Better timing. No longer hammering the SPI bus, but rather being more controlled, and interpolation is handled better. --- include/param.h | 1 + include/state_params.i | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/param.h b/include/param.h index b66b1b1..5259e0a 100644 --- a/include/param.h +++ b/include/param.h @@ -25,3 +25,4 @@ DECL_PARAMETER_INSTANCE(bool); DECL_PARAMETER_INSTANCE(uint32_t); DECL_PARAMETER_INSTANCE(color_int_t); DECL_PARAMETER_INSTANCE(int); +DECL_PARAMETER_INSTANCE(int32_t); diff --git a/include/state_params.i b/include/state_params.i index 875328d..e768768 100644 --- a/include/state_params.i +++ b/include/state_params.i @@ -1,8 +1,10 @@ +// version 1 + // List of parameters. // type name display name, default value -STATE_PARAM(uint32_t, time, "Current Time", 0) -STATE_PARAM(int, timetick, "Speed", 100) +STATE_PARAM(int32_t, time, "Current Time", 0) +STATE_PARAM(int, speed, "Speed", 1000) STATE_PARAM(uint8_t, brightness, "Brightness", 50) STATE_PARAM(uint8_t, n_snow, "Snow Effect", 10) STATE_PARAM(uint8_t, n_red, "Desaturation", 32) @@ -14,3 +16,4 @@ STATE_PARAM(bool, use_static_color, "Use Static Color", false) STATE_PARAM(color_int_t, static_color, "Static Color", 0xffddbb) STATE_PARAM(bool, twinkle, "Twinkle", true) STATE_PARAM(uint8_t, twink_amt, "Twinkle Amount", 0) +STATE_PARAM(uint8_t, base_brightness, "Base Brightness", 0) -- cgit