Maurice Makaay
e8ae6a9765
Some code cleanup as preparation for the next bits of development for transition handling.
3 years ago
Maurice Makaay
47bb1469fc
Finally going somewhere with the transitioning implementation. The basic framework for the latest ideas is up and running. Now implement the actual transitioning logic.
3 years ago
Maurice Makaay
92d935b0b4
Experimental class structure to give my LightOutput class access to some protected data in the LightState class.
3 years ago
Maurice Makaay
d330894fdc
Started my own derived LightState class to get more control over the light's transitioning behavior.
3 years ago
Maurice Makaay
9fa8aa42ff
Switch to night light mode at low brightness in both white light and RGB mode.
3 years ago
Maurice Makaay
0b373526da
Code cleanup on RGB code + RGB #FFFFFF implementation added.
3 years ago
Maurice Makaay
49404b083d
Ledc PWM frequency issues are fixed
Setting the PWM channels and frequencies is now done fully from
the device yaml configuration file, so I removed the frequency
code from the CPP code.
3 years ago
Maurice Makaay
b960a5bee9
New implementation for RGB colors. It needs a round of code cleanup, but it is functional as-is.
3 years ago
Maurice Makaay
cd64ab7cbe
Added night light setting, when choosing white light (#FFFFFF) at the lowest brightness level.
3 years ago
Maurice Makaay
347fa66cc3
Don't use 10kHz, but 9765Hz for white channel PWM.
3 years ago
Maurice Makaay
53f2d9c0df
Restored working of blue colors in RGB mode.
3 years ago
Maurice Makaay
d1f3c92fd7
Added a white light implementation. Firmware is now in a broken state, but transitioning to something good here.
3 years ago
Maurice Makaay
9e01d28bf6
Fixed RGB white color mix scaling.
3 years ago
Maurice Makaay
a99e2f1145
Work-around for the turn off transition issue.
The work-around has been implemented in a forward-compatible manner,
so the light transition when turning off the light should still
work once the upstream code gets fixed.
3 years ago
Maurice Makaay
6c5c6ca5cc
Moved to a proper ESPHome component structure.
3 years ago
Maurice Makaay
a4baf100f3
Moving to PlatformIO lib format.
3 years ago
Maurice Makaay
9be95a90cb
Transforming to PlatformIO lib format.
3 years ago
mmakaay
802b6c214c
Made the light off transition fix optional.
3 years ago
Maurice Makaay
d7c642b9b9
Two fixes for light transitioning issues
* When turning off the light at a low brightness setting,
the LEDs were seen flashing brightly for a short time.
* Transitioning did not work when turning of the light. The light would be
kept at normal brightness during the transition and then it turned of
at once. This looks like an issue in the ESPHome transitioning code,
because that is the code that is responsible for the transitioning.
When turning on the light, it works correctly. I see both the state
and the brightness go up. But when turning off the light, I see that
the state decreases gradually to zero, but the brightness is kept
as-is. I wrote a fix for this behavior in my code and will investigate
if the ESPHome code can be fixed for this.
3 years ago
Maurice Makaay
e3e104df41
Backup work.
3 years ago
Maurice Makaay
a230e59f86
Started some tedious work on reverse engineering the correct functions for th RGB light outputs.
3 years ago
Maurice Makaay
3b73d2340e
Backup work on I2C
3 years ago
Maurice Makaay
77a18d52dc
Completed work on the temperature-based light controls. Both RGB and white light are now fully functional.
3 years ago
Maurice Makaay
a502c7c7be
Implemented temperature band 251 - 312
3 years ago
Maurice Makaay
ed0b2444f9
Implemented temperature band 313 - 333
3 years ago
Maurice Makaay
dca643e758
Initial import.
3 years ago