8000 Feature Request: Brightness Adjust with Lux Buttons · Issue #1 · seanosteen/CheerClock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Feature Request: Brightness Adjust with Lux Buttons #1
Open
@webwidget22

Description

@webwidget22

Thanks for this great project.

Would there be a way to add code to adjust the overall brightness of the display using the Lux buttons?

There is code in the Pimoroni examples that looks like this:

setup()

gu.set_brightness(0.5)

while True:

if gu.is_pressed(GalacticUnicorn.SWITCH_BRIGHTNESS_UP):
    gu.adjust_brightness(+0.01)

if gu.is_pressed(GalacticUnicorn.SWITCH_BRIGHTNESS_DOWN):
    gu.adjust_brightness(-0.01)

start = time.ticks_ms()

draw()
update()

But I'm not smart enough to know how to implement it within your project.

Thanks in advance!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0