Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen backlight brightness #1859

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

jLynx
Copy link
Contributor

@jLynx jLynx commented Feb 7, 2024

There is a transistor connected to the cathode for the screen controlled by the CPLD.
I see we have some code in backlight.cpp to control it, but I cant for the life of me get it to change, if I set it to 1 or 31(max brightness), its the same brightness.

Files of note:

   private:
    static constexpr value_t initial_brightness = 25;
    static constexpr value_t maximum_level = 31;

    static constexpr uint32_t ticks_setup = 204e6 * 10e-6;
    static constexpr uint32_t ms_pwrdwn = 5;
    static constexpr uint32_t ticks_lo = 204e6 * 1e-6;
    static constexpr uint32_t ticks_hi = 204e6 * 1e-6;

I am wondering if the ticks_lo & hi are incorrect since turning it on and off works with the button, but trying to control it with PWM doesnt seem to work. Could also be related to where we are calling set_level()

@jLynx jLynx mentioned this pull request Feb 7, 2024
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