mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Smoothen light gamma curve when using Fade
(#23230)
This commit is contained in:
parent
dfabe8cc0f
commit
08f20b9404
@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Output of commands `GPIO` and `GPIOs` swapped
|
- Output of commands `GPIO` and `GPIOs` swapped
|
||||||
|
- Smoothen light gamma curve when using `Fade`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- INA226 driver fixes (#23197)
|
- INA226 driver fixes (#23197)
|
||||||
|
@ -59,9 +59,13 @@ const gamma_table_t gamma_table[] = { // don't put in PROGMEM for performance
|
|||||||
|
|
||||||
// simplified Gamma table for Fade, cheating a little at low brightness
|
// simplified Gamma table for Fade, cheating a little at low brightness
|
||||||
const gamma_table_t gamma_table_fast[] = {
|
const gamma_table_t gamma_table_fast[] = {
|
||||||
{ 384, 192 },
|
{ 1, 1 },
|
||||||
{ 768, 576 },
|
{ 312, 58 },
|
||||||
{ 1023, 1023 },
|
{ 457, 106 },
|
||||||
|
{ 626, 261 },
|
||||||
|
{ 762, 450 },
|
||||||
|
{ 895, 703 },
|
||||||
|
{ 1023, 1023 },
|
||||||
{ 0xFFFF, 0xFFFF } // fail-safe if out of range
|
{ 0xFFFF, 0xFFFF } // fail-safe if out of range
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user