Skip to content

Commit c6934c7

Browse files
authored
Add fastled_set_max_refresh_rate method to Python interface (#48)
* Add fastled_set_max_refresh_rate method to Python interface * Fix release date to correct date (2025-08-22)
1 parent f8d4579 commit c6934c7

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

HISTORY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# History
22

3+
## 0.12.1 (2025-08-22)
4+
5+
* Add `fastled_set_max_refresh_rate` method to control FastLED refresh rate.
6+
- Supports rates from 1-800 Hz for normal operation
7+
- Rate of 0 runs as fast as possible
8+
39
## 0.12.0 (2025-08-21)
410

511
* Add missing command methods to provide complete interface to all firmware commands:

teensytoany/teensytoany.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,17 @@ def fastled_set_hsv(self, led_index, h, s, v):
13001300
def fastled_set_hue(self, led_index, hue):
13011301
self._ask(f"fastled_set_hue {led_index} {hue}")
13021302

1303+
def fastled_set_max_refresh_rate(self, rate):
1304+
"""Set the maximum refresh rate for FastLED.
1305+
1306+
Parameters
1307+
----------
1308+
rate: int
1309+
Maximum refresh rate in Hz (1-800).
1310+
A rate of 0 will run as fast as possible.
1311+
"""
1312+
self._ask(f"fastled_set_max_refresh_rate {rate}")
1313+
13031314
def info(self):
13041315
"""Displays information about this TeensyToAny device."""
13051316
return self._ask("info")

0 commit comments

Comments
 (0)