Overview
| Comment: | Remove some debugging |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8de9b26091ad91eb4c8c3e321d2fcf63 |
| User & Date: | rkeene on 2020-08-27 21:57:20.689 |
| Other Links: | manifest | tags |
Context
|
2023-09-10
| ||
| 16:40 | Some old improvements check-in: d7c22f39ac user: rkeene tags: trunk | |
|
2020-08-27
| ||
| 21:57 | Remove some debugging check-in: 8de9b26091 user: rkeene tags: trunk | |
| 21:56 | Support transitioning for brightness check-in: 6c4b5c6de5 user: rkeene tags: trunk | |
Changes
Modified limitlessled_rf/__init__.py
from [567595d90c]
to [d8bdeeb998].
| ︙ | ︙ | |||
607 608 609 610 611 612 613 |
final_steps = initial_value - target_value
step_command = {'button': "{}_{}".format(button_prefix, final_direction)}
if zone is not None:
step_command['zone'] = zone
transition_delay = None
| < < < | 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 |
final_steps = initial_value - target_value
step_command = {'button': "{}_{}".format(button_prefix, final_direction)}
if zone is not None:
step_command['zone'] = zone
transition_delay = None
if transition is not None and final_steps > 1:
transition_delay = transition / (final_steps - 1)
for step in range(final_steps):
if step == (final_steps - 1):
transition_delay = None
self._debug("[FINAL] Stepping {} {} with a delay of {} (ms) afterwards".format(button_prefix, final_direction, transition_delay))
self._send_button(step_command, post_delay = transition_delay)
return True
def _step_brightness(self, brightness, brightness_min, brightness_max, zone = None, transition = None):
|
| ︙ | ︙ |