mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +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
|
||||
- Output of commands `GPIO` and `GPIOs` swapped
|
||||
- Smoothen light gamma curve when using `Fade`
|
||||
|
||||
### Fixed
|
||||
- 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
|
||||
const gamma_table_t gamma_table_fast[] = {
|
||||
{ 384, 192 },
|
||||
{ 768, 576 },
|
||||
{ 1023, 1023 },
|
||||
{ 1, 1 },
|
||||
{ 312, 58 },
|
||||
{ 457, 106 },
|
||||
{ 626, 261 },
|
||||
{ 762, 450 },
|
||||
{ 895, 703 },
|
||||
{ 1023, 1023 },
|
||||
{ 0xFFFF, 0xFFFF } // fail-safe if out of range
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user