Python LimitlessLED via RF

Check-in [8de9b26091]
Login

Check-in [8de9b26091]

Overview
Comment:Remove some debugging
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8de9b26091ad91eb4c8c3e321d2fcf631c17b64cc0158c08548d298ed4abdf29
User & Date: rkeene on 2020-08-27 21:57:20
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
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
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
		self._debug("[FINAL] t = {}, fs = {}".format(transition, final_steps))
		if transition is not None and final_steps > 1:
			transition_delay = transition / (final_steps - 1)
		self._debug("[FINAL] td = {}".format(transition_delay))

		for step in range(final_steps):
			if step == (final_steps - 1):
				transition_delay = None
				self._debug("[FINAL] ftd = {}".format(transition_delay))

			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):