Skip to content

Simple gamma correction for display#293

Open
iHD992 wants to merge 1 commit intoducalex:devfrom
iHD992:feature/gamma-fix
Open

Simple gamma correction for display#293
iHD992 wants to merge 1 commit intoducalex:devfrom
iHD992:feature/gamma-fix

Conversation

@iHD992
Copy link

@iHD992 iHD992 commented Feb 26, 2026

Second try for this pull request. This time directly based on the dev branch.

Description

This PR improves the display backlight experience by addressing the non-linear nature of human brightness perception.

Changes:

  • Gamma Correction: Implemented a simple gamma correction (gamma = 2) in rg_display.c. This ensures that brightness steps feel visually more uniform to the user.
  • Sanity Checks: New minimum of 10 % brightness instead of 1 % brightness so the intervals are always 10 %.

Why?

Human eyes are more sensitive to changes in dark areas than in bright ones. A linear PWM duty cycle feels "jumpy" at low levels and shows almost no visible change at high levels. Gamma correction fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant