Overview
| Comment: | Calculate a few things better |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8b48210ca63123b1d9329d319e7d06ed |
| User & Date: | rkeene on 2020-08-27 17:07:40.509 |
| Other Links: | manifest | tags |
Context
|
2020-08-27
| ||
| 21:56 | Support transitioning for brightness check-in: 6c4b5c6de5 user: rkeene tags: trunk | |
| 17:07 | Calculate a few things better check-in: 8b48210ca6 user: rkeene tags: trunk | |
|
2020-05-17
| ||
| 21:17 | limitlessled_rf v0.14 check-in: 2ea910c594 user: rkeene tags: 0.14, trunk | |
Changes
Modified limitlessled_rf/__init__.py
from [f3be2e4306]
to [79e827bccc].
| ︙ | |||
48 49 50 51 52 53 54 | 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - - + + |
'speed_down': 0x0C,
'change_color_mode': 0x0D,
'zone_set_brightness': 0x0E,
'zone_set_color': 0x0F
}
},
'cct': {
|
| ︙ | |||
91 92 93 94 95 96 97 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | - + + |
'brightness_up': 0x0C,
'brightness_down': 0x04,
'temperature_up': 0x0E,
'temperature_down': 0x0F
}
},
'lyh_cct': {
|
| ︙ | |||
551 552 553 554 555 556 557 | 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | - + + - + | 'zone': zone } message['brightness'] = brightness return self._send_button(message) |
| ︙ | |||
604 605 606 607 608 609 610 | 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 | + + + + + + - + |
for step in range(final_steps):
self._debug("[FINAL] Stepping {} {}".format(button_prefix, final_direction))
self._send_button(step_command)
return True
def _step_brightness(self, brightness, brightness_min, brightness_max, zone = None):
# For setting the brightness, set a change-overpoint at around
# 75%, where below this value we will go to the dimmest and
# step up and above this point it will go to the brightest
# and step down. This is to avoid getting bright then dimming
# which is much more jarring than getting dim and brightening.
brightness_changeover = ((brightness_max - brightness_min) * 0.75) + brightness_min;
|
| ︙ |