From 669a14c1db0b4e773f196809302680ba939d2b62 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Fri, 22 Aug 2025 08:34:00 -0400 Subject: [PATCH 1/2] Add fastled_set_max_refresh_rate method to Python interface --- HISTORY.md | 6 ++++++ teensytoany/teensytoany.py | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index e1d3c20..a8a46a7 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,11 @@ # History +## 0.12.1 (2025-01-27) + +* Add `fastled_set_max_refresh_rate` method to control FastLED refresh rate. + - Supports rates from 1-800 Hz for normal operation + - Rate of 0 runs as fast as possible + ## 0.12.0 (2025-08-21) * Add missing command methods to provide complete interface to all firmware commands: diff --git a/teensytoany/teensytoany.py b/teensytoany/teensytoany.py index 5b6191c..df20a58 100644 --- a/teensytoany/teensytoany.py +++ b/teensytoany/teensytoany.py @@ -1300,6 +1300,17 @@ def fastled_set_hsv(self, led_index, h, s, v): def fastled_set_hue(self, led_index, hue): self._ask(f"fastled_set_hue {led_index} {hue}") + def fastled_set_max_refresh_rate(self, rate): + """Set the maximum refresh rate for FastLED. + + Parameters + ---------- + rate: int + Maximum refresh rate in Hz (1-800). + A rate of 0 will run as fast as possible. + """ + self._ask(f"fastled_set_max_refresh_rate {rate}") + def info(self): """Displays information about this TeensyToAny device.""" return self._ask("info") From 5f51177fb7e55480ac8ba59bfe8b7287459d2138 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Fri, 22 Aug 2025 08:35:56 -0400 Subject: [PATCH 2/2] Fix release date to correct date (2025-08-22) --- HISTORY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index a8a46a7..794db72 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,6 @@ # History -## 0.12.1 (2025-01-27) +## 0.12.1 (2025-08-22) * Add `fastled_set_max_refresh_rate` method to control FastLED refresh rate. - Supports rates from 1-800 Hz for normal operation