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

Provide reference to BrightnessController in DisplayApp #979

Conversation

NeroBurner
Copy link
Contributor

For the simulator I need a way to get to the brightnessController object
and handle the set brightness-levels accordingly.

This is done by the constructor expecting a brightnessController object
instead of initializing one itself.

If this change is too intrusive adding a function like getBrightnessLevel() to just the main DisplayApp.h forwarding the brightness level of the internally stored BrightnessController would be another way forward for me.

Or return a reference with getBrightnessController()

@JF002
Copy link
Collaborator

JF002 commented Feb 19, 2022

I agree with the changes. Could you fix the conflict so we can merge?

@JF002 JF002 added this to the 1.9.0 milestone Feb 19, 2022
For the simulator I need a way to get to the brightnessController object
and handle the set brightness-levels accoringly.

This is done by the constructor expecting a brightnessController object
instead of initializing one itself
@NeroBurner NeroBurner force-pushed the displayapp_brightnesscontroller_reference branch from 10f47a2 to 0b1ce97 Compare February 19, 2022 18:44
@NeroBurner
Copy link
Contributor Author

rebased :)

@JF002 JF002 merged commit 4079086 into InfiniTimeOrg:develop Feb 19, 2022
@NeroBurner NeroBurner deleted the displayapp_brightnesscontroller_reference branch February 19, 2022 20:03
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.

2 participants